Send feedback
Class OidcToken.Builder (2.11.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.11.0 keyboard_arrow_down
public static final class OidcToken . Builder extends GeneratedMessageV3 . Builder<OidcToken . Builder > implements OidcTokenOrBuilder
Contains information needed for generating an
OpenID Connect
token .
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.scheduler.v1.OidcToken
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public OidcToken . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public OidcToken buildPartial ()
Returns
clear()
public OidcToken . Builder clear ()
Returns
Overrides
clearAudience()
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;
Returns
clearField(Descriptors.FieldDescriptor field)
public OidcToken . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public OidcToken . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearServiceAccountEmail()
public OidcToken . Builder clearServiceAccountEmail ()
Service account email
to be used for generating OIDC 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
clone()
public OidcToken . Builder clone ()
Returns
Overrides
getAudience()
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;
Returns
Type Description String
The audience.
getAudienceBytes()
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;
Returns
getDefaultInstanceForType()
public OidcToken getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getServiceAccountEmail()
public String getServiceAccountEmail ()
Service account email
to be used for generating OIDC 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()
public ByteString getServiceAccountEmailBytes ()
Service account email
to be used for generating OIDC 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.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(OidcToken other)
public OidcToken . Builder mergeFrom ( OidcToken other )
Parameter
Returns
public OidcToken . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public OidcToken . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final OidcToken . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setAudience(String value)
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;
Parameter
Name Description value
String
The audience to set.
Returns
setAudienceBytes(ByteString value)
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;
Parameter
Name Description value
ByteString
The bytes for audience to set.
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public OidcToken . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public OidcToken . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setServiceAccountEmail(String value)
public OidcToken . Builder setServiceAccountEmail ( String value )
Service account email
to be used for generating OIDC 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;
Parameter
Name Description value
String
The serviceAccountEmail to set.
Returns
setServiceAccountEmailBytes(ByteString value)
public OidcToken . Builder setServiceAccountEmailBytes ( ByteString value )
Service account email
to be used for generating OIDC 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;
Parameter
Name Description value
ByteString
The bytes for serviceAccountEmail to set.
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final OidcToken . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
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-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]