Class FetchGitRepositoryLinkCommitListRequest.Builder (0.60.0)

public static final class FetchGitRepositoryLinkCommitListRequest.Builder extends GeneratedMessage.Builder<FetchGitRepositoryLinkCommitListRequest.Builder> implements FetchGitRepositoryLinkCommitListRequestOrBuilder

Request message for FetchGitRepositoryLinkCommitList.

Protobuf type google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitListRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public FetchGitRepositoryLinkCommitListRequest build()
Returns
Type Description
FetchGitRepositoryLinkCommitListRequest

buildPartial()

public FetchGitRepositoryLinkCommitListRequest buildPartial()
Returns
Type Description
FetchGitRepositoryLinkCommitListRequest

clear()

public FetchGitRepositoryLinkCommitListRequest.Builder clear()
Returns
Type Description
FetchGitRepositoryLinkCommitListRequest.Builder
Overrides

clearName()

public FetchGitRepositoryLinkCommitListRequest.Builder clearName()

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
FetchGitRepositoryLinkCommitListRequest.Builder

This builder for chaining.

clearPageSize()

public FetchGitRepositoryLinkCommitListRequest.Builder clearPageSize()

Optional. Number of results to return in the list. Default is 50. Max is 100.

int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FetchGitRepositoryLinkCommitListRequest.Builder

This builder for chaining.

clearPageToken()

public FetchGitRepositoryLinkCommitListRequest.Builder clearPageToken()

Optional. A page token, received from a previous FetchGitRepositoryLinkCommitList call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to FetchGitRepositoryLinkCommitList must match the call that provided the page token.

string page_token = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FetchGitRepositoryLinkCommitListRequest.Builder

This builder for chaining.

clearRef()

public FetchGitRepositoryLinkCommitListRequest.Builder clearRef()

Optional. The commit SHA, or symbolic revision (e.g., branch name, tag, or Git reference) from which to start listing commits.

string ref = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FetchGitRepositoryLinkCommitListRequest.Builder

This builder for chaining.

clearView()

public FetchGitRepositoryLinkCommitListRequest.Builder clearView()

Optional. The level of commit details to return in the response. Only BASIC is supported; FULL returns INVALID_ARGUMENT. Defaults to BASIC if unspecified. Use FetchGitRepositoryLinkCommit to get file diffs for a single commit.

.google.cloud.developerconnect.v1.CommitView view = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FetchGitRepositoryLinkCommitListRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public FetchGitRepositoryLinkCommitListRequest getDefaultInstanceForType()
Returns
Type Description
FetchGitRepositoryLinkCommitListRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getPageSize()

public int getPageSize()

Optional. Number of results to return in the list. Default is 50. Max is 100.

int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The pageSize.

getPageToken()

public String getPageToken()

Optional. A page token, received from a previous FetchGitRepositoryLinkCommitList call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to FetchGitRepositoryLinkCommitList must match the call that provided the page token.

string page_token = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

Optional. A page token, received from a previous FetchGitRepositoryLinkCommitList call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to FetchGitRepositoryLinkCommitList must match the call that provided the page token.

string page_token = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for pageToken.

getRef()

public String getRef()

Optional. The commit SHA, or symbolic revision (e.g., branch name, tag, or Git reference) from which to start listing commits.

string ref = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The ref.

getRefBytes()

public ByteString getRefBytes()

Optional. The commit SHA, or symbolic revision (e.g., branch name, tag, or Git reference) from which to start listing commits.

string ref = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for ref.

getView()

public CommitView getView()

Optional. The level of commit details to return in the response. Only BASIC is supported; FULL returns INVALID_ARGUMENT. Defaults to BASIC if unspecified. Use FetchGitRepositoryLinkCommit to get file diffs for a single commit.

.google.cloud.developerconnect.v1.CommitView view = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CommitView

The view.

getViewValue()

public int getViewValue()

Optional. The level of commit details to return in the response. Only BASIC is supported; FULL returns INVALID_ARGUMENT. Defaults to BASIC if unspecified. Use FetchGitRepositoryLinkCommit to get file diffs for a single commit.

.google.cloud.developerconnect.v1.CommitView view = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for view.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FetchGitRepositoryLinkCommitListRequest other)

public FetchGitRepositoryLinkCommitListRequest.Builder mergeFrom(FetchGitRepositoryLinkCommitListRequest other)
Parameter
Name Description
other FetchGitRepositoryLinkCommitListRequest
Returns
Type Description
FetchGitRepositoryLinkCommitListRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FetchGitRepositoryLinkCommitListRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FetchGitRepositoryLinkCommitListRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public FetchGitRepositoryLinkCommitListRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
FetchGitRepositoryLinkCommitListRequest.Builder
Overrides

setName(String value)

public FetchGitRepositoryLinkCommitListRequest.Builder setName(String value)

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
FetchGitRepositoryLinkCommitListRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public FetchGitRepositoryLinkCommitListRequest.Builder setNameBytes(ByteString value)

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
FetchGitRepositoryLinkCommitListRequest.Builder

This builder for chaining.

setPageSize(int value)

public FetchGitRepositoryLinkCommitListRequest.Builder setPageSize(int value)

Optional. Number of results to return in the list. Default is 50. Max is 100.

int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The pageSize to set.

Returns
Type Description
FetchGitRepositoryLinkCommitListRequest.Builder

This builder for chaining.

setPageToken(String value)

public FetchGitRepositoryLinkCommitListRequest.Builder setPageToken(String value)

Optional. A page token, received from a previous FetchGitRepositoryLinkCommitList call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to FetchGitRepositoryLinkCommitList must match the call that provided the page token.

string page_token = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The pageToken to set.

Returns
Type Description
FetchGitRepositoryLinkCommitListRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public FetchGitRepositoryLinkCommitListRequest.Builder setPageTokenBytes(ByteString value)

Optional. A page token, received from a previous FetchGitRepositoryLinkCommitList call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to FetchGitRepositoryLinkCommitList must match the call that provided the page token.

string page_token = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for pageToken to set.

Returns
Type Description
FetchGitRepositoryLinkCommitListRequest.Builder

This builder for chaining.

setRef(String value)

public FetchGitRepositoryLinkCommitListRequest.Builder setRef(String value)

Optional. The commit SHA, or symbolic revision (e.g., branch name, tag, or Git reference) from which to start listing commits.

string ref = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The ref to set.

Returns
Type Description
FetchGitRepositoryLinkCommitListRequest.Builder

This builder for chaining.

setRefBytes(ByteString value)

public FetchGitRepositoryLinkCommitListRequest.Builder setRefBytes(ByteString value)

Optional. The commit SHA, or symbolic revision (e.g., branch name, tag, or Git reference) from which to start listing commits.

string ref = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for ref to set.

Returns
Type Description
FetchGitRepositoryLinkCommitListRequest.Builder

This builder for chaining.

setView(CommitView value)

public FetchGitRepositoryLinkCommitListRequest.Builder setView(CommitView value)

Optional. The level of commit details to return in the response. Only BASIC is supported; FULL returns INVALID_ARGUMENT. Defaults to BASIC if unspecified. Use FetchGitRepositoryLinkCommit to get file diffs for a single commit.

.google.cloud.developerconnect.v1.CommitView view = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value CommitView

The view to set.

Returns
Type Description
FetchGitRepositoryLinkCommitListRequest.Builder

This builder for chaining.

setViewValue(int value)

public FetchGitRepositoryLinkCommitListRequest.Builder setViewValue(int value)

Optional. The level of commit details to return in the response. Only BASIC is supported; FULL returns INVALID_ARGUMENT. Defaults to BASIC if unspecified. Use FetchGitRepositoryLinkCommit to get file diffs for a single commit.

.google.cloud.developerconnect.v1.CommitView view = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for view to set.

Returns
Type Description
FetchGitRepositoryLinkCommitListRequest.Builder

This builder for chaining.