Class FetchRefsRequest.Builder (0.69.0)

public static final class FetchRefsRequest.Builder extends GeneratedMessage.Builder<FetchRefsRequest.Builder> implements FetchRefsRequestOrBuilder

Request message for fetching git references from a repository.

Protobuf type google.cloud.securesourcemanager.v1.FetchRefsRequest

Static Methods

getDescriptor()

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

Methods

build()

public FetchRefsRequest build()
Returns
Type Description
FetchRefsRequest

buildPartial()

public FetchRefsRequest buildPartial()
Returns
Type Description
FetchRefsRequest

clear()

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

clearPageSize()

public FetchRefsRequest.Builder clearPageSize()

Optional. Requested page size. If unspecified, a default size of 30 will be used. The maximum value is 100; values above 100 will be coerced to 100.

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

Returns
Type Description
FetchRefsRequest.Builder

This builder for chaining.

clearPageToken()

public FetchRefsRequest.Builder clearPageToken()

Optional. A token identifying a page of results the server should return.

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

Returns
Type Description
FetchRefsRequest.Builder

This builder for chaining.

clearRepository()

public FetchRefsRequest.Builder clearRepository()

Required. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}. Specifies the repository to fetch the references from.

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

Returns
Type Description
FetchRefsRequest.Builder

This builder for chaining.

clearType()

public FetchRefsRequest.Builder clearType()

Optional. The type of reference to fetch (eg. branch, tag). By default, all references are returned.

.google.cloud.securesourcemanager.v1.Ref.RefType type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FetchRefsRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public FetchRefsRequest getDefaultInstanceForType()
Returns
Type Description
FetchRefsRequest

getDescriptorForType()

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

getPageSize()

public int getPageSize()

Optional. Requested page size. If unspecified, a default size of 30 will be used. The maximum value is 100; values above 100 will be coerced to 100.

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

Returns
Type Description
int

The pageSize.

getPageToken()

public String getPageToken()

Optional. A token identifying a page of results the server should return.

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

Returns
Type Description
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

Optional. A token identifying a page of results the server should return.

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

Returns
Type Description
ByteString

The bytes for pageToken.

getRepository()

public String getRepository()

Required. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}. Specifies the repository to fetch the references from.

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

Returns
Type Description
String

The repository.

getRepositoryBytes()

public ByteString getRepositoryBytes()

Required. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}. Specifies the repository to fetch the references from.

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

Returns
Type Description
ByteString

The bytes for repository.

getType()

public Ref.RefType getType()

Optional. The type of reference to fetch (eg. branch, tag). By default, all references are returned.

.google.cloud.securesourcemanager.v1.Ref.RefType type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Ref.RefType

The type.

getTypeValue()

public int getTypeValue()

Optional. The type of reference to fetch (eg. branch, tag). By default, all references are returned.

.google.cloud.securesourcemanager.v1.Ref.RefType type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FetchRefsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setPageSize(int value)

public FetchRefsRequest.Builder setPageSize(int value)

Optional. Requested page size. If unspecified, a default size of 30 will be used. The maximum value is 100; values above 100 will be coerced to 100.

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

Parameter
Name Description
value int

The pageSize to set.

Returns
Type Description
FetchRefsRequest.Builder

This builder for chaining.

setPageToken(String value)

public FetchRefsRequest.Builder setPageToken(String value)

Optional. A token identifying a page of results the server should return.

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

Parameter
Name Description
value String

The pageToken to set.

Returns
Type Description
FetchRefsRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public FetchRefsRequest.Builder setPageTokenBytes(ByteString value)

Optional. A token identifying a page of results the server should return.

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

Parameter
Name Description
value ByteString

The bytes for pageToken to set.

Returns
Type Description
FetchRefsRequest.Builder

This builder for chaining.

setRepository(String value)

public FetchRefsRequest.Builder setRepository(String value)

Required. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}. Specifies the repository to fetch the references from.

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

Parameter
Name Description
value String

The repository to set.

Returns
Type Description
FetchRefsRequest.Builder

This builder for chaining.

setRepositoryBytes(ByteString value)

public FetchRefsRequest.Builder setRepositoryBytes(ByteString value)

Required. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}. Specifies the repository to fetch the references from.

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

Parameter
Name Description
value ByteString

The bytes for repository to set.

Returns
Type Description
FetchRefsRequest.Builder

This builder for chaining.

setType(Ref.RefType value)

public FetchRefsRequest.Builder setType(Ref.RefType value)

Optional. The type of reference to fetch (eg. branch, tag). By default, all references are returned.

.google.cloud.securesourcemanager.v1.Ref.RefType type = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Ref.RefType

The type to set.

Returns
Type Description
FetchRefsRequest.Builder

This builder for chaining.

setTypeValue(int value)

public FetchRefsRequest.Builder setTypeValue(int value)

Optional. The type of reference to fetch (eg. branch, tag). By default, all references are returned.

.google.cloud.securesourcemanager.v1.Ref.RefType type = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
FetchRefsRequest.Builder

This builder for chaining.