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.v1beta1.OidcToken
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