Class FetchReadWriteTokenResponse.Builder (3.30.0)

public static final class FetchReadWriteTokenResponse.Builder extends GeneratedMessageV3.Builder<FetchReadWriteTokenResponse.Builder> implements FetchReadWriteTokenResponseOrBuilder

Message for responding to get read/write token.

Protobuf type google.devtools.cloudbuild.v2.FetchReadWriteTokenResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FetchReadWriteTokenResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FetchReadWriteTokenResponse.Builder
Overrides

build()

public FetchReadWriteTokenResponse build()
Returns
TypeDescription
FetchReadWriteTokenResponse

buildPartial()

public FetchReadWriteTokenResponse buildPartial()
Returns
TypeDescription
FetchReadWriteTokenResponse

clear()

public FetchReadWriteTokenResponse.Builder clear()
Returns
TypeDescription
FetchReadWriteTokenResponse.Builder
Overrides

clearExpirationTime()

public FetchReadWriteTokenResponse.Builder clearExpirationTime()

Expiration timestamp. Can be empty if unknown or non-expiring.

.google.protobuf.Timestamp expiration_time = 2;

Returns
TypeDescription
FetchReadWriteTokenResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public FetchReadWriteTokenResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
FetchReadWriteTokenResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public FetchReadWriteTokenResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
FetchReadWriteTokenResponse.Builder
Overrides

clearToken()

public FetchReadWriteTokenResponse.Builder clearToken()

The token content.

string token = 1;

Returns
TypeDescription
FetchReadWriteTokenResponse.Builder

This builder for chaining.

clone()

public FetchReadWriteTokenResponse.Builder clone()
Returns
TypeDescription
FetchReadWriteTokenResponse.Builder
Overrides

getDefaultInstanceForType()

public FetchReadWriteTokenResponse getDefaultInstanceForType()
Returns
TypeDescription
FetchReadWriteTokenResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExpirationTime()

public Timestamp getExpirationTime()

Expiration timestamp. Can be empty if unknown or non-expiring.

.google.protobuf.Timestamp expiration_time = 2;

Returns
TypeDescription
Timestamp

The expirationTime.

getExpirationTimeBuilder()

public Timestamp.Builder getExpirationTimeBuilder()

Expiration timestamp. Can be empty if unknown or non-expiring.

.google.protobuf.Timestamp expiration_time = 2;

Returns
TypeDescription
Builder

getExpirationTimeOrBuilder()

public TimestampOrBuilder getExpirationTimeOrBuilder()

Expiration timestamp. Can be empty if unknown or non-expiring.

.google.protobuf.Timestamp expiration_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getToken()

public String getToken()

The token content.

string token = 1;

Returns
TypeDescription
String

The token.

getTokenBytes()

public ByteString getTokenBytes()

The token content.

string token = 1;

Returns
TypeDescription
ByteString

The bytes for token.

hasExpirationTime()

public boolean hasExpirationTime()

Expiration timestamp. Can be empty if unknown or non-expiring.

.google.protobuf.Timestamp expiration_time = 2;

Returns
TypeDescription
boolean

Whether the expirationTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeExpirationTime(Timestamp value)

public FetchReadWriteTokenResponse.Builder mergeExpirationTime(Timestamp value)

Expiration timestamp. Can be empty if unknown or non-expiring.

.google.protobuf.Timestamp expiration_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
FetchReadWriteTokenResponse.Builder

mergeFrom(FetchReadWriteTokenResponse other)

public FetchReadWriteTokenResponse.Builder mergeFrom(FetchReadWriteTokenResponse other)
Parameter
NameDescription
otherFetchReadWriteTokenResponse
Returns
TypeDescription
FetchReadWriteTokenResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FetchReadWriteTokenResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FetchReadWriteTokenResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public FetchReadWriteTokenResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
FetchReadWriteTokenResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FetchReadWriteTokenResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FetchReadWriteTokenResponse.Builder
Overrides

setExpirationTime(Timestamp value)

public FetchReadWriteTokenResponse.Builder setExpirationTime(Timestamp value)

Expiration timestamp. Can be empty if unknown or non-expiring.

.google.protobuf.Timestamp expiration_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
FetchReadWriteTokenResponse.Builder

setExpirationTime(Timestamp.Builder builderForValue)

public FetchReadWriteTokenResponse.Builder setExpirationTime(Timestamp.Builder builderForValue)

Expiration timestamp. Can be empty if unknown or non-expiring.

.google.protobuf.Timestamp expiration_time = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
FetchReadWriteTokenResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public FetchReadWriteTokenResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FetchReadWriteTokenResponse.Builder
Overrides

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

public FetchReadWriteTokenResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
FetchReadWriteTokenResponse.Builder
Overrides

setToken(String value)

public FetchReadWriteTokenResponse.Builder setToken(String value)

The token content.

string token = 1;

Parameter
NameDescription
valueString

The token to set.

Returns
TypeDescription
FetchReadWriteTokenResponse.Builder

This builder for chaining.

setTokenBytes(ByteString value)

public FetchReadWriteTokenResponse.Builder setTokenBytes(ByteString value)

The token content.

string token = 1;

Parameter
NameDescription
valueByteString

The bytes for token to set.

Returns
TypeDescription
FetchReadWriteTokenResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final FetchReadWriteTokenResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FetchReadWriteTokenResponse.Builder
Overrides