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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public FetchReadTokenResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public FetchReadTokenResponse build()
buildPartial()
public FetchReadTokenResponse buildPartial()
clear()
public FetchReadTokenResponse.Builder clear()
Overrides
clearExpirationTime()
public FetchReadTokenResponse.Builder clearExpirationTime()
Expiration timestamp. Can be empty if unknown or non-expiring.
.google.protobuf.Timestamp expiration_time = 2;
clearField(Descriptors.FieldDescriptor field)
public FetchReadTokenResponse.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public FetchReadTokenResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearToken()
public FetchReadTokenResponse.Builder clearToken()
The token content.
string token = 1;
clone()
public FetchReadTokenResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public FetchReadTokenResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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;
getExpirationTimeOrBuilder()
public TimestampOrBuilder getExpirationTimeOrBuilder()
Expiration timestamp. Can be empty if unknown or non-expiring.
.google.protobuf.Timestamp expiration_time = 2;
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()
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()
Overrides
isInitialized()
public final boolean isInitialized()
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;
mergeFrom(FetchReadTokenResponse other)
public FetchReadTokenResponse.Builder mergeFrom(FetchReadTokenResponse other)
public FetchReadTokenResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public FetchReadTokenResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final FetchReadTokenResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public FetchReadTokenResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public FetchReadTokenResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final FetchReadTokenResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides