Send feedback
Class OidcToken.Builder (2.29.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.29.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 ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public OidcToken . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
buildPartial()
public OidcToken buildPartial ()
clear()
public OidcToken . Builder clear ()
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;
clearField(Descriptors.FieldDescriptor field)
public OidcToken . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public OidcToken . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
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;
clone()
public OidcToken . Builder clone ()
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 Type Description ByteString
The bytes for audience.
getDefaultInstanceForType()
public OidcToken getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(OidcToken other)
public OidcToken . Builder mergeFrom ( OidcToken other )
public OidcToken . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public OidcToken . Builder mergeFrom ( Message other )
Parameter Name Description other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final OidcToken . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
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.
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.
setField(Descriptors.FieldDescriptor field, Object value)
public OidcToken . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public OidcToken . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
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.
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.
setUnknownFields(UnknownFieldSet unknownFields)
public final OidcToken . Builder setUnknownFields ( UnknownFieldSet unknownFields )
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 2024-10-04 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-10-04 UTC."}
[[["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 2024-10-04 UTC."]]