Class FetchReadTokenRequest.Builder (3.45.0)

public static final class FetchReadTokenRequest.Builder extends GeneratedMessageV3.Builder<FetchReadTokenRequest.Builder> implements FetchReadTokenRequestOrBuilder

Message for fetching SCM read token.

Protobuf type google.devtools.cloudbuild.v2.FetchReadTokenRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FetchReadTokenRequest build()
Returns
Type Description
FetchReadTokenRequest

buildPartial()

public FetchReadTokenRequest buildPartial()
Returns
Type Description
FetchReadTokenRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRepository()

public FetchReadTokenRequest.Builder clearRepository()

Required. The resource name of the repository in the format projects/*/locations/*/connections/*/repositories/*.

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

Returns
Type Description
FetchReadTokenRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public FetchReadTokenRequest getDefaultInstanceForType()
Returns
Type Description
FetchReadTokenRequest

getDescriptorForType()

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

getRepository()

public String getRepository()

Required. The resource name of the repository in the format projects/*/locations/*/connections/*/repositories/*.

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

Returns
Type Description
String

The repository.

getRepositoryBytes()

public ByteString getRepositoryBytes()

Required. The resource name of the repository in the format projects/*/locations/*/connections/*/repositories/*.

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

Returns
Type Description
ByteString

The bytes for repository.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FetchReadTokenRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setRepository(String value)

public FetchReadTokenRequest.Builder setRepository(String value)

Required. The resource name of the repository in the format projects/*/locations/*/connections/*/repositories/*.

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

Parameter
Name Description
value String

The repository to set.

Returns
Type Description
FetchReadTokenRequest.Builder

This builder for chaining.

setRepositoryBytes(ByteString value)

public FetchReadTokenRequest.Builder setRepositoryBytes(ByteString value)

Required. The resource name of the repository in the format projects/*/locations/*/connections/*/repositories/*.

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
FetchReadTokenRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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