Class FetchReadTokenResponse.Builder (0.5.0)

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

Message for responding to get read token.

Protobuf type google.cloud.developerconnect.v1.FetchReadTokenResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FetchReadTokenResponse build()
Returns
Type Description
FetchReadTokenResponse

buildPartial()

public FetchReadTokenResponse buildPartial()
Returns
Type Description
FetchReadTokenResponse

clear()

public FetchReadTokenResponse.Builder clear()
Returns
Type Description
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
Type Description
FetchReadTokenResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearGitUsername()

public FetchReadTokenResponse.Builder clearGitUsername()

The git_username to specify when making a git clone with the token. For example, for GitHub GitRepositoryLinks, this would be "x-access-token"

string git_username = 3;

Returns
Type Description
FetchReadTokenResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearToken()

public FetchReadTokenResponse.Builder clearToken()

The token content.

string token = 1;

Returns
Type Description
FetchReadTokenResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public FetchReadTokenResponse getDefaultInstanceForType()
Returns
Type Description
FetchReadTokenResponse

getDescriptorForType()

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

getExpirationTime()

public Timestamp getExpirationTime()

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

.google.protobuf.Timestamp expiration_time = 2;

Returns
Type Description
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
Type Description
Builder

getExpirationTimeOrBuilder()

public TimestampOrBuilder getExpirationTimeOrBuilder()

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

.google.protobuf.Timestamp expiration_time = 2;

Returns
Type Description
TimestampOrBuilder

getGitUsername()

public String getGitUsername()

The git_username to specify when making a git clone with the token. For example, for GitHub GitRepositoryLinks, this would be "x-access-token"

string git_username = 3;

Returns
Type Description
String

The gitUsername.

getGitUsernameBytes()

public ByteString getGitUsernameBytes()

The git_username to specify when making a git clone with the token. For example, for GitHub GitRepositoryLinks, this would be "x-access-token"

string git_username = 3;

Returns
Type Description
ByteString

The bytes for gitUsername.

getToken()

public String getToken()

The token content.

string token = 1;

Returns
Type Description
String

The token.

getTokenBytes()

public ByteString getTokenBytes()

The token content.

string token = 1;

Returns
Type Description
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
Type Description
boolean

Whether the expirationTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
FetchReadTokenResponse.Builder

mergeFrom(FetchReadTokenResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FetchReadTokenResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
FetchReadTokenResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGitUsername(String value)

public FetchReadTokenResponse.Builder setGitUsername(String value)

The git_username to specify when making a git clone with the token. For example, for GitHub GitRepositoryLinks, this would be "x-access-token"

string git_username = 3;

Parameter
Name Description
value String

The gitUsername to set.

Returns
Type Description
FetchReadTokenResponse.Builder

This builder for chaining.

setGitUsernameBytes(ByteString value)

public FetchReadTokenResponse.Builder setGitUsernameBytes(ByteString value)

The git_username to specify when making a git clone with the token. For example, for GitHub GitRepositoryLinks, this would be "x-access-token"

string git_username = 3;

Parameter
Name Description
value ByteString

The bytes for gitUsername to set.

Returns
Type Description
FetchReadTokenResponse.Builder

This builder for chaining.

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

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

setToken(String value)

public FetchReadTokenResponse.Builder setToken(String value)

The token content.

string token = 1;

Parameter
Name Description
value String

The token to set.

Returns
Type Description
FetchReadTokenResponse.Builder

This builder for chaining.

setTokenBytes(ByteString value)

public FetchReadTokenResponse.Builder setTokenBytes(ByteString value)

The token content.

string token = 1;

Parameter
Name Description
value ByteString

The bytes for token to set.

Returns
Type Description
FetchReadTokenResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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