Class OAuthToken (2.16.0)

publicfinalclass OAuthTokenextendsGeneratedMessageV3implementsOAuthTokenOrBuilder

Contains information needed for generating an OAuth token. This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com.

Protobuf type google.cloud.scheduler.v1beta1.OAuthToken

Implements

OAuthTokenOrBuilder

Inherited Members

Static Fields

SCOPE_FIELD_NUMBER

publicstaticfinalintSCOPE_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER

publicstaticfinalintSERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticOAuthTokengetDefaultInstance()
Returns
Type Description
OAuthToken

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticOAuthToken.BuildernewBuilder()
Returns
Type Description
OAuthToken.Builder

newBuilder(OAuthToken prototype)

publicstaticOAuthToken.BuildernewBuilder(OAuthTokenprototype)
Parameter
Name Description
prototype OAuthToken
Returns
Type Description
OAuthToken.Builder

parseDelimitedFrom(InputStream input)

publicstaticOAuthTokenparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
OAuthToken
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticOAuthTokenparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OAuthToken
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticOAuthTokenparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
OAuthToken
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticOAuthTokenparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OAuthToken
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticOAuthTokenparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
OAuthToken
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticOAuthTokenparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OAuthToken
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticOAuthTokenparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
OAuthToken
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticOAuthTokenparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OAuthToken
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticOAuthTokenparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
OAuthToken
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticOAuthTokenparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OAuthToken
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticOAuthTokenparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
OAuthToken
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticOAuthTokenparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OAuthToken
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<OAuthToken>parser()
Returns
Type Description
Parser<OAuthToken>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicOAuthTokengetDefaultInstanceForType()
Returns
Type Description
OAuthToken

getParserForType()

publicParser<OAuthToken>getParserForType()
Returns
Type Description
Parser<OAuthToken>
Overrides

getScope()

publicStringgetScope()

OAuth scope to be used for generating OAuth access token. If not specified, "https://www.googleapis.com/auth/cloud-platform" will be used.

string scope = 2;

Returns
Type Description
String

The scope.

getScopeBytes()

publicByteStringgetScopeBytes()

OAuth scope to be used for generating OAuth access token. If not specified, "https://www.googleapis.com/auth/cloud-platform" will be used.

string scope = 2;

Returns
Type Description
ByteString

The bytes for scope.

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getServiceAccountEmail()

publicStringgetServiceAccountEmail()

Service account email to be used for generating OAuth token. The service account must be within the same project as the job. The caller must have iam.serviceAccounts.actAs permission for the service account.

string service_account_email = 1;

Returns
Type Description
String

The serviceAccountEmail.

getServiceAccountEmailBytes()

publicByteStringgetServiceAccountEmailBytes()

Service account email to be used for generating OAuth token. The service account must be within the same project as the job. The caller must have iam.serviceAccounts.actAs permission for the service account.

string service_account_email = 1;

Returns
Type Description
ByteString

The bytes for serviceAccountEmail.

getUnknownFields()

publicfinalUnknownFieldSetgetUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicOAuthToken.BuildernewBuilderForType()
Returns
Type Description
OAuthToken.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedOAuthToken.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
OAuthToken.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicOAuthToken.BuildertoBuilder()
Returns
Type Description
OAuthToken.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.