Class FetchAccessTokenResponse.Builder (0.10.0)

public static final class FetchAccessTokenResponse.Builder extends GeneratedMessageV3.Builder<FetchAccessTokenResponse.Builder> implements FetchAccessTokenResponseOrBuilder

Response message for FetchAccessToken.

Protobuf type google.cloud.backupdr.v1.FetchAccessTokenResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FetchAccessTokenResponse build()
Returns
Type Description
FetchAccessTokenResponse

buildPartial()

public FetchAccessTokenResponse buildPartial()
Returns
Type Description
FetchAccessTokenResponse

clear()

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

clearExpireTime()

public FetchAccessTokenResponse.Builder clearExpireTime()

The token is valid until this time.

.google.protobuf.Timestamp expire_time = 4;

Returns
Type Description
FetchAccessTokenResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReadLocation()

public FetchAccessTokenResponse.Builder clearReadLocation()

The location in bucket that can be used for reading.

string read_location = 1;

Returns
Type Description
FetchAccessTokenResponse.Builder

This builder for chaining.

clearToken()

public FetchAccessTokenResponse.Builder clearToken()

The downscoped token that was created.

string token = 3;

Returns
Type Description
FetchAccessTokenResponse.Builder

This builder for chaining.

clearWriteLocation()

public FetchAccessTokenResponse.Builder clearWriteLocation()

The location in bucket that can be used for writing.

string write_location = 2;

Returns
Type Description
FetchAccessTokenResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public FetchAccessTokenResponse getDefaultInstanceForType()
Returns
Type Description
FetchAccessTokenResponse

getDescriptorForType()

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

getExpireTime()

public Timestamp getExpireTime()

The token is valid until this time.

.google.protobuf.Timestamp expire_time = 4;

Returns
Type Description
Timestamp

The expireTime.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

The token is valid until this time.

.google.protobuf.Timestamp expire_time = 4;

Returns
Type Description
Builder

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

The token is valid until this time.

.google.protobuf.Timestamp expire_time = 4;

Returns
Type Description
TimestampOrBuilder

getReadLocation()

public String getReadLocation()

The location in bucket that can be used for reading.

string read_location = 1;

Returns
Type Description
String

The readLocation.

getReadLocationBytes()

public ByteString getReadLocationBytes()

The location in bucket that can be used for reading.

string read_location = 1;

Returns
Type Description
ByteString

The bytes for readLocation.

getToken()

public String getToken()

The downscoped token that was created.

string token = 3;

Returns
Type Description
String

The token.

getTokenBytes()

public ByteString getTokenBytes()

The downscoped token that was created.

string token = 3;

Returns
Type Description
ByteString

The bytes for token.

getWriteLocation()

public String getWriteLocation()

The location in bucket that can be used for writing.

string write_location = 2;

Returns
Type Description
String

The writeLocation.

getWriteLocationBytes()

public ByteString getWriteLocationBytes()

The location in bucket that can be used for writing.

string write_location = 2;

Returns
Type Description
ByteString

The bytes for writeLocation.

hasExpireTime()

public boolean hasExpireTime()

The token is valid until this time.

.google.protobuf.Timestamp expire_time = 4;

Returns
Type Description
boolean

Whether the expireTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExpireTime(Timestamp value)

public FetchAccessTokenResponse.Builder mergeExpireTime(Timestamp value)

The token is valid until this time.

.google.protobuf.Timestamp expire_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
FetchAccessTokenResponse.Builder

mergeFrom(FetchAccessTokenResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setExpireTime(Timestamp value)

public FetchAccessTokenResponse.Builder setExpireTime(Timestamp value)

The token is valid until this time.

.google.protobuf.Timestamp expire_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
FetchAccessTokenResponse.Builder

setExpireTime(Timestamp.Builder builderForValue)

public FetchAccessTokenResponse.Builder setExpireTime(Timestamp.Builder builderForValue)

The token is valid until this time.

.google.protobuf.Timestamp expire_time = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
FetchAccessTokenResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setReadLocation(String value)

public FetchAccessTokenResponse.Builder setReadLocation(String value)

The location in bucket that can be used for reading.

string read_location = 1;

Parameter
Name Description
value String

The readLocation to set.

Returns
Type Description
FetchAccessTokenResponse.Builder

This builder for chaining.

setReadLocationBytes(ByteString value)

public FetchAccessTokenResponse.Builder setReadLocationBytes(ByteString value)

The location in bucket that can be used for reading.

string read_location = 1;

Parameter
Name Description
value ByteString

The bytes for readLocation to set.

Returns
Type Description
FetchAccessTokenResponse.Builder

This builder for chaining.

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

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

setToken(String value)

public FetchAccessTokenResponse.Builder setToken(String value)

The downscoped token that was created.

string token = 3;

Parameter
Name Description
value String

The token to set.

Returns
Type Description
FetchAccessTokenResponse.Builder

This builder for chaining.

setTokenBytes(ByteString value)

public FetchAccessTokenResponse.Builder setTokenBytes(ByteString value)

The downscoped token that was created.

string token = 3;

Parameter
Name Description
value ByteString

The bytes for token to set.

Returns
Type Description
FetchAccessTokenResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setWriteLocation(String value)

public FetchAccessTokenResponse.Builder setWriteLocation(String value)

The location in bucket that can be used for writing.

string write_location = 2;

Parameter
Name Description
value String

The writeLocation to set.

Returns
Type Description
FetchAccessTokenResponse.Builder

This builder for chaining.

setWriteLocationBytes(ByteString value)

public FetchAccessTokenResponse.Builder setWriteLocationBytes(ByteString value)

The location in bucket that can be used for writing.

string write_location = 2;

Parameter
Name Description
value ByteString

The bytes for writeLocation to set.

Returns
Type Description
FetchAccessTokenResponse.Builder

This builder for chaining.