Class TlsConfig.CaCert.Builder (0.1.0)

public static final class TlsConfig.CaCert.Builder extends GeneratedMessage.Builder<TlsConfig.CaCert.Builder> implements TlsConfig.CaCertOrBuilder

The CA certificate.

Protobuf type google.cloud.ces.v1.TlsConfig.CaCert

Static Methods

getDescriptor()

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

Methods

build()

public TlsConfig.CaCert build()
Returns
Type Description
TlsConfig.CaCert

buildPartial()

public TlsConfig.CaCert buildPartial()
Returns
Type Description
TlsConfig.CaCert

clear()

public TlsConfig.CaCert.Builder clear()
Returns
Type Description
TlsConfig.CaCert.Builder
Overrides

clearCert()

public TlsConfig.CaCert.Builder clearCert()

Required. The allowed custom CA certificates (in DER format) for HTTPS verification. This overrides the default SSL trust store. If this is empty or unspecified, CES will use Google's default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are signed with "subject alt name". For instance a certificate can be self-signed using the following command, openssl x509 -req -days 200 -in example.com.csr \ -signkey example.com.key \ -out example.com.crt \ -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")

bytes cert = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TlsConfig.CaCert.Builder

This builder for chaining.

clearDisplayName()

public TlsConfig.CaCert.Builder clearDisplayName()

Required. The name of the allowed custom CA certificates. This can be used to disambiguate the custom CA certificates.

string display_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TlsConfig.CaCert.Builder

This builder for chaining.

getCert()

public ByteString getCert()

Required. The allowed custom CA certificates (in DER format) for HTTPS verification. This overrides the default SSL trust store. If this is empty or unspecified, CES will use Google's default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are signed with "subject alt name". For instance a certificate can be self-signed using the following command, openssl x509 -req -days 200 -in example.com.csr \ -signkey example.com.key \ -out example.com.crt \ -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")

bytes cert = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The cert.

getDefaultInstanceForType()

public TlsConfig.CaCert getDefaultInstanceForType()
Returns
Type Description
TlsConfig.CaCert

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Required. The name of the allowed custom CA certificates. This can be used to disambiguate the custom CA certificates.

string display_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. The name of the allowed custom CA certificates. This can be used to disambiguate the custom CA certificates.

string display_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for displayName.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TlsConfig.CaCert other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCert(ByteString value)

public TlsConfig.CaCert.Builder setCert(ByteString value)

Required. The allowed custom CA certificates (in DER format) for HTTPS verification. This overrides the default SSL trust store. If this is empty or unspecified, CES will use Google's default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are signed with "subject alt name". For instance a certificate can be self-signed using the following command, openssl x509 -req -days 200 -in example.com.csr \ -signkey example.com.key \ -out example.com.crt \ -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")

bytes cert = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The cert to set.

Returns
Type Description
TlsConfig.CaCert.Builder

This builder for chaining.

setDisplayName(String value)

public TlsConfig.CaCert.Builder setDisplayName(String value)

Required. The name of the allowed custom CA certificates. This can be used to disambiguate the custom CA certificates.

string display_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
TlsConfig.CaCert.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public TlsConfig.CaCert.Builder setDisplayNameBytes(ByteString value)

Required. The name of the allowed custom CA certificates. This can be used to disambiguate the custom CA certificates.

string display_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
TlsConfig.CaCert.Builder

This builder for chaining.