Class SslCertificateSelfManagedSslCertificate.Builder (1.54.0)

public static final class SslCertificateSelfManagedSslCertificate.Builder extends GeneratedMessageV3.Builder<SslCertificateSelfManagedSslCertificate.Builder> implements SslCertificateSelfManagedSslCertificateOrBuilder

Configuration and status of a self-managed SSL certificate.

Protobuf type google.cloud.compute.v1.SslCertificateSelfManagedSslCertificate

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SslCertificateSelfManagedSslCertificate build()
Returns
Type Description
SslCertificateSelfManagedSslCertificate

buildPartial()

public SslCertificateSelfManagedSslCertificate buildPartial()
Returns
Type Description
SslCertificateSelfManagedSslCertificate

clear()

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

clearCertificate()

public SslCertificateSelfManagedSslCertificate.Builder clearCertificate()

A local certificate file. The certificate must be in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert.

optional string certificate = 341787031;

Returns
Type Description
SslCertificateSelfManagedSslCertificate.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPrivateKey()

public SslCertificateSelfManagedSslCertificate.Builder clearPrivateKey()

A write-only private key in PEM format. Only insert requests will include this field.

optional string private_key = 361331107;

Returns
Type Description
SslCertificateSelfManagedSslCertificate.Builder

This builder for chaining.

clone()

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

getCertificate()

public String getCertificate()

A local certificate file. The certificate must be in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert.

optional string certificate = 341787031;

Returns
Type Description
String

The certificate.

getCertificateBytes()

public ByteString getCertificateBytes()

A local certificate file. The certificate must be in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert.

optional string certificate = 341787031;

Returns
Type Description
ByteString

The bytes for certificate.

getDefaultInstanceForType()

public SslCertificateSelfManagedSslCertificate getDefaultInstanceForType()
Returns
Type Description
SslCertificateSelfManagedSslCertificate

getDescriptorForType()

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

getPrivateKey()

public String getPrivateKey()

A write-only private key in PEM format. Only insert requests will include this field.

optional string private_key = 361331107;

Returns
Type Description
String

The privateKey.

getPrivateKeyBytes()

public ByteString getPrivateKeyBytes()

A write-only private key in PEM format. Only insert requests will include this field.

optional string private_key = 361331107;

Returns
Type Description
ByteString

The bytes for privateKey.

hasCertificate()

public boolean hasCertificate()

A local certificate file. The certificate must be in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert.

optional string certificate = 341787031;

Returns
Type Description
boolean

Whether the certificate field is set.

hasPrivateKey()

public boolean hasPrivateKey()

A write-only private key in PEM format. Only insert requests will include this field.

optional string private_key = 361331107;

Returns
Type Description
boolean

Whether the privateKey field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SslCertificateSelfManagedSslCertificate other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCertificate(String value)

public SslCertificateSelfManagedSslCertificate.Builder setCertificate(String value)

A local certificate file. The certificate must be in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert.

optional string certificate = 341787031;

Parameter
Name Description
value String

The certificate to set.

Returns
Type Description
SslCertificateSelfManagedSslCertificate.Builder

This builder for chaining.

setCertificateBytes(ByteString value)

public SslCertificateSelfManagedSslCertificate.Builder setCertificateBytes(ByteString value)

A local certificate file. The certificate must be in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert.

optional string certificate = 341787031;

Parameter
Name Description
value ByteString

The bytes for certificate to set.

Returns
Type Description
SslCertificateSelfManagedSslCertificate.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPrivateKey(String value)

public SslCertificateSelfManagedSslCertificate.Builder setPrivateKey(String value)

A write-only private key in PEM format. Only insert requests will include this field.

optional string private_key = 361331107;

Parameter
Name Description
value String

The privateKey to set.

Returns
Type Description
SslCertificateSelfManagedSslCertificate.Builder

This builder for chaining.

setPrivateKeyBytes(ByteString value)

public SslCertificateSelfManagedSslCertificate.Builder setPrivateKeyBytes(ByteString value)

A write-only private key in PEM format. Only insert requests will include this field.

optional string private_key = 361331107;

Parameter
Name Description
value ByteString

The bytes for privateKey to set.

Returns
Type Description
SslCertificateSelfManagedSslCertificate.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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