Class PublicKeyCertificate.Builder (0.14.1)

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

A public key certificate format and data.

Protobuf type google.events.cloud.iot.v1.PublicKeyCertificate

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PublicKeyCertificate build()
Returns
TypeDescription
PublicKeyCertificate

buildPartial()

public PublicKeyCertificate buildPartial()
Returns
TypeDescription
PublicKeyCertificate

clear()

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

clearCertificate()

public PublicKeyCertificate.Builder clearCertificate()

The certificate data.

string certificate = 2;

Returns
TypeDescription
PublicKeyCertificate.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFormat()

public PublicKeyCertificate.Builder clearFormat()

The certificate format.

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

Returns
TypeDescription
PublicKeyCertificate.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearX509Details()

public PublicKeyCertificate.Builder clearX509Details()

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

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

Returns
TypeDescription
PublicKeyCertificate.Builder

clone()

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

getCertificate()

public String getCertificate()

The certificate data.

string certificate = 2;

Returns
TypeDescription
String

The certificate.

getCertificateBytes()

public ByteString getCertificateBytes()

The certificate data.

string certificate = 2;

Returns
TypeDescription
ByteString

The bytes for certificate.

getDefaultInstanceForType()

public PublicKeyCertificate getDefaultInstanceForType()
Returns
TypeDescription
PublicKeyCertificate

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFormat()

public PublicKeyCertificateFormat getFormat()

The certificate format.

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

Returns
TypeDescription
PublicKeyCertificateFormat

The format.

getFormatValue()

public int getFormatValue()

The certificate format.

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

Returns
TypeDescription
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.events.cloud.iot.v1.X509CertificateDetails x509_details = 3;

Returns
TypeDescription
X509CertificateDetails

The x509Details.

getX509DetailsBuilder()

public X509CertificateDetails.Builder getX509DetailsBuilder()

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

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

Returns
TypeDescription
X509CertificateDetails.Builder

getX509DetailsOrBuilder()

public X509CertificateDetailsOrBuilder getX509DetailsOrBuilder()

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

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

Returns
TypeDescription
X509CertificateDetailsOrBuilder

hasX509Details()

public boolean hasX509Details()

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

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

Returns
TypeDescription
boolean

Whether the x509Details field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PublicKeyCertificate other)

public PublicKeyCertificate.Builder mergeFrom(PublicKeyCertificate other)
Parameter
NameDescription
otherPublicKeyCertificate
Returns
TypeDescription
PublicKeyCertificate.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeX509Details(X509CertificateDetails value)

public PublicKeyCertificate.Builder mergeX509Details(X509CertificateDetails value)

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

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

Parameter
NameDescription
valueX509CertificateDetails
Returns
TypeDescription
PublicKeyCertificate.Builder

setCertificate(String value)

public PublicKeyCertificate.Builder setCertificate(String value)

The certificate data.

string certificate = 2;

Parameter
NameDescription
valueString

The certificate to set.

Returns
TypeDescription
PublicKeyCertificate.Builder

This builder for chaining.

setCertificateBytes(ByteString value)

public PublicKeyCertificate.Builder setCertificateBytes(ByteString value)

The certificate data.

string certificate = 2;

Parameter
NameDescription
valueByteString

The bytes for certificate to set.

Returns
TypeDescription
PublicKeyCertificate.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFormat(PublicKeyCertificateFormat value)

public PublicKeyCertificate.Builder setFormat(PublicKeyCertificateFormat value)

The certificate format.

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

Parameter
NameDescription
valuePublicKeyCertificateFormat

The format to set.

Returns
TypeDescription
PublicKeyCertificate.Builder

This builder for chaining.

setFormatValue(int value)

public PublicKeyCertificate.Builder setFormatValue(int value)

The certificate format.

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PublicKeyCertificate.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setX509Details(X509CertificateDetails value)

public PublicKeyCertificate.Builder setX509Details(X509CertificateDetails value)

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

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

Parameter
NameDescription
valueX509CertificateDetails
Returns
TypeDescription
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.events.cloud.iot.v1.X509CertificateDetails x509_details = 3;

Parameter
NameDescription
builderForValueX509CertificateDetails.Builder
Returns
TypeDescription
PublicKeyCertificate.Builder