Class PublicKeyCredential (2.23.0)

public final class PublicKeyCredential extends GeneratedMessageV3 implements PublicKeyCredentialOrBuilder

A public key format and data.

Protobuf type google.cloud.iot.v1.PublicKeyCredential

Static Fields

FORMAT_FIELD_NUMBER

public static final int FORMAT_FIELD_NUMBER
Field Value
TypeDescription
int

KEY_FIELD_NUMBER

public static final int KEY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PublicKeyCredential getDefaultInstance()
Returns
TypeDescription
PublicKeyCredential

getDescriptor()

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

newBuilder()

public static PublicKeyCredential.Builder newBuilder()
Returns
TypeDescription
PublicKeyCredential.Builder

newBuilder(PublicKeyCredential prototype)

public static PublicKeyCredential.Builder newBuilder(PublicKeyCredential prototype)
Parameter
NameDescription
prototypePublicKeyCredential
Returns
TypeDescription
PublicKeyCredential.Builder

parseDelimitedFrom(InputStream input)

public static PublicKeyCredential parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PublicKeyCredential
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PublicKeyCredential parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PublicKeyCredential
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static PublicKeyCredential parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
PublicKeyCredential
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PublicKeyCredential parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PublicKeyCredential
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PublicKeyCredential parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PublicKeyCredential
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PublicKeyCredential parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PublicKeyCredential
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PublicKeyCredential parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PublicKeyCredential
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PublicKeyCredential parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PublicKeyCredential
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static PublicKeyCredential parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PublicKeyCredential
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PublicKeyCredential parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PublicKeyCredential
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static PublicKeyCredential parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PublicKeyCredential
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PublicKeyCredential parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PublicKeyCredential
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<PublicKeyCredential> parser()
Returns
TypeDescription
Parser<PublicKeyCredential>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public PublicKeyCredential getDefaultInstanceForType()
Returns
TypeDescription
PublicKeyCredential

getFormat()

public PublicKeyFormat getFormat()

The format of the key.

.google.cloud.iot.v1.PublicKeyFormat format = 1;

Returns
TypeDescription
PublicKeyFormat

The format.

getFormatValue()

public int getFormatValue()

The format of the key.

.google.cloud.iot.v1.PublicKeyFormat format = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for format.

getKey()

public String getKey()

The key data.

string key = 2;

Returns
TypeDescription
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

The key data.

string key = 2;

Returns
TypeDescription
ByteString

The bytes for key.

getParserForType()

public Parser<PublicKeyCredential> getParserForType()
Returns
TypeDescription
Parser<PublicKeyCredential>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public PublicKeyCredential.Builder newBuilderForType()
Returns
TypeDescription
PublicKeyCredential.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PublicKeyCredential.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
PublicKeyCredential.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public PublicKeyCredential.Builder toBuilder()
Returns
TypeDescription
PublicKeyCredential.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException