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.events.cloud.scheduler.v1.OidcToken
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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