- 0.64.0 (latest)
 - 0.62.0
 - 0.61.0
 - 0.60.0
 - 0.59.0
 - 0.58.0
 - 0.56.0
 - 0.54.0
 - 0.53.0
 - 0.50.0
 - 0.49.0
 - 0.48.0
 - 0.46.0
 - 0.45.0
 - 0.44.0
 - 0.43.0
 - 0.42.0
 - 0.41.0
 - 0.40.0
 - 0.39.0
 - 0.38.0
 - 0.37.0
 - 0.35.0
 - 0.34.0
 - 0.33.0
 - 0.32.0
 - 0.31.0
 - 0.30.0
 - 0.29.0
 - 0.28.0
 - 0.27.0
 - 0.26.0
 - 0.25.0
 - 0.23.0
 - 0.22.0
 - 0.21.0
 - 0.20.0
 - 0.19.0
 - 0.18.0
 - 0.17.0
 - 0.16.0
 - 0.15.0
 - 0.14.0
 - 0.13.0
 - 0.10.0
 - 0.9.0
 - 0.8.0
 - 0.7.0
 - 0.6.0
 - 0.5.0
 - 0.4.0
 - 0.3.0
 - 0.2.0
 - 0.1.0
 
public static final class TokenOptions.Builder extends GeneratedMessageV3.Builder<TokenOptions.Builder> implements TokenOptionsOrBuilderOptions to modify claims in the token to generate custom-purpose tokens.
 Protobuf type google.cloud.confidentialcomputing.v1.TokenOptions
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TokenOptions.BuilderImplements
TokenOptionsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description | 
Descriptor | 
        |
Methods
addAllNonce(Iterable<String> values)
public TokenOptions.Builder addAllNonce(Iterable<String> values)Optional. Optional parameter to place one or more nonces in the eat_nonce claim in the output token. The minimum size for JSON-encoded EATs is 10 bytes and the maximum size is 74 bytes.
 repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
values | 
        Iterable<String>The nonce to add.  | 
      
| Returns | |
|---|---|
| Type | Description | 
TokenOptions.Builder | 
        This builder for chaining.  | 
      
addNonce(String value)
public TokenOptions.Builder addNonce(String value)Optional. Optional parameter to place one or more nonces in the eat_nonce claim in the output token. The minimum size for JSON-encoded EATs is 10 bytes and the maximum size is 74 bytes.
 repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe nonce to add.  | 
      
| Returns | |
|---|---|
| Type | Description | 
TokenOptions.Builder | 
        This builder for chaining.  | 
      
addNonceBytes(ByteString value)
public TokenOptions.Builder addNonceBytes(ByteString value)Optional. Optional parameter to place one or more nonces in the eat_nonce claim in the output token. The minimum size for JSON-encoded EATs is 10 bytes and the maximum size is 74 bytes.
 repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes of the nonce to add.  | 
      
| Returns | |
|---|---|
| Type | Description | 
TokenOptions.Builder | 
        This builder for chaining.  | 
      
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TokenOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
TokenOptions.Builder | 
        |
build()
public TokenOptions build()| Returns | |
|---|---|
| Type | Description | 
TokenOptions | 
        |
buildPartial()
public TokenOptions buildPartial()| Returns | |
|---|---|
| Type | Description | 
TokenOptions | 
        |
clear()
public TokenOptions.Builder clear()| Returns | |
|---|---|
| Type | Description | 
TokenOptions.Builder | 
        |
clearAudience()
public TokenOptions.Builder clearAudience()Optional. Optional string to issue the token with a custom audience claim. Required if one or more nonces are specified.
 string audience = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
TokenOptions.Builder | 
        This builder for chaining.  | 
      
clearAwsPrincipalTagsOptions()
public TokenOptions.Builder clearAwsPrincipalTagsOptions()Optional. Options for AWS token type.
 
 .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL];
 
| Returns | |
|---|---|
| Type | Description | 
TokenOptions.Builder | 
        |
clearField(Descriptors.FieldDescriptor field)
public TokenOptions.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
| Returns | |
|---|---|
| Type | Description | 
TokenOptions.Builder | 
        |
clearNonce()
public TokenOptions.Builder clearNonce()Optional. Optional parameter to place one or more nonces in the eat_nonce claim in the output token. The minimum size for JSON-encoded EATs is 10 bytes and the maximum size is 74 bytes.
 repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
TokenOptions.Builder | 
        This builder for chaining.  | 
      
clearOneof(Descriptors.OneofDescriptor oneof)
public TokenOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description | 
oneof | 
        OneofDescriptor | 
      
| Returns | |
|---|---|
| Type | Description | 
TokenOptions.Builder | 
        |
clearTokenType()
public TokenOptions.Builder clearTokenType()Optional. Optional token type to select what type of token to return.
 
 .google.cloud.confidentialcomputing.v1.TokenType token_type = 3 [(.google.api.field_behavior) = OPTIONAL];
 
| Returns | |
|---|---|
| Type | Description | 
TokenOptions.Builder | 
        This builder for chaining.  | 
      
clearTokenTypeOptions()
public TokenOptions.Builder clearTokenTypeOptions()| Returns | |
|---|---|
| Type | Description | 
TokenOptions.Builder | 
        |
clone()
public TokenOptions.Builder clone()| Returns | |
|---|---|
| Type | Description | 
TokenOptions.Builder | 
        |
getAudience()
public String getAudience()Optional. Optional string to issue the token with a custom audience claim. Required if one or more nonces are specified.
 string audience = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
String | 
        The audience.  | 
      
getAudienceBytes()
public ByteString getAudienceBytes()Optional. Optional string to issue the token with a custom audience claim. Required if one or more nonces are specified.
 string audience = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for audience.  | 
      
getAwsPrincipalTagsOptions()
public AwsPrincipalTagsOptions getAwsPrincipalTagsOptions()Optional. Options for AWS token type.
 
 .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL];
 
| Returns | |
|---|---|
| Type | Description | 
AwsPrincipalTagsOptions | 
        The awsPrincipalTagsOptions.  | 
      
getAwsPrincipalTagsOptionsBuilder()
public AwsPrincipalTagsOptions.Builder getAwsPrincipalTagsOptionsBuilder()Optional. Options for AWS token type.
 
 .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL];
 
| Returns | |
|---|---|
| Type | Description | 
AwsPrincipalTagsOptions.Builder | 
        |
getAwsPrincipalTagsOptionsOrBuilder()
public AwsPrincipalTagsOptionsOrBuilder getAwsPrincipalTagsOptionsOrBuilder()Optional. Options for AWS token type.
 
 .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL];
 
| Returns | |
|---|---|
| Type | Description | 
AwsPrincipalTagsOptionsOrBuilder | 
        |
getDefaultInstanceForType()
public TokenOptions getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description | 
TokenOptions | 
        |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description | 
Descriptor | 
        |
getNonce(int index)
public String getNonce(int index)Optional. Optional parameter to place one or more nonces in the eat_nonce claim in the output token. The minimum size for JSON-encoded EATs is 10 bytes and the maximum size is 74 bytes.
 repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
index | 
        intThe index of the element to return.  | 
      
| Returns | |
|---|---|
| Type | Description | 
String | 
        The nonce at the given index.  | 
      
getNonceBytes(int index)
public ByteString getNonceBytes(int index)Optional. Optional parameter to place one or more nonces in the eat_nonce claim in the output token. The minimum size for JSON-encoded EATs is 10 bytes and the maximum size is 74 bytes.
 repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
index | 
        intThe index of the value to return.  | 
      
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes of the nonce at the given index.  | 
      
getNonceCount()
public int getNonceCount()Optional. Optional parameter to place one or more nonces in the eat_nonce claim in the output token. The minimum size for JSON-encoded EATs is 10 bytes and the maximum size is 74 bytes.
 repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
int | 
        The count of nonce.  | 
      
getNonceList()
public ProtocolStringList getNonceList()Optional. Optional parameter to place one or more nonces in the eat_nonce claim in the output token. The minimum size for JSON-encoded EATs is 10 bytes and the maximum size is 74 bytes.
 repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
ProtocolStringList | 
        A list containing the nonce.  | 
      
getTokenType()
public TokenType getTokenType()Optional. Optional token type to select what type of token to return.
 
 .google.cloud.confidentialcomputing.v1.TokenType token_type = 3 [(.google.api.field_behavior) = OPTIONAL];
 
| Returns | |
|---|---|
| Type | Description | 
TokenType | 
        The tokenType.  | 
      
getTokenTypeOptionsCase()
public TokenOptions.TokenTypeOptionsCase getTokenTypeOptionsCase()| Returns | |
|---|---|
| Type | Description | 
TokenOptions.TokenTypeOptionsCase | 
        |
getTokenTypeValue()
public int getTokenTypeValue()Optional. Optional token type to select what type of token to return.
 
 .google.cloud.confidentialcomputing.v1.TokenType token_type = 3 [(.google.api.field_behavior) = OPTIONAL];
 
| Returns | |
|---|---|
| Type | Description | 
int | 
        The enum numeric value on the wire for tokenType.  | 
      
hasAwsPrincipalTagsOptions()
public boolean hasAwsPrincipalTagsOptions()Optional. Options for AWS token type.
 
 .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL];
 
| Returns | |
|---|---|
| Type | Description | 
boolean | 
        Whether the awsPrincipalTagsOptions field is set.  | 
      
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description | 
FieldAccessorTable | 
        |
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description | 
boolean | 
        |
mergeAwsPrincipalTagsOptions(AwsPrincipalTagsOptions value)
public TokenOptions.Builder mergeAwsPrincipalTagsOptions(AwsPrincipalTagsOptions value)Optional. Options for AWS token type.
 
 .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL];
 
| Parameter | |
|---|---|
| Name | Description | 
value | 
        AwsPrincipalTagsOptions | 
      
| Returns | |
|---|---|
| Type | Description | 
TokenOptions.Builder | 
        |
mergeFrom(TokenOptions other)
public TokenOptions.Builder mergeFrom(TokenOptions other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        TokenOptions | 
      
| Returns | |
|---|---|
| Type | Description | 
TokenOptions.Builder | 
        |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TokenOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description | 
input | 
        CodedInputStream | 
      
extensionRegistry | 
        ExtensionRegistryLite | 
      
| Returns | |
|---|---|
| Type | Description | 
TokenOptions.Builder | 
        |
| Exceptions | |
|---|---|
| Type | Description | 
IOException | 
        |
mergeFrom(Message other)
public TokenOptions.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        Message | 
      
| Returns | |
|---|---|
| Type | Description | 
TokenOptions.Builder | 
        |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TokenOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| Type | Description | 
TokenOptions.Builder | 
        |
setAudience(String value)
public TokenOptions.Builder setAudience(String value)Optional. Optional string to issue the token with a custom audience claim. Required if one or more nonces are specified.
 string audience = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe audience to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
TokenOptions.Builder | 
        This builder for chaining.  | 
      
setAudienceBytes(ByteString value)
public TokenOptions.Builder setAudienceBytes(ByteString value)Optional. Optional string to issue the token with a custom audience claim. Required if one or more nonces are specified.
 string audience = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for audience to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
TokenOptions.Builder | 
        This builder for chaining.  | 
      
setAwsPrincipalTagsOptions(AwsPrincipalTagsOptions value)
public TokenOptions.Builder setAwsPrincipalTagsOptions(AwsPrincipalTagsOptions value)Optional. Options for AWS token type.
 
 .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL];
 
| Parameter | |
|---|---|
| Name | Description | 
value | 
        AwsPrincipalTagsOptions | 
      
| Returns | |
|---|---|
| Type | Description | 
TokenOptions.Builder | 
        |
setAwsPrincipalTagsOptions(AwsPrincipalTagsOptions.Builder builderForValue)
public TokenOptions.Builder setAwsPrincipalTagsOptions(AwsPrincipalTagsOptions.Builder builderForValue)Optional. Options for AWS token type.
 
 .google.cloud.confidentialcomputing.v1.AwsPrincipalTagsOptions aws_principal_tags_options = 4 [(.google.api.field_behavior) = OPTIONAL];
 
| Parameter | |
|---|---|
| Name | Description | 
builderForValue | 
        AwsPrincipalTagsOptions.Builder | 
      
| Returns | |
|---|---|
| Type | Description | 
TokenOptions.Builder | 
        |
setField(Descriptors.FieldDescriptor field, Object value)
public TokenOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
TokenOptions.Builder | 
        |
setNonce(int index, String value)
public TokenOptions.Builder setNonce(int index, String value)Optional. Optional parameter to place one or more nonces in the eat_nonce claim in the output token. The minimum size for JSON-encoded EATs is 10 bytes and the maximum size is 74 bytes.
 repeated string nonce = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description | 
index | 
        intThe index to set the value at.  | 
      
value | 
        StringThe nonce to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
TokenOptions.Builder | 
        This builder for chaining.  | 
      
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TokenOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
index | 
        int | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
TokenOptions.Builder | 
        |
setTokenType(TokenType value)
public TokenOptions.Builder setTokenType(TokenType value)Optional. Optional token type to select what type of token to return.
 
 .google.cloud.confidentialcomputing.v1.TokenType token_type = 3 [(.google.api.field_behavior) = OPTIONAL];
 
| Parameter | |
|---|---|
| Name | Description | 
value | 
        TokenTypeThe tokenType to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
TokenOptions.Builder | 
        This builder for chaining.  | 
      
setTokenTypeValue(int value)
public TokenOptions.Builder setTokenTypeValue(int value)Optional. Optional token type to select what type of token to return.
 
 .google.cloud.confidentialcomputing.v1.TokenType token_type = 3 [(.google.api.field_behavior) = OPTIONAL];
 
| Parameter | |
|---|---|
| Name | Description | 
value | 
        intThe enum numeric value on the wire for tokenType to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
TokenOptions.Builder | 
        This builder for chaining.  | 
      
setUnknownFields(UnknownFieldSet unknownFields)
public final TokenOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| Type | Description | 
TokenOptions.Builder | 
        |