Class FetchGitRefsRequest.Builder (0.6.0)

public static final class FetchGitRefsRequest.Builder extends GeneratedMessageV3.Builder<FetchGitRefsRequest.Builder> implements FetchGitRefsRequestOrBuilder

Request for fetching git refs.

Protobuf type google.cloud.developerconnect.v1.FetchGitRefsRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FetchGitRefsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FetchGitRefsRequest.Builder
Overrides

build()

public FetchGitRefsRequest build()
Returns
Type Description
FetchGitRefsRequest

buildPartial()

public FetchGitRefsRequest buildPartial()
Returns
Type Description
FetchGitRefsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public FetchGitRefsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
FetchGitRefsRequest.Builder
Overrides
public FetchGitRefsRequest.Builder clearGitRepositoryLink()

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

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

Returns
Type Description
FetchGitRefsRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public FetchGitRefsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
FetchGitRefsRequest.Builder
Overrides

clearPageSize()

public FetchGitRefsRequest.Builder clearPageSize()

Optional. Number of results to return in the list. Default to 20.

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

Returns
Type Description
FetchGitRefsRequest.Builder

This builder for chaining.

clearPageToken()

public FetchGitRefsRequest.Builder clearPageToken()

Optional. Page start.

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

Returns
Type Description
FetchGitRefsRequest.Builder

This builder for chaining.

clearRefType()

public FetchGitRefsRequest.Builder clearRefType()

Required. Type of refs to fetch.

.google.cloud.developerconnect.v1.FetchGitRefsRequest.RefType ref_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FetchGitRefsRequest.Builder

This builder for chaining.

clone()

public FetchGitRefsRequest.Builder clone()
Returns
Type Description
FetchGitRefsRequest.Builder
Overrides

getDefaultInstanceForType()

public FetchGitRefsRequest getDefaultInstanceForType()
Returns
Type Description
FetchGitRefsRequest

getDescriptorForType()

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

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

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

Returns
Type Description
String

The gitRepositoryLink.

getGitRepositoryLinkBytes()

public ByteString getGitRepositoryLinkBytes()

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

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

Returns
Type Description
ByteString

The bytes for gitRepositoryLink.

getPageSize()

public int getPageSize()

Optional. Number of results to return in the list. Default to 20.

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

Returns
Type Description
int

The pageSize.

getPageToken()

public String getPageToken()

Optional. Page start.

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

Returns
Type Description
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

Optional. Page start.

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

Returns
Type Description
ByteString

The bytes for pageToken.

getRefType()

public FetchGitRefsRequest.RefType getRefType()

Required. Type of refs to fetch.

.google.cloud.developerconnect.v1.FetchGitRefsRequest.RefType ref_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FetchGitRefsRequest.RefType

The refType.

getRefTypeValue()

public int getRefTypeValue()

Required. Type of refs to fetch.

.google.cloud.developerconnect.v1.FetchGitRefsRequest.RefType ref_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for refType.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FetchGitRefsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FetchGitRefsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FetchGitRefsRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public FetchGitRefsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FetchGitRefsRequest.Builder
Overrides
public FetchGitRefsRequest.Builder setGitRepositoryLink(String value)

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

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

Parameter
Name Description
value String

The gitRepositoryLink to set.

Returns
Type Description
FetchGitRefsRequest.Builder

This builder for chaining.

setGitRepositoryLinkBytes(ByteString value)

public FetchGitRefsRequest.Builder setGitRepositoryLinkBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for gitRepositoryLink to set.

Returns
Type Description
FetchGitRefsRequest.Builder

This builder for chaining.

setPageSize(int value)

public FetchGitRefsRequest.Builder setPageSize(int value)

Optional. Number of results to return in the list. Default to 20.

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

Parameter
Name Description
value int

The pageSize to set.

Returns
Type Description
FetchGitRefsRequest.Builder

This builder for chaining.

setPageToken(String value)

public FetchGitRefsRequest.Builder setPageToken(String value)

Optional. Page start.

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

Parameter
Name Description
value String

The pageToken to set.

Returns
Type Description
FetchGitRefsRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public FetchGitRefsRequest.Builder setPageTokenBytes(ByteString value)

Optional. Page start.

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

Parameter
Name Description
value ByteString

The bytes for pageToken to set.

Returns
Type Description
FetchGitRefsRequest.Builder

This builder for chaining.

setRefType(FetchGitRefsRequest.RefType value)

public FetchGitRefsRequest.Builder setRefType(FetchGitRefsRequest.RefType value)

Required. Type of refs to fetch.

.google.cloud.developerconnect.v1.FetchGitRefsRequest.RefType ref_type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FetchGitRefsRequest.RefType

The refType to set.

Returns
Type Description
FetchGitRefsRequest.Builder

This builder for chaining.

setRefTypeValue(int value)

public FetchGitRefsRequest.Builder setRefTypeValue(int value)

Required. Type of refs to fetch.

.google.cloud.developerconnect.v1.FetchGitRefsRequest.RefType ref_type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
FetchGitRefsRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public FetchGitRefsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
FetchGitRefsRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final FetchGitRefsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FetchGitRefsRequest.Builder
Overrides