public final class PublicKeyCredential extends GeneratedMessageV3 implements PublicKeyCredentialOrBuilder
A public key format and data.
Protobuf type google.cloud.iot.v1.PublicKeyCredential
Static Fields
public static final int FORMAT_FIELD_NUMBER
Field Value
KEY_FIELD_NUMBER
public static final int KEY_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static PublicKeyCredential getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static PublicKeyCredential.Builder newBuilder()
Returns
newBuilder(PublicKeyCredential prototype)
public static PublicKeyCredential.Builder newBuilder(PublicKeyCredential prototype)
Parameter
Returns
public static PublicKeyCredential parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static PublicKeyCredential parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static PublicKeyCredential parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PublicKeyCredential parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static PublicKeyCredential parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PublicKeyCredential parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static PublicKeyCredential parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static PublicKeyCredential parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static PublicKeyCredential parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static PublicKeyCredential parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static PublicKeyCredential parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PublicKeyCredential parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<PublicKeyCredential> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public PublicKeyCredential getDefaultInstanceForType()
Returns
public PublicKeyFormat getFormat()
The format of the key.
.google.cloud.iot.v1.PublicKeyFormat format = 1;
Returns
public int getFormatValue()
The format of the key.
.google.cloud.iot.v1.PublicKeyFormat format = 1;
Returns
Type | Description |
int | The enum numeric value on the wire for format.
|
getKey()
The key data.
string key = 2;
Returns
getKeyBytes()
public ByteString getKeyBytes()
The key data.
string key = 2;
Returns
getParserForType()
public Parser<PublicKeyCredential> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public PublicKeyCredential.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected PublicKeyCredential.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public PublicKeyCredential.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions