public static final class OAuthToken.Builder extends GeneratedMessageV3.Builder<OAuthToken.Builder> implements OAuthTokenOrBuilder
Contains information needed for generating an [OAuth token](https://developers.google.com/identity/protocols/OAuth2). This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com.Protobuf type
google.cloud.tasks.v2.OAuthToken
Modifier and Type | Method and Description |
---|---|
OAuthToken.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
OAuthToken |
build() |
OAuthToken |
buildPartial() |
OAuthToken.Builder |
clear() |
OAuthToken.Builder |
clearField(Descriptors.FieldDescriptor field) |
OAuthToken.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
OAuthToken.Builder |
clearScope()
OAuth scope to be used for generating OAuth access token.
|
OAuthToken.Builder |
clearServiceAccountEmail()
[Service account email](https://cloud.google.com/iam/docs/service-accounts)
to be used for generating OAuth token.
|
OAuthToken.Builder |
clone() |
OAuthToken |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
String |
getScope()
OAuth scope to be used for generating OAuth access token.
|
ByteString |
getScopeBytes()
OAuth scope to be used for generating OAuth access token.
|
String |
getServiceAccountEmail()
[Service account email](https://cloud.google.com/iam/docs/service-accounts)
to be used for generating OAuth token.
|
ByteString |
getServiceAccountEmailBytes()
[Service account email](https://cloud.google.com/iam/docs/service-accounts)
to be used for generating OAuth token.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
OAuthToken.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
OAuthToken.Builder |
mergeFrom(Message other) |
OAuthToken.Builder |
mergeFrom(OAuthToken other) |
OAuthToken.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
OAuthToken.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
OAuthToken.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
OAuthToken.Builder |
setScope(String value)
OAuth scope to be used for generating OAuth access token.
|
OAuthToken.Builder |
setScopeBytes(ByteString value)
OAuth scope to be used for generating OAuth access token.
|
OAuthToken.Builder |
setServiceAccountEmail(String value)
[Service account email](https://cloud.google.com/iam/docs/service-accounts)
to be used for generating OAuth token.
|
OAuthToken.Builder |
setServiceAccountEmailBytes(ByteString value)
[Service account email](https://cloud.google.com/iam/docs/service-accounts)
to be used for generating OAuth token.
|
OAuthToken.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<OAuthToken.Builder>
public OAuthToken.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<OAuthToken.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<OAuthToken.Builder>
public OAuthToken getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public OAuthToken build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public OAuthToken buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public OAuthToken.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<OAuthToken.Builder>
public OAuthToken.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<OAuthToken.Builder>
public OAuthToken.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<OAuthToken.Builder>
public OAuthToken.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<OAuthToken.Builder>
public OAuthToken.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<OAuthToken.Builder>
public OAuthToken.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<OAuthToken.Builder>
public OAuthToken.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<OAuthToken.Builder>
public OAuthToken.Builder mergeFrom(OAuthToken other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<OAuthToken.Builder>
public OAuthToken.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<OAuthToken.Builder>
IOException
public String getServiceAccountEmail()
[Service account email](https://cloud.google.com/iam/docs/service-accounts) to be used for generating OAuth token. The service account must be within the same project as the queue. The caller must have iam.serviceAccounts.actAs permission for the service account.
string service_account_email = 1;
getServiceAccountEmail
in interface OAuthTokenOrBuilder
public ByteString getServiceAccountEmailBytes()
[Service account email](https://cloud.google.com/iam/docs/service-accounts) to be used for generating OAuth token. The service account must be within the same project as the queue. The caller must have iam.serviceAccounts.actAs permission for the service account.
string service_account_email = 1;
getServiceAccountEmailBytes
in interface OAuthTokenOrBuilder
public OAuthToken.Builder setServiceAccountEmail(String value)
[Service account email](https://cloud.google.com/iam/docs/service-accounts) to be used for generating OAuth token. The service account must be within the same project as the queue. The caller must have iam.serviceAccounts.actAs permission for the service account.
string service_account_email = 1;
value
- The serviceAccountEmail to set.public OAuthToken.Builder clearServiceAccountEmail()
[Service account email](https://cloud.google.com/iam/docs/service-accounts) to be used for generating OAuth token. The service account must be within the same project as the queue. The caller must have iam.serviceAccounts.actAs permission for the service account.
string service_account_email = 1;
public OAuthToken.Builder setServiceAccountEmailBytes(ByteString value)
[Service account email](https://cloud.google.com/iam/docs/service-accounts) to be used for generating OAuth token. The service account must be within the same project as the queue. The caller must have iam.serviceAccounts.actAs permission for the service account.
string service_account_email = 1;
value
- The bytes for serviceAccountEmail to set.public String getScope()
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;
getScope
in interface OAuthTokenOrBuilder
public ByteString getScopeBytes()
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;
getScopeBytes
in interface OAuthTokenOrBuilder
public OAuthToken.Builder setScope(String value)
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;
value
- The scope to set.public OAuthToken.Builder clearScope()
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;
public OAuthToken.Builder setScopeBytes(ByteString value)
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;
value
- The bytes for scope to set.public final OAuthToken.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<OAuthToken.Builder>
public final OAuthToken.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<OAuthToken.Builder>
Copyright © 2022 Google LLC. All rights reserved.