public static final class PushConfig.OidcToken.Builder extends GeneratedMessageV3.Builder<PushConfig.OidcToken.Builder> implements PushConfig.OidcTokenOrBuilder
Contains information needed for generating an
OpenID Connect
token.
Protobuf type google.pubsub.v1.PushConfig.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 PushConfig.OidcToken.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public PushConfig.OidcToken build()
Returns
buildPartial()
public PushConfig.OidcToken buildPartial()
Returns
clear()
public PushConfig.OidcToken.Builder clear()
Returns
Overrides
clearAudience()
public PushConfig.OidcToken.Builder clearAudience()
Audience to be used when generating OIDC token. The audience claim
identifies the recipients that the JWT is intended for. The audience
value is a single case-sensitive string. Having multiple values (array)
for the audience field is not supported. More info about the OIDC JWT
token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
Note: if not specified, the Push endpoint URL will be used.
string audience = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public PushConfig.OidcToken.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public PushConfig.OidcToken.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearServiceAccountEmail()
public PushConfig.OidcToken.Builder clearServiceAccountEmail()
Service account
email
to be used for generating the OIDC token. The caller (for
CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must
have the iam.serviceAccounts.actAs permission for the service account.
string service_account_email = 1;
Returns
clone()
public PushConfig.OidcToken.Builder clone()
Returns
Overrides
getAudience()
public String getAudience()
Audience to be used when generating OIDC token. The audience claim
identifies the recipients that the JWT is intended for. The audience
value is a single case-sensitive string. Having multiple values (array)
for the audience field is not supported. More info about the OIDC JWT
token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
Note: if not specified, the Push endpoint URL will be used.
string audience = 2;
Returns
Type | Description |
String | The audience.
|
getAudienceBytes()
public ByteString getAudienceBytes()
Audience to be used when generating OIDC token. The audience claim
identifies the recipients that the JWT is intended for. The audience
value is a single case-sensitive string. Having multiple values (array)
for the audience field is not supported. More info about the OIDC JWT
token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
Note: if not specified, the Push endpoint URL will be used.
string audience = 2;
Returns
getDefaultInstanceForType()
public PushConfig.OidcToken getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getServiceAccountEmail()
public String getServiceAccountEmail()
Service account
email
to be used for generating the OIDC token. The caller (for
CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must
have the 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 the OIDC token. The caller (for
CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must
have the 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
public PushConfig.OidcToken.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public PushConfig.OidcToken.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(PushConfig.OidcToken other)
public PushConfig.OidcToken.Builder mergeFrom(PushConfig.OidcToken other)
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PushConfig.OidcToken.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setAudience(String value)
public PushConfig.OidcToken.Builder setAudience(String value)
Audience to be used when generating OIDC token. The audience claim
identifies the recipients that the JWT is intended for. The audience
value is a single case-sensitive string. Having multiple values (array)
for the audience field is not supported. More info about the OIDC JWT
token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
Note: if not specified, the Push endpoint URL will be used.
string audience = 2;
Parameter
Name | Description |
value | String
The audience to set.
|
Returns
setAudienceBytes(ByteString value)
public PushConfig.OidcToken.Builder setAudienceBytes(ByteString value)
Audience to be used when generating OIDC token. The audience claim
identifies the recipients that the JWT is intended for. The audience
value is a single case-sensitive string. Having multiple values (array)
for the audience field is not supported. More info about the OIDC JWT
token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
Note: if not specified, the Push endpoint URL 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 PushConfig.OidcToken.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PushConfig.OidcToken.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setServiceAccountEmail(String value)
public PushConfig.OidcToken.Builder setServiceAccountEmail(String value)
Service account
email
to be used for generating the OIDC token. The caller (for
CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must
have the 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 PushConfig.OidcToken.Builder setServiceAccountEmailBytes(ByteString value)
Service account
email
to be used for generating the OIDC token. The caller (for
CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must
have the 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 PushConfig.OidcToken.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides