Class PushCredentialsRequest.OAuthToken (0.81.0)

public static final class PushCredentialsRequest.OAuthToken extends GeneratedMessage implements PushCredentialsRequest.OAuthTokenOrBuilder

OAuth token.

Protobuf type google.cloud.workstations.v1beta.PushCredentialsRequest.OAuthToken

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > PushCredentialsRequest.OAuthToken

Static Fields

ACCESS_TOKEN_FIELD_NUMBER

public static final int ACCESS_TOKEN_FIELD_NUMBER
Field Value
Type Description
int

EMAIL_FIELD_NUMBER

public static final int EMAIL_FIELD_NUMBER
Field Value
Type Description
int

EXPIRE_TIME_FIELD_NUMBER

public static final int EXPIRE_TIME_FIELD_NUMBER
Field Value
Type Description
int

SCOPES_FIELD_NUMBER

public static final int SCOPES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PushCredentialsRequest.OAuthToken getDefaultInstance()
Returns
Type Description
PushCredentialsRequest.OAuthToken

getDescriptor()

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

newBuilder()

public static PushCredentialsRequest.OAuthToken.Builder newBuilder()
Returns
Type Description
PushCredentialsRequest.OAuthToken.Builder

newBuilder(PushCredentialsRequest.OAuthToken prototype)

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

parseDelimitedFrom(InputStream input)

public static PushCredentialsRequest.OAuthToken parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PushCredentialsRequest.OAuthToken
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static PushCredentialsRequest.OAuthToken parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PushCredentialsRequest.OAuthToken
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static PushCredentialsRequest.OAuthToken parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PushCredentialsRequest.OAuthToken
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static PushCredentialsRequest.OAuthToken parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PushCredentialsRequest.OAuthToken
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static PushCredentialsRequest.OAuthToken parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PushCredentialsRequest.OAuthToken
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<PushCredentialsRequest.OAuthToken> parser()
Returns
Type Description
Parser<OAuthToken>

Methods

equals(Object obj)

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

getAccessToken()

public String getAccessToken()

Required. The OAuth token.

string access_token = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The accessToken.

getAccessTokenBytes()

public ByteString getAccessTokenBytes()

Required. The OAuth token.

string access_token = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for accessToken.

getDefaultInstanceForType()

public PushCredentialsRequest.OAuthToken getDefaultInstanceForType()
Returns
Type Description
PushCredentialsRequest.OAuthToken

getEmail()

public String getEmail()

Optional. The email address encapsulated in the OAuth token.

string email = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The email.

getEmailBytes()

public ByteString getEmailBytes()

Optional. The email address encapsulated in the OAuth token.

string email = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for email.

getExpireTime()

public Timestamp getExpireTime()

Optional. The time the OAuth access token will expire. This should be the time the access token was generated plus the expires_in offset returned from the Access Token Response.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The expireTime.

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

Optional. The time the OAuth access token will expire. This should be the time the access token was generated plus the expires_in offset returned from the Access Token Response.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

getParserForType()

public Parser<PushCredentialsRequest.OAuthToken> getParserForType()
Returns
Type Description
Parser<OAuthToken>
Overrides

getScopes()

public String getScopes()

Optional. The scopes encapsulated in the OAuth token. See https://developers.google.com/identity/protocols/oauth2/scopes for more information.

string scopes = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The scopes.

getScopesBytes()

public ByteString getScopesBytes()

Optional. The scopes encapsulated in the OAuth token. See https://developers.google.com/identity/protocols/oauth2/scopes for more information.

string scopes = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for scopes.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasExpireTime()

public boolean hasExpireTime()

Optional. The time the OAuth access token will expire. This should be the time the access token was generated plus the expires_in offset returned from the Access Token Response.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the expireTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PushCredentialsRequest.OAuthToken.Builder newBuilderForType()
Returns
Type Description
PushCredentialsRequest.OAuthToken.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected PushCredentialsRequest.OAuthToken.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PushCredentialsRequest.OAuthToken.Builder
Overrides

toBuilder()

public PushCredentialsRequest.OAuthToken.Builder toBuilder()
Returns
Type Description
PushCredentialsRequest.OAuthToken.Builder

writeTo(CodedOutputStream output)

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