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.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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PublicKeyCertificate.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public PublicKeyCertificate build()
Returns
buildPartial()
public PublicKeyCertificate buildPartial()
Returns
clear()
public PublicKeyCertificate.Builder clear()
Returns
Overrides
clearCertificate()
public PublicKeyCertificate.Builder clearCertificate()
The certificate data.
string certificate = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public PublicKeyCertificate.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public PublicKeyCertificate.Builder clearFormat()
The certificate format.
.google.cloud.iot.v1.PublicKeyCertificateFormat format = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public PublicKeyCertificate.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public PublicKeyCertificate.Builder clone()
Returns
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
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public PublicKeyCertificateFormat getFormat()
The certificate format.
.google.cloud.iot.v1.PublicKeyCertificateFormat format = 1;
Returns
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
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
getX509DetailsOrBuilder()
public X509CertificateDetailsOrBuilder getX509DetailsOrBuilder()
[Output only] The certificate details. Used only for X.509 certificates.
.google.cloud.iot.v1.X509CertificateDetails x509_details = 3;
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(PublicKeyCertificate other)
public PublicKeyCertificate.Builder mergeFrom(PublicKeyCertificate other)
Parameter
Returns
public PublicKeyCertificate.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public PublicKeyCertificate.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PublicKeyCertificate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
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
setField(Descriptors.FieldDescriptor field, Object value)
public PublicKeyCertificate.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public PublicKeyCertificate.Builder setFormat(PublicKeyCertificateFormat value)
The certificate format.
.google.cloud.iot.v1.PublicKeyCertificateFormat format = 1;
Parameter
Returns
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PublicKeyCertificate.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PublicKeyCertificate.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns