Class ExternalAccountKey.Builder (0.31.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.v1beta1.ExternalAccountKey

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExternalAccountKey.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ExternalAccountKey.Builder
Overrides

build()

public ExternalAccountKey build()
Returns
TypeDescription
ExternalAccountKey

buildPartial()

public ExternalAccountKey buildPartial()
Returns
TypeDescription
ExternalAccountKey

clear()

public ExternalAccountKey.Builder clear()
Returns
TypeDescription
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
TypeDescription
ExternalAccountKey.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ExternalAccountKey.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ExternalAccountKey.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ExternalAccountKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ExternalAccountKey.Builder
Overrides

clone()

public ExternalAccountKey.Builder clone()
Returns
TypeDescription
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
TypeDescription
ByteString

The b64MacKey.

getDefaultInstanceForType()

public ExternalAccountKey getDefaultInstanceForType()
Returns
TypeDescription
ExternalAccountKey

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExternalAccountKey other)

public ExternalAccountKey.Builder mergeFrom(ExternalAccountKey other)
Parameter
NameDescription
otherExternalAccountKey
Returns
TypeDescription
ExternalAccountKey.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExternalAccountKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExternalAccountKey.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ExternalAccountKey.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ExternalAccountKey.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExternalAccountKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueByteString

The b64MacKey to set.

Returns
TypeDescription
ExternalAccountKey.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ExternalAccountKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The keyId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for keyId to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ExternalAccountKey.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ExternalAccountKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExternalAccountKey.Builder
Overrides