Class ExternalAccountKey (0.41.0)

public final class ExternalAccountKey extends GeneratedMessageV3 implements ExternalAccountKeyOrBuilder

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

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

Static Fields

B64_MAC_KEY_FIELD_NUMBER

public static final int B64_MAC_KEY_FIELD_NUMBER
Field Value
Type Description
int

KEY_ID_FIELD_NUMBER

public static final int KEY_ID_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ExternalAccountKey getDefaultInstance()
Returns
Type Description
ExternalAccountKey

getDescriptor()

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

newBuilder()

public static ExternalAccountKey.Builder newBuilder()
Returns
Type Description
ExternalAccountKey.Builder

newBuilder(ExternalAccountKey prototype)

public static ExternalAccountKey.Builder newBuilder(ExternalAccountKey prototype)
Parameter
Name Description
prototype ExternalAccountKey
Returns
Type Description
ExternalAccountKey.Builder

parseDelimitedFrom(InputStream input)

public static ExternalAccountKey parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ExternalAccountKey
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExternalAccountKey parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExternalAccountKey
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ExternalAccountKey parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ExternalAccountKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ExternalAccountKey parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExternalAccountKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ExternalAccountKey parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ExternalAccountKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ExternalAccountKey parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExternalAccountKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ExternalAccountKey parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ExternalAccountKey
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ExternalAccountKey parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExternalAccountKey
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ExternalAccountKey parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ExternalAccountKey
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExternalAccountKey parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExternalAccountKey
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ExternalAccountKey parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ExternalAccountKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ExternalAccountKey parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExternalAccountKey
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ExternalAccountKey> parser()
Returns
Type Description
Parser<ExternalAccountKey>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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.

getParserForType()

public Parser<ExternalAccountKey> getParserForType()
Returns
Type Description
Parser<ExternalAccountKey>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ExternalAccountKey.Builder newBuilderForType()
Returns
Type Description
ExternalAccountKey.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ExternalAccountKey.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ExternalAccountKey.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ExternalAccountKey.Builder toBuilder()
Returns
Type Description
ExternalAccountKey.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException