public static final class OidcToken.Builder extends GeneratedMessageV3.Builder<OidcToken.Builder> implements OidcTokenOrBuilder
Contains information needed for generating an [OpenID Connect token](https://developers.google.com/identity/protocols/OpenIDConnect). This type of authorization can be used for many scenarios, including calling Cloud Run, or endpoints where you intend to validate the token yourself.Protobuf type
google.cloud.tasks.v2.OidcToken
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<OidcToken.Builder>
public OidcToken.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<OidcToken.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<OidcToken.Builder>
public OidcToken getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public OidcToken build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public OidcToken buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public OidcToken.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<OidcToken.Builder>
public OidcToken.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<OidcToken.Builder>
public OidcToken.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<OidcToken.Builder>
public OidcToken.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<OidcToken.Builder>
public OidcToken.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<OidcToken.Builder>
public OidcToken.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<OidcToken.Builder>
public OidcToken.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<OidcToken.Builder>
public OidcToken.Builder mergeFrom(OidcToken other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<OidcToken.Builder>
public OidcToken.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<OidcToken.Builder>
IOException
public String getServiceAccountEmail()
[Service account email](https://cloud.google.com/iam/docs/service-accounts) to be used for generating OIDC 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 OidcTokenOrBuilder
public ByteString getServiceAccountEmailBytes()
[Service account email](https://cloud.google.com/iam/docs/service-accounts) to be used for generating OIDC 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 OidcTokenOrBuilder
public OidcToken.Builder setServiceAccountEmail(String value)
[Service account email](https://cloud.google.com/iam/docs/service-accounts) to be used for generating OIDC 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 OidcToken.Builder clearServiceAccountEmail()
[Service account email](https://cloud.google.com/iam/docs/service-accounts) to be used for generating OIDC 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 OidcToken.Builder setServiceAccountEmailBytes(ByteString value)
[Service account email](https://cloud.google.com/iam/docs/service-accounts) to be used for generating OIDC 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 getAudience()
Audience to be used when generating OIDC token. If not specified, the URI specified in target will be used.
string audience = 2;
getAudience
in interface OidcTokenOrBuilder
public ByteString getAudienceBytes()
Audience to be used when generating OIDC token. If not specified, the URI specified in target will be used.
string audience = 2;
getAudienceBytes
in interface OidcTokenOrBuilder
public OidcToken.Builder setAudience(String value)
Audience to be used when generating OIDC token. If not specified, the URI specified in target will be used.
string audience = 2;
value
- The audience to set.public OidcToken.Builder clearAudience()
Audience to be used when generating OIDC token. If not specified, the URI specified in target will be used.
string audience = 2;
public OidcToken.Builder setAudienceBytes(ByteString value)
Audience to be used when generating OIDC token. If not specified, the URI specified in target will be used.
string audience = 2;
value
- The bytes for audience to set.public final OidcToken.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<OidcToken.Builder>
public final OidcToken.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<OidcToken.Builder>
Copyright © 2022 Google LLC. All rights reserved.