public static final class PushConfig.OidcToken.Builder extends GeneratedMessage.Builder<PushConfig.OidcToken.Builder> implements PushConfig.OidcTokenOrBuilderContains information needed for generating an OpenID Connect token.
Protobuf type google.pubsub.v1.PushConfig.OidcToken
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PushConfig.OidcToken.BuilderImplements
PushConfig.OidcTokenOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public PushConfig.OidcToken build()| Returns | |
|---|---|
| Type | Description |
PushConfig.OidcToken |
|
buildPartial()
public PushConfig.OidcToken buildPartial()| Returns | |
|---|---|
| Type | Description |
PushConfig.OidcToken |
|
clear()
public PushConfig.OidcToken.Builder clear()| Returns | |
|---|---|
| Type | Description |
PushConfig.OidcToken.Builder |
|
clearAudience()
public PushConfig.OidcToken.Builder clearAudience()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
PushConfig.OidcToken.Builder |
This builder for chaining. |
clearServiceAccountEmail()
public PushConfig.OidcToken.Builder clearServiceAccountEmail()Optional. Service account email used for generating the OIDC token. For more information on setting up authentication, see Push subscriptions.
string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
PushConfig.OidcToken.Builder |
This builder for chaining. |
getAudience()
public String getAudience()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The audience. |
getAudienceBytes()
public ByteString getAudienceBytes()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for audience. |
getDefaultInstanceForType()
public PushConfig.OidcToken getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
PushConfig.OidcToken |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getServiceAccountEmail()
public String getServiceAccountEmail()Optional. Service account email used for generating the OIDC token. For more information on setting up authentication, see Push subscriptions.
string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The serviceAccountEmail. |
getServiceAccountEmailBytes()
public ByteString getServiceAccountEmailBytes()Optional. Service account email used for generating the OIDC token. For more information on setting up authentication, see Push subscriptions.
string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for serviceAccountEmail. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PushConfig.OidcToken.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PushConfig.OidcToken.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PushConfig.OidcToken.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PushConfig.OidcToken.Builder |
|
mergeFrom(PushConfig.OidcToken other)
public PushConfig.OidcToken.Builder mergeFrom(PushConfig.OidcToken other)| Parameter | |
|---|---|
| Name | Description |
other |
PushConfig.OidcToken |
| Returns | |
|---|---|
| Type | Description |
PushConfig.OidcToken.Builder |
|
setAudience(String value)
public PushConfig.OidcToken.Builder setAudience(String value)Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe audience to set. |
| Returns | |
|---|---|
| Type | Description |
PushConfig.OidcToken.Builder |
This builder for chaining. |
setAudienceBytes(ByteString value)
public PushConfig.OidcToken.Builder setAudienceBytes(ByteString value)Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for audience to set. |
| Returns | |
|---|---|
| Type | Description |
PushConfig.OidcToken.Builder |
This builder for chaining. |
setServiceAccountEmail(String value)
public PushConfig.OidcToken.Builder setServiceAccountEmail(String value)Optional. Service account email used for generating the OIDC token. For more information on setting up authentication, see Push subscriptions.
string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe serviceAccountEmail to set. |
| Returns | |
|---|---|
| Type | Description |
PushConfig.OidcToken.Builder |
This builder for chaining. |
setServiceAccountEmailBytes(ByteString value)
public PushConfig.OidcToken.Builder setServiceAccountEmailBytes(ByteString value)Optional. Service account email used for generating the OIDC token. For more information on setting up authentication, see Push subscriptions.
string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for serviceAccountEmail to set. |
| Returns | |
|---|---|
| Type | Description |
PushConfig.OidcToken.Builder |
This builder for chaining. |