public static final class FetchAccessTokenResponse.Builder extends GeneratedMessageV3.Builder<FetchAccessTokenResponse.Builder> implements FetchAccessTokenResponseOrBuilderMessage for responding to getting an OAuth access token.
Protobuf type google.cloud.developerconnect.v1.FetchAccessTokenResponse
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > FetchAccessTokenResponse.BuilderImplements
FetchAccessTokenResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllScopes(Iterable<String> values)
public FetchAccessTokenResponse.Builder addAllScopes(Iterable<String> values)The scopes of the access token.
repeated string scopes = 3;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The scopes to add. |
| Returns | |
|---|---|
| Type | Description |
FetchAccessTokenResponse.Builder |
This builder for chaining. |
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 |
|
addScopes(String value)
public FetchAccessTokenResponse.Builder addScopes(String value)The scopes of the access token.
repeated string scopes = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe scopes to add. |
| Returns | |
|---|---|
| Type | Description |
FetchAccessTokenResponse.Builder |
This builder for chaining. |
addScopesBytes(ByteString value)
public FetchAccessTokenResponse.Builder addScopesBytes(ByteString value)The scopes of the access token.
repeated string scopes = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the scopes to add. |
| Returns | |
|---|---|
| Type | Description |
FetchAccessTokenResponse.Builder |
This builder for chaining. |
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 |
|
clearExchangeError()
public FetchAccessTokenResponse.Builder clearExchangeError()The error resulted from exchanging OAuth tokens from the service provider.
.google.cloud.developerconnect.v1.ExchangeError exchange_error = 4;
| Returns | |
|---|---|
| Type | Description |
FetchAccessTokenResponse.Builder |
|
clearExpirationTime()
public FetchAccessTokenResponse.Builder clearExpirationTime()Expiration timestamp. Can be empty if unknown or non-expiring.
.google.protobuf.Timestamp expiration_time = 2;
| 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 |
|
clearOneof(Descriptors.OneofDescriptor oneof)
public FetchAccessTokenResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
FetchAccessTokenResponse.Builder |
|
clearScopes()
public FetchAccessTokenResponse.Builder clearScopes()The scopes of the access token.
repeated string scopes = 3;
| Returns | |
|---|---|
| Type | Description |
FetchAccessTokenResponse.Builder |
This builder for chaining. |
clearToken()
public FetchAccessTokenResponse.Builder clearToken()The token content.
string token = 1;
| Returns | |
|---|---|
| Type | Description |
FetchAccessTokenResponse.Builder |
This builder for chaining. |
clone()
public FetchAccessTokenResponse.Builder clone()| Returns | |
|---|---|
| Type | Description |
FetchAccessTokenResponse.Builder |
|
getDefaultInstanceForType()
public FetchAccessTokenResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
FetchAccessTokenResponse |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getExchangeError()
public ExchangeError getExchangeError()The error resulted from exchanging OAuth tokens from the service provider.
.google.cloud.developerconnect.v1.ExchangeError exchange_error = 4;
| Returns | |
|---|---|
| Type | Description |
ExchangeError |
The exchangeError. |
getExchangeErrorBuilder()
public ExchangeError.Builder getExchangeErrorBuilder()The error resulted from exchanging OAuth tokens from the service provider.
.google.cloud.developerconnect.v1.ExchangeError exchange_error = 4;
| Returns | |
|---|---|
| Type | Description |
ExchangeError.Builder |
|
getExchangeErrorOrBuilder()
public ExchangeErrorOrBuilder getExchangeErrorOrBuilder()The error resulted from exchanging OAuth tokens from the service provider.
.google.cloud.developerconnect.v1.ExchangeError exchange_error = 4;
| Returns | |
|---|---|
| Type | Description |
ExchangeErrorOrBuilder |
|
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 |
|
getScopes(int index)
public String getScopes(int index)The scopes of the access token.
repeated string scopes = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The scopes at the given index. |
getScopesBytes(int index)
public ByteString getScopesBytes(int index)The scopes of the access token.
repeated string scopes = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the scopes at the given index. |
getScopesCount()
public int getScopesCount()The scopes of the access token.
repeated string scopes = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The count of scopes. |
getScopesList()
public ProtocolStringList getScopesList()The scopes of the access token.
repeated string scopes = 3;
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the scopes. |
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. |
hasExchangeError()
public boolean hasExchangeError()The error resulted from exchanging OAuth tokens from the service provider.
.google.cloud.developerconnect.v1.ExchangeError exchange_error = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the exchangeError field is set. |
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeExchangeError(ExchangeError value)
public FetchAccessTokenResponse.Builder mergeExchangeError(ExchangeError value)The error resulted from exchanging OAuth tokens from the service provider.
.google.cloud.developerconnect.v1.ExchangeError exchange_error = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ExchangeError |
| Returns | |
|---|---|
| Type | Description |
FetchAccessTokenResponse.Builder |
|
mergeExpirationTime(Timestamp value)
public FetchAccessTokenResponse.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 |
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public FetchAccessTokenResponse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
FetchAccessTokenResponse.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final FetchAccessTokenResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
FetchAccessTokenResponse.Builder |
|
setExchangeError(ExchangeError value)
public FetchAccessTokenResponse.Builder setExchangeError(ExchangeError value)The error resulted from exchanging OAuth tokens from the service provider.
.google.cloud.developerconnect.v1.ExchangeError exchange_error = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ExchangeError |
| Returns | |
|---|---|
| Type | Description |
FetchAccessTokenResponse.Builder |
|
setExchangeError(ExchangeError.Builder builderForValue)
public FetchAccessTokenResponse.Builder setExchangeError(ExchangeError.Builder builderForValue)The error resulted from exchanging OAuth tokens from the service provider.
.google.cloud.developerconnect.v1.ExchangeError exchange_error = 4;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ExchangeError.Builder |
| Returns | |
|---|---|
| Type | Description |
FetchAccessTokenResponse.Builder |
|
setExpirationTime(Timestamp value)
public FetchAccessTokenResponse.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 |
FetchAccessTokenResponse.Builder |
|
setExpirationTime(Timestamp.Builder builderForValue)
public FetchAccessTokenResponse.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 |
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 |
|
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 |
|
setScopes(int index, String value)
public FetchAccessTokenResponse.Builder setScopes(int index, String value)The scopes of the access token.
repeated string scopes = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe scopes to set. |
| Returns | |
|---|---|
| Type | Description |
FetchAccessTokenResponse.Builder |
This builder for chaining. |
setToken(String value)
public FetchAccessTokenResponse.Builder setToken(String value)The token content.
string token = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe token to set. |
| Returns | |
|---|---|
| Type | Description |
FetchAccessTokenResponse.Builder |
This builder for chaining. |
setTokenBytes(ByteString value)
public FetchAccessTokenResponse.Builder setTokenBytes(ByteString value)The token content.
string token = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe 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 |
|