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
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<PublicKeyCertificate.Builder>
public PublicKeyCertificate.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<PublicKeyCertificate.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<PublicKeyCertificate.Builder>
public PublicKeyCertificate getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public PublicKeyCertificate build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public PublicKeyCertificate buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public PublicKeyCertificate.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<PublicKeyCertificate.Builder>
public PublicKeyCertificate.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<PublicKeyCertificate.Builder>
public PublicKeyCertificate.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<PublicKeyCertificate.Builder>
public PublicKeyCertificate.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<PublicKeyCertificate.Builder>
public PublicKeyCertificate.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<PublicKeyCertificate.Builder>
public PublicKeyCertificate.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<PublicKeyCertificate.Builder>
public PublicKeyCertificate.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<PublicKeyCertificate.Builder>
public PublicKeyCertificate.Builder mergeFrom(PublicKeyCertificate other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<PublicKeyCertificate.Builder>
public PublicKeyCertificate.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<PublicKeyCertificate.Builder>
IOException
public int getFormatValue()
The certificate format.
.google.cloud.iot.v1.PublicKeyCertificateFormat format = 1;
getFormatValue
in interface PublicKeyCertificateOrBuilder
public PublicKeyCertificate.Builder setFormatValue(int value)
The certificate format.
.google.cloud.iot.v1.PublicKeyCertificateFormat format = 1;
value
- The enum numeric value on the wire for format to set.public PublicKeyCertificateFormat getFormat()
The certificate format.
.google.cloud.iot.v1.PublicKeyCertificateFormat format = 1;
getFormat
in interface PublicKeyCertificateOrBuilder
public PublicKeyCertificate.Builder setFormat(PublicKeyCertificateFormat value)
The certificate format.
.google.cloud.iot.v1.PublicKeyCertificateFormat format = 1;
value
- The format to set.public PublicKeyCertificate.Builder clearFormat()
The certificate format.
.google.cloud.iot.v1.PublicKeyCertificateFormat format = 1;
public String getCertificate()
The certificate data.
string certificate = 2;
getCertificate
in interface PublicKeyCertificateOrBuilder
public ByteString getCertificateBytes()
The certificate data.
string certificate = 2;
getCertificateBytes
in interface PublicKeyCertificateOrBuilder
public PublicKeyCertificate.Builder setCertificate(String value)
The certificate data.
string certificate = 2;
value
- The certificate to set.public PublicKeyCertificate.Builder clearCertificate()
The certificate data.
string certificate = 2;
public PublicKeyCertificate.Builder setCertificateBytes(ByteString value)
The certificate data.
string certificate = 2;
value
- The bytes for certificate to set.public boolean hasX509Details()
[Output only] The certificate details. Used only for X.509 certificates.
.google.cloud.iot.v1.X509CertificateDetails x509_details = 3;
hasX509Details
in interface PublicKeyCertificateOrBuilder
public X509CertificateDetails getX509Details()
[Output only] The certificate details. Used only for X.509 certificates.
.google.cloud.iot.v1.X509CertificateDetails x509_details = 3;
getX509Details
in interface PublicKeyCertificateOrBuilder
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;
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;
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;
public PublicKeyCertificate.Builder clearX509Details()
[Output only] The certificate details. Used only for X.509 certificates.
.google.cloud.iot.v1.X509CertificateDetails x509_details = 3;
public X509CertificateDetails.Builder getX509DetailsBuilder()
[Output only] The certificate details. Used only for X.509 certificates.
.google.cloud.iot.v1.X509CertificateDetails x509_details = 3;
public X509CertificateDetailsOrBuilder getX509DetailsOrBuilder()
[Output only] The certificate details. Used only for X.509 certificates.
.google.cloud.iot.v1.X509CertificateDetails x509_details = 3;
getX509DetailsOrBuilder
in interface PublicKeyCertificateOrBuilder
public final PublicKeyCertificate.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<PublicKeyCertificate.Builder>
public final PublicKeyCertificate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<PublicKeyCertificate.Builder>
Copyright © 2022 Google LLC. All rights reserved.