Class PublicKeyCertificate.Builder (2.44.0)

public static final class PublicKeyCertificate.Builder extends GeneratedMessageV3.Builder<PublicKeyCertificate.Builder> implements PublicKeyCertificateOrBuilder

A public key certificate format and data.

Protobuf type google.cloud.iot.v1.PublicKeyCertificate

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PublicKeyCertificate.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PublicKeyCertificate.Builder
Overrides

build()

public PublicKeyCertificate build()
Returns
Type Description
PublicKeyCertificate

buildPartial()

public PublicKeyCertificate buildPartial()
Returns
Type Description
PublicKeyCertificate

clear()

public PublicKeyCertificate.Builder clear()
Returns
Type Description
PublicKeyCertificate.Builder
Overrides

clearCertificate()

public PublicKeyCertificate.Builder clearCertificate()

The certificate data.

string certificate = 2;

Returns
Type Description
PublicKeyCertificate.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PublicKeyCertificate.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PublicKeyCertificate.Builder
Overrides

clearFormat()

public PublicKeyCertificate.Builder clearFormat()

The certificate format.

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

Returns
Type Description
PublicKeyCertificate.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PublicKeyCertificate.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PublicKeyCertificate.Builder
Overrides

clearX509Details()

public PublicKeyCertificate.Builder clearX509Details()

[Output only] The certificate details. Used only for X.509 certificates.

.google.cloud.iot.v1.X509CertificateDetails x509_details = 3;

Returns
Type Description
PublicKeyCertificate.Builder

clone()

public PublicKeyCertificate.Builder clone()
Returns
Type Description
PublicKeyCertificate.Builder
Overrides

getCertificate()

public String getCertificate()

The certificate data.

string certificate = 2;

Returns
Type Description
String

The certificate.

getCertificateBytes()

public ByteString getCertificateBytes()

The certificate data.

string certificate = 2;

Returns
Type Description
ByteString

The bytes for certificate.

getDefaultInstanceForType()

public PublicKeyCertificate getDefaultInstanceForType()
Returns
Type Description
PublicKeyCertificate

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFormat()

public PublicKeyCertificateFormat getFormat()

The certificate format.

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

Returns
Type Description
PublicKeyCertificateFormat

The format.

getFormatValue()

public int getFormatValue()

The certificate format.

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

Returns
Type Description
int

The enum numeric value on the wire for format.

getX509Details()

public X509CertificateDetails getX509Details()

[Output only] The certificate details. Used only for X.509 certificates.

.google.cloud.iot.v1.X509CertificateDetails x509_details = 3;

Returns
Type Description
X509CertificateDetails

The x509Details.

getX509DetailsBuilder()

public X509CertificateDetails.Builder getX509DetailsBuilder()

[Output only] The certificate details. Used only for X.509 certificates.

.google.cloud.iot.v1.X509CertificateDetails x509_details = 3;

Returns
Type Description
X509CertificateDetails.Builder

getX509DetailsOrBuilder()

public X509CertificateDetailsOrBuilder getX509DetailsOrBuilder()

[Output only] The certificate details. Used only for X.509 certificates.

.google.cloud.iot.v1.X509CertificateDetails x509_details = 3;

Returns
Type Description
X509CertificateDetailsOrBuilder

hasX509Details()

public boolean hasX509Details()

[Output only] The certificate details. Used only for X.509 certificates.

.google.cloud.iot.v1.X509CertificateDetails x509_details = 3;

Returns
Type Description
boolean

Whether the x509Details field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PublicKeyCertificate other)

public PublicKeyCertificate.Builder mergeFrom(PublicKeyCertificate other)
Parameter
Name Description
other PublicKeyCertificate
Returns
Type Description
PublicKeyCertificate.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PublicKeyCertificate.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PublicKeyCertificate.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PublicKeyCertificate.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PublicKeyCertificate.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PublicKeyCertificate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PublicKeyCertificate.Builder
Overrides

mergeX509Details(X509CertificateDetails value)

public PublicKeyCertificate.Builder mergeX509Details(X509CertificateDetails value)

[Output only] The certificate details. Used only for X.509 certificates.

.google.cloud.iot.v1.X509CertificateDetails x509_details = 3;

Parameter
Name Description
value X509CertificateDetails
Returns
Type Description
PublicKeyCertificate.Builder

setCertificate(String value)

public PublicKeyCertificate.Builder setCertificate(String value)

The certificate data.

string certificate = 2;

Parameter
Name Description
value String

The certificate to set.

Returns
Type Description
PublicKeyCertificate.Builder

This builder for chaining.

setCertificateBytes(ByteString value)

public PublicKeyCertificate.Builder setCertificateBytes(ByteString value)

The certificate data.

string certificate = 2;

Parameter
Name Description
value ByteString

The bytes for certificate to set.

Returns
Type Description
PublicKeyCertificate.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PublicKeyCertificate.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PublicKeyCertificate.Builder
Overrides

setFormat(PublicKeyCertificateFormat value)

public PublicKeyCertificate.Builder setFormat(PublicKeyCertificateFormat value)

The certificate format.

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

Parameter
Name Description
value PublicKeyCertificateFormat

The format to set.

Returns
Type Description
PublicKeyCertificate.Builder

This builder for chaining.

setFormatValue(int value)

public PublicKeyCertificate.Builder setFormatValue(int value)

The certificate format.

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

Parameter
Name Description
value int

The enum numeric value on the wire for format to set.

Returns
Type Description
PublicKeyCertificate.Builder

This builder for chaining.

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

public PublicKeyCertificate.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PublicKeyCertificate.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PublicKeyCertificate.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PublicKeyCertificate.Builder
Overrides

setX509Details(X509CertificateDetails value)

public PublicKeyCertificate.Builder setX509Details(X509CertificateDetails value)

[Output only] The certificate details. Used only for X.509 certificates.

.google.cloud.iot.v1.X509CertificateDetails x509_details = 3;

Parameter
Name Description
value X509CertificateDetails
Returns
Type Description
PublicKeyCertificate.Builder

setX509Details(X509CertificateDetails.Builder builderForValue)

public PublicKeyCertificate.Builder setX509Details(X509CertificateDetails.Builder builderForValue)

[Output only] The certificate details. Used only for X.509 certificates.

.google.cloud.iot.v1.X509CertificateDetails x509_details = 3;

Parameter
Name Description
builderForValue X509CertificateDetails.Builder
Returns
Type Description
PublicKeyCertificate.Builder