Class RegistryCredential.Builder (2.32.0)

public static final class RegistryCredential.Builder extends GeneratedMessageV3.Builder<RegistryCredential.Builder> implements RegistryCredentialOrBuilder

A server-stored registry credential used to validate device credentials.

Protobuf type google.cloud.iot.v1.RegistryCredential

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RegistryCredential build()
Returns
TypeDescription
RegistryCredential

buildPartial()

public RegistryCredential buildPartial()
Returns
TypeDescription
RegistryCredential

clear()

public RegistryCredential.Builder clear()
Returns
TypeDescription
RegistryCredential.Builder
Overrides

clearCredential()

public RegistryCredential.Builder clearCredential()
Returns
TypeDescription
RegistryCredential.Builder

clearField(Descriptors.FieldDescriptor field)

public RegistryCredential.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RegistryCredential.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPublicKeyCertificate()

public RegistryCredential.Builder clearPublicKeyCertificate()

A public key certificate used to verify the device credentials.

.google.cloud.iot.v1.PublicKeyCertificate public_key_certificate = 1;

Returns
TypeDescription
RegistryCredential.Builder

clone()

public RegistryCredential.Builder clone()
Returns
TypeDescription
RegistryCredential.Builder
Overrides

getCredentialCase()

public RegistryCredential.CredentialCase getCredentialCase()
Returns
TypeDescription
RegistryCredential.CredentialCase

getDefaultInstanceForType()

public RegistryCredential getDefaultInstanceForType()
Returns
TypeDescription
RegistryCredential

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPublicKeyCertificate()

public PublicKeyCertificate getPublicKeyCertificate()

A public key certificate used to verify the device credentials.

.google.cloud.iot.v1.PublicKeyCertificate public_key_certificate = 1;

Returns
TypeDescription
PublicKeyCertificate

The publicKeyCertificate.

getPublicKeyCertificateBuilder()

public PublicKeyCertificate.Builder getPublicKeyCertificateBuilder()

A public key certificate used to verify the device credentials.

.google.cloud.iot.v1.PublicKeyCertificate public_key_certificate = 1;

Returns
TypeDescription
PublicKeyCertificate.Builder

getPublicKeyCertificateOrBuilder()

public PublicKeyCertificateOrBuilder getPublicKeyCertificateOrBuilder()

A public key certificate used to verify the device credentials.

.google.cloud.iot.v1.PublicKeyCertificate public_key_certificate = 1;

Returns
TypeDescription
PublicKeyCertificateOrBuilder

hasPublicKeyCertificate()

public boolean hasPublicKeyCertificate()

A public key certificate used to verify the device credentials.

.google.cloud.iot.v1.PublicKeyCertificate public_key_certificate = 1;

Returns
TypeDescription
boolean

Whether the publicKeyCertificate field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RegistryCredential other)

public RegistryCredential.Builder mergeFrom(RegistryCredential other)
Parameter
NameDescription
otherRegistryCredential
Returns
TypeDescription
RegistryCredential.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePublicKeyCertificate(PublicKeyCertificate value)

public RegistryCredential.Builder mergePublicKeyCertificate(PublicKeyCertificate value)

A public key certificate used to verify the device credentials.

.google.cloud.iot.v1.PublicKeyCertificate public_key_certificate = 1;

Parameter
NameDescription
valuePublicKeyCertificate
Returns
TypeDescription
RegistryCredential.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RegistryCredential.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RegistryCredential.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setPublicKeyCertificate(PublicKeyCertificate value)

public RegistryCredential.Builder setPublicKeyCertificate(PublicKeyCertificate value)

A public key certificate used to verify the device credentials.

.google.cloud.iot.v1.PublicKeyCertificate public_key_certificate = 1;

Parameter
NameDescription
valuePublicKeyCertificate
Returns
TypeDescription
RegistryCredential.Builder

setPublicKeyCertificate(PublicKeyCertificate.Builder builderForValue)

public RegistryCredential.Builder setPublicKeyCertificate(PublicKeyCertificate.Builder builderForValue)

A public key certificate used to verify the device credentials.

.google.cloud.iot.v1.PublicKeyCertificate public_key_certificate = 1;

Parameter
NameDescription
builderForValuePublicKeyCertificate.Builder
Returns
TypeDescription
RegistryCredential.Builder

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

public RegistryCredential.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RegistryCredential.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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