Class SslCertificateSelfManagedSslCertificate.Builder (1.15.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SslCertificateSelfManagedSslCertificate build()
Returns
TypeDescription
SslCertificateSelfManagedSslCertificate

buildPartial()

public SslCertificateSelfManagedSslCertificate buildPartial()
Returns
TypeDescription
SslCertificateSelfManagedSslCertificate

clear()

public SslCertificateSelfManagedSslCertificate.Builder clear()
Returns
TypeDescription
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
TypeDescription
SslCertificateSelfManagedSslCertificate.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public SslCertificateSelfManagedSslCertificate.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
SslCertificateSelfManagedSslCertificate.Builder

This builder for chaining.

clone()

public SslCertificateSelfManagedSslCertificate.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for certificate.

getDefaultInstanceForType()

public SslCertificateSelfManagedSslCertificate getDefaultInstanceForType()
Returns
TypeDescription
SslCertificateSelfManagedSslCertificate

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the privateKey field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SslCertificateSelfManagedSslCertificate other)

public SslCertificateSelfManagedSslCertificate.Builder mergeFrom(SslCertificateSelfManagedSslCertificate other)
Parameter
NameDescription
otherSslCertificateSelfManagedSslCertificate
Returns
TypeDescription
SslCertificateSelfManagedSslCertificate.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SslCertificateSelfManagedSslCertificate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The certificate to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for certificate to set.

Returns
TypeDescription
SslCertificateSelfManagedSslCertificate.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SslCertificateSelfManagedSslCertificate.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The privateKey to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for privateKey to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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