Class ExternalAccountKey.Builder (0.45.0)

public static final class ExternalAccountKey.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExternalAccountKey.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ExternalAccountKey.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public ExternalAccountKey.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ExternalAccountKey.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public ExternalAccountKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ExternalAccountKey.Builder
Overrides

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExternalAccountKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

public ExternalAccountKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ExternalAccountKey.Builder
Overrides

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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ExternalAccountKey.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ExternalAccountKey.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ExternalAccountKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ExternalAccountKey.Builder
Overrides