Class FetchReadTokenResponse.Builder (3.21.0)

public static final class FetchReadTokenResponse.Builder extends GeneratedMessageV3.Builder<FetchReadTokenResponse.Builder> implements FetchReadTokenResponseOrBuilder

Message for responding to get read token.

Protobuf type google.devtools.cloudbuild.v2.FetchReadTokenResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FetchReadTokenResponse build()
Returns
TypeDescription
FetchReadTokenResponse

buildPartial()

public FetchReadTokenResponse buildPartial()
Returns
TypeDescription
FetchReadTokenResponse

clear()

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

clearExpirationTime()

public FetchReadTokenResponse.Builder clearExpirationTime()

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

.google.protobuf.Timestamp expiration_time = 2;

Returns
TypeDescription
FetchReadTokenResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearToken()

public FetchReadTokenResponse.Builder clearToken()

The token content.

string token = 1;

Returns
TypeDescription
FetchReadTokenResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public FetchReadTokenResponse getDefaultInstanceForType()
Returns
TypeDescription
FetchReadTokenResponse

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

mergeFrom(FetchReadTokenResponse other)

public FetchReadTokenResponse.Builder mergeFrom(FetchReadTokenResponse other)
Parameter
NameDescription
otherFetchReadTokenResponse
Returns
TypeDescription
FetchReadTokenResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setExpirationTime(Timestamp value)

public FetchReadTokenResponse.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
FetchReadTokenResponse.Builder

setExpirationTime(Timestamp.Builder builderForValue)

public FetchReadTokenResponse.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
FetchReadTokenResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setToken(String value)

public FetchReadTokenResponse.Builder setToken(String value)

The token content.

string token = 1;

Parameter
NameDescription
valueString

The token to set.

Returns
TypeDescription
FetchReadTokenResponse.Builder

This builder for chaining.

setTokenBytes(ByteString value)

public FetchReadTokenResponse.Builder setTokenBytes(ByteString value)

The token content.

string token = 1;

Parameter
NameDescription
valueByteString

The bytes for token to set.

Returns
TypeDescription
FetchReadTokenResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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