Class ExternalAccountKey.Builder (0.80.0)

public static final class ExternalAccountKey.Builder extends GeneratedMessage.Builder<ExternalAccountKey.Builder> implements ExternalAccountKeyOrBuilder

A representation of an ExternalAccountKey used for external account binding within ACME.

Protobuf type google.cloud.security.publicca.v1.ExternalAccountKey

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ExternalAccountKey build()
Returns
Type Description
ExternalAccountKey

buildPartial()

public ExternalAccountKey buildPartial()
Returns
Type Description
ExternalAccountKey

clear()

public ExternalAccountKey.Builder clear()
Returns
Type Description
ExternalAccountKey.Builder
Overrides

clearB64MacKey()

public ExternalAccountKey.Builder clearB64MacKey()

Output only. Base64-URL-encoded HS256 key. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created

bytes b64_mac_key = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ExternalAccountKey.Builder

This builder for chaining.

clearKeyId()

public ExternalAccountKey.Builder clearKeyId()

Output only. Key ID. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created

string key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ExternalAccountKey.Builder

This builder for chaining.

clearName()

public ExternalAccountKey.Builder clearName()

Output only. Resource name. projects/{project}/locations/{location}/externalAccountKeys/{key_id}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ExternalAccountKey.Builder

This builder for chaining.

getB64MacKey()

public ByteString getB64MacKey()

Output only. Base64-URL-encoded HS256 key. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created

bytes b64_mac_key = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The b64MacKey.

getDefaultInstanceForType()

public ExternalAccountKey getDefaultInstanceForType()
Returns
Type Description
ExternalAccountKey

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getKeyId()

public String getKeyId()

Output only. Key ID. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created

string key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The keyId.

getKeyIdBytes()

public ByteString getKeyIdBytes()

Output only. Key ID. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created

string key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for keyId.

getName()

public String getName()

Output only. Resource name. projects/{project}/locations/{location}/externalAccountKeys/{key_id}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Resource name. projects/{project}/locations/{location}/externalAccountKeys/{key_id}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExternalAccountKey other)

public ExternalAccountKey.Builder mergeFrom(ExternalAccountKey other)
Parameter
Name Description
other ExternalAccountKey
Returns
Type Description
ExternalAccountKey.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExternalAccountKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExternalAccountKey.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ExternalAccountKey.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ExternalAccountKey.Builder
Overrides

setB64MacKey(ByteString value)

public ExternalAccountKey.Builder setB64MacKey(ByteString value)

Output only. Base64-URL-encoded HS256 key. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created

bytes b64_mac_key = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The b64MacKey to set.

Returns
Type Description
ExternalAccountKey.Builder

This builder for chaining.

setKeyId(String value)

public ExternalAccountKey.Builder setKeyId(String value)

Output only. Key ID. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created

string key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The keyId to set.

Returns
Type Description
ExternalAccountKey.Builder

This builder for chaining.

setKeyIdBytes(ByteString value)

public ExternalAccountKey.Builder setKeyIdBytes(ByteString value)

Output only. Key ID. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created

string key_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for keyId to set.

Returns
Type Description
ExternalAccountKey.Builder

This builder for chaining.

setName(String value)

public ExternalAccountKey.Builder setName(String value)

Output only. Resource name. projects/{project}/locations/{location}/externalAccountKeys/{key_id}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ExternalAccountKey.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ExternalAccountKey.Builder setNameBytes(ByteString value)

Output only. Resource name. projects/{project}/locations/{location}/externalAccountKeys/{key_id}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ExternalAccountKey.Builder

This builder for chaining.