Send feedback
Class PublicKeyCertificate.Builder (2.42.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.42.0 keyboard_arrow_down
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PublicKeyCertificate . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public PublicKeyCertificate build ()
buildPartial()
public PublicKeyCertificate buildPartial ()
clear()
public PublicKeyCertificate . Builder clear ()
Overrides
clearCertificate()
public PublicKeyCertificate . Builder clearCertificate ()
The certificate data.
string certificate = 2;
clearField(Descriptors.FieldDescriptor field)
public PublicKeyCertificate . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
public PublicKeyCertificate . Builder clearFormat ()
The certificate format.
.google.cloud.iot.v1.PublicKeyCertificateFormat format = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public PublicKeyCertificate . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
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;
clone()
public PublicKeyCertificate . Builder clone ()
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 ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
public PublicKeyCertificateFormat getFormat ()
The certificate format.
.google.cloud.iot.v1.PublicKeyCertificateFormat format = 1;
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;
getX509DetailsBuilder()
public X509CertificateDetails . Builder getX509DetailsBuilder ()
[Output only] The certificate details. Used only for X.509 certificates.
.google.cloud.iot.v1.X509CertificateDetails x509_details = 3;
getX509DetailsOrBuilder()
public X509CertificateDetailsOrBuilder getX509DetailsOrBuilder ()
[Output only] The certificate details. Used only for X.509 certificates.
.google.cloud.iot.v1.X509CertificateDetails x509_details = 3;
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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(PublicKeyCertificate other)
public PublicKeyCertificate . Builder mergeFrom ( PublicKeyCertificate other )
public PublicKeyCertificate . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public PublicKeyCertificate . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PublicKeyCertificate . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
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;
setCertificate(String value)
public PublicKeyCertificate . Builder setCertificate ( String value )
The certificate data.
string certificate = 2;
Parameter
Name
Description
value
String
The certificate to set.
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.
setField(Descriptors.FieldDescriptor field, Object value)
public PublicKeyCertificate . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public PublicKeyCertificate . Builder setFormat ( PublicKeyCertificateFormat value )
The certificate format.
.google.cloud.iot.v1.PublicKeyCertificateFormat format = 1;
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.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PublicKeyCertificate . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PublicKeyCertificate . Builder setUnknownFields ( UnknownFieldSet unknownFields )
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;
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;
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]