Class FetchAccessTokenResponse (0.24.0)

public final class FetchAccessTokenResponse extends GeneratedMessageV3 implements FetchAccessTokenResponseOrBuilder

Message for responding to getting an OAuth access token.

Protobuf type google.cloud.developerconnect.v1.FetchAccessTokenResponse

Static Fields

EXCHANGE_ERROR_FIELD_NUMBER

public static final int EXCHANGE_ERROR_FIELD_NUMBER
Field Value
Type Description
int

EXPIRATION_TIME_FIELD_NUMBER

public static final int EXPIRATION_TIME_FIELD_NUMBER
Field Value
Type Description
int

SCOPES_FIELD_NUMBER

public static final int SCOPES_FIELD_NUMBER
Field Value
Type Description
int

TOKEN_FIELD_NUMBER

public static final int TOKEN_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static FetchAccessTokenResponse getDefaultInstance()
Returns
Type Description
FetchAccessTokenResponse

getDescriptor()

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

newBuilder()

public static FetchAccessTokenResponse.Builder newBuilder()
Returns
Type Description
FetchAccessTokenResponse.Builder

newBuilder(FetchAccessTokenResponse prototype)

public static FetchAccessTokenResponse.Builder newBuilder(FetchAccessTokenResponse prototype)
Parameter
Name Description
prototype FetchAccessTokenResponse
Returns
Type Description
FetchAccessTokenResponse.Builder

parseDelimitedFrom(InputStream input)

public static FetchAccessTokenResponse parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FetchAccessTokenResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FetchAccessTokenResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FetchAccessTokenResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static FetchAccessTokenResponse parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
FetchAccessTokenResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FetchAccessTokenResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FetchAccessTokenResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FetchAccessTokenResponse parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
FetchAccessTokenResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FetchAccessTokenResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FetchAccessTokenResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FetchAccessTokenResponse parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
FetchAccessTokenResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FetchAccessTokenResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FetchAccessTokenResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static FetchAccessTokenResponse parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FetchAccessTokenResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FetchAccessTokenResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FetchAccessTokenResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static FetchAccessTokenResponse parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
FetchAccessTokenResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FetchAccessTokenResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FetchAccessTokenResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<FetchAccessTokenResponse> parser()
Returns
Type Description
Parser<FetchAccessTokenResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public FetchAccessTokenResponse getDefaultInstanceForType()
Returns
Type Description
FetchAccessTokenResponse

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.

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.

getExpirationTimeOrBuilder()

public TimestampOrBuilder getExpirationTimeOrBuilder()

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

.google.protobuf.Timestamp expiration_time = 2;

Returns
Type Description
TimestampOrBuilder

getParserForType()

public Parser<FetchAccessTokenResponse> getParserForType()
Returns
Type Description
Parser<FetchAccessTokenResponse>
Overrides

getScopes(int index)

public String getScopes(int index)

The scopes of the access token.

repeated string scopes = 3;

Parameter
Name Description
index int

The 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 int

The 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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public FetchAccessTokenResponse.Builder newBuilderForType()
Returns
Type Description
FetchAccessTokenResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FetchAccessTokenResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
FetchAccessTokenResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public FetchAccessTokenResponse.Builder toBuilder()
Returns
Type Description
FetchAccessTokenResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException