public static final class FetchReadTokenResponse.Builder extends GeneratedMessage.Builder<FetchReadTokenResponse.Builder> implements FetchReadTokenResponseOrBuilderMessage for responding to get read token.
Protobuf type google.cloud.developerconnect.v1.FetchReadTokenResponse
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > FetchReadTokenResponse.BuilderImplements
FetchReadTokenResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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 |
|
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. |
clearToken()
public FetchReadTokenResponse.Builder clearToken()The token content.
string token = 1;
| Returns | |
|---|---|
| Type | Description |
FetchReadTokenResponse.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public FetchReadTokenResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
FetchReadTokenResponse |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public FetchReadTokenResponse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
FetchReadTokenResponse.Builder |
|
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 |
|
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 |
StringThe 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 |
ByteStringThe bytes for gitUsername to set. |
| Returns | |
|---|---|
| Type | Description |
FetchReadTokenResponse.Builder |
This builder for chaining. |
setToken(String value)
public FetchReadTokenResponse.Builder setToken(String value)The token content.
string token = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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 |
ByteStringThe bytes for token to set. |
| Returns | |
|---|---|
| Type | Description |
FetchReadTokenResponse.Builder |
This builder for chaining. |