Class ClientTlsPolicy.Builder (0.25.0)

public static final class ClientTlsPolicy.Builder extends GeneratedMessageV3.Builder<ClientTlsPolicy.Builder> implements ClientTlsPolicyOrBuilder

ClientTlsPolicy is a resource that specifies how a client should authenticate connections to backends of a service. This resource itself does not affect configuration unless it is attached to a backend service resource.

Protobuf type google.cloud.networksecurity.v1beta1.ClientTlsPolicy

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllServerValidationCa(Iterable<? extends ValidationCA> values)

public ClientTlsPolicy.Builder addAllServerValidationCa(Iterable<? extends ValidationCA> values)

Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.

repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.networksecurity.v1beta1.ValidationCA>
Returns
TypeDescription
ClientTlsPolicy.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addServerValidationCa(ValidationCA value)

public ClientTlsPolicy.Builder addServerValidationCa(ValidationCA value)

Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.

repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueValidationCA
Returns
TypeDescription
ClientTlsPolicy.Builder

addServerValidationCa(ValidationCA.Builder builderForValue)

public ClientTlsPolicy.Builder addServerValidationCa(ValidationCA.Builder builderForValue)

Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.

repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueValidationCA.Builder
Returns
TypeDescription
ClientTlsPolicy.Builder

addServerValidationCa(int index, ValidationCA value)

public ClientTlsPolicy.Builder addServerValidationCa(int index, ValidationCA value)

Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.

repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueValidationCA
Returns
TypeDescription
ClientTlsPolicy.Builder

addServerValidationCa(int index, ValidationCA.Builder builderForValue)

public ClientTlsPolicy.Builder addServerValidationCa(int index, ValidationCA.Builder builderForValue)

Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.

repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueValidationCA.Builder
Returns
TypeDescription
ClientTlsPolicy.Builder

addServerValidationCaBuilder()

public ValidationCA.Builder addServerValidationCaBuilder()

Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.

repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ValidationCA.Builder

addServerValidationCaBuilder(int index)

public ValidationCA.Builder addServerValidationCaBuilder(int index)

Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.

repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ValidationCA.Builder

build()

public ClientTlsPolicy build()
Returns
TypeDescription
ClientTlsPolicy

buildPartial()

public ClientTlsPolicy buildPartial()
Returns
TypeDescription
ClientTlsPolicy

clear()

public ClientTlsPolicy.Builder clear()
Returns
TypeDescription
ClientTlsPolicy.Builder
Overrides

clearClientCertificate()

public ClientTlsPolicy.Builder clearClientCertificate()

Optional. Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS.

.google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ClientTlsPolicy.Builder

clearCreateTime()

public ClientTlsPolicy.Builder clearCreateTime()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ClientTlsPolicy.Builder

clearDescription()

public ClientTlsPolicy.Builder clearDescription()

Optional. Free-text description of the resource.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ClientTlsPolicy.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

public ClientTlsPolicy.Builder clearLabels()
Returns
TypeDescription
ClientTlsPolicy.Builder

clearName()

public ClientTlsPolicy.Builder clearName()

Required. Name of the ClientTlsPolicy resource. It matches the pattern projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}

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

Returns
TypeDescription
ClientTlsPolicy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ClientTlsPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ClientTlsPolicy.Builder
Overrides

clearServerValidationCa()

public ClientTlsPolicy.Builder clearServerValidationCa()

Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.

repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ClientTlsPolicy.Builder

clearSni()

public ClientTlsPolicy.Builder clearSni()

Optional. Server Name Indication string to present to the server during TLS handshake. E.g: "secure.example.com".

string sni = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ClientTlsPolicy.Builder

This builder for chaining.

clearUpdateTime()

public ClientTlsPolicy.Builder clearUpdateTime()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ClientTlsPolicy.Builder

clone()

public ClientTlsPolicy.Builder clone()
Returns
TypeDescription
ClientTlsPolicy.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Set of label tags associated with the resource.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getClientCertificate()

public CertificateProvider getClientCertificate()

Optional. Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS.

.google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CertificateProvider

The clientCertificate.

getClientCertificateBuilder()

public CertificateProvider.Builder getClientCertificateBuilder()

Optional. Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS.

.google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CertificateProvider.Builder

getClientCertificateOrBuilder()

public CertificateProviderOrBuilder getClientCertificateOrBuilder()

Optional. Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS.

.google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CertificateProviderOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public ClientTlsPolicy getDefaultInstanceForType()
Returns
TypeDescription
ClientTlsPolicy

getDescription()

public String getDescription()

Optional. Free-text description of the resource.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Free-text description of the resource.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Set of label tags associated with the resource.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Set of label tags associated with the resource.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Set of label tags associated with the resource.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Set of label tags associated with the resource.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Required. Name of the ClientTlsPolicy resource. It matches the pattern projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the ClientTlsPolicy resource. It matches the pattern projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}

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

Returns
TypeDescription
ByteString

The bytes for name.

getServerValidationCa(int index)

public ValidationCA getServerValidationCa(int index)

Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.

repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ValidationCA

getServerValidationCaBuilder(int index)

public ValidationCA.Builder getServerValidationCaBuilder(int index)

Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.

repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ValidationCA.Builder

getServerValidationCaBuilderList()

public List<ValidationCA.Builder> getServerValidationCaBuilderList()

Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.

repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<Builder>

getServerValidationCaCount()

public int getServerValidationCaCount()

Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.

repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getServerValidationCaList()

public List<ValidationCA> getServerValidationCaList()

Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.

repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<ValidationCA>

getServerValidationCaOrBuilder(int index)

public ValidationCAOrBuilder getServerValidationCaOrBuilder(int index)

Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.

repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ValidationCAOrBuilder

getServerValidationCaOrBuilderList()

public List<? extends ValidationCAOrBuilder> getServerValidationCaOrBuilderList()

Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.

repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<? extends com.google.cloud.networksecurity.v1beta1.ValidationCAOrBuilder>

getSni()

public String getSni()

Optional. Server Name Indication string to present to the server during TLS handshake. E.g: "secure.example.com".

string sni = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The sni.

getSniBytes()

public ByteString getSniBytes()

Optional. Server Name Indication string to present to the server during TLS handshake. E.g: "secure.example.com".

string sni = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for sni.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasClientCertificate()

public boolean hasClientCertificate()

Optional. Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS.

.google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the clientCertificate field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeClientCertificate(CertificateProvider value)

public ClientTlsPolicy.Builder mergeClientCertificate(CertificateProvider value)

Optional. Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS.

.google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueCertificateProvider
Returns
TypeDescription
ClientTlsPolicy.Builder

mergeCreateTime(Timestamp value)

public ClientTlsPolicy.Builder mergeCreateTime(Timestamp value)

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ClientTlsPolicy.Builder

mergeFrom(ClientTlsPolicy other)

public ClientTlsPolicy.Builder mergeFrom(ClientTlsPolicy other)
Parameter
NameDescription
otherClientTlsPolicy
Returns
TypeDescription
ClientTlsPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ClientTlsPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ClientTlsPolicy.Builder
Overrides

mergeUpdateTime(Timestamp value)

public ClientTlsPolicy.Builder mergeUpdateTime(Timestamp value)

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ClientTlsPolicy.Builder

putAllLabels(Map<String,String> values)

public ClientTlsPolicy.Builder putAllLabels(Map<String,String> values)

Optional. Set of label tags associated with the resource.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
ClientTlsPolicy.Builder

putLabels(String key, String value)

public ClientTlsPolicy.Builder putLabels(String key, String value)

Optional. Set of label tags associated with the resource.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
ClientTlsPolicy.Builder

removeLabels(String key)

public ClientTlsPolicy.Builder removeLabels(String key)

Optional. Set of label tags associated with the resource.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
ClientTlsPolicy.Builder

removeServerValidationCa(int index)

public ClientTlsPolicy.Builder removeServerValidationCa(int index)

Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.

repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ClientTlsPolicy.Builder

setClientCertificate(CertificateProvider value)

public ClientTlsPolicy.Builder setClientCertificate(CertificateProvider value)

Optional. Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS.

.google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueCertificateProvider
Returns
TypeDescription
ClientTlsPolicy.Builder

setClientCertificate(CertificateProvider.Builder builderForValue)

public ClientTlsPolicy.Builder setClientCertificate(CertificateProvider.Builder builderForValue)

Optional. Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS.

.google.cloud.networksecurity.v1beta1.CertificateProvider client_certificate = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueCertificateProvider.Builder
Returns
TypeDescription
ClientTlsPolicy.Builder

setCreateTime(Timestamp value)

public ClientTlsPolicy.Builder setCreateTime(Timestamp value)

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ClientTlsPolicy.Builder

setCreateTime(Timestamp.Builder builderForValue)

public ClientTlsPolicy.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ClientTlsPolicy.Builder

setDescription(String value)

public ClientTlsPolicy.Builder setDescription(String value)

Optional. Free-text description of the resource.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
ClientTlsPolicy.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public ClientTlsPolicy.Builder setDescriptionBytes(ByteString value)

Optional. Free-text description of the resource.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
ClientTlsPolicy.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public ClientTlsPolicy.Builder setName(String value)

Required. Name of the ClientTlsPolicy resource. It matches the pattern projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ClientTlsPolicy.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ClientTlsPolicy.Builder setNameBytes(ByteString value)

Required. Name of the ClientTlsPolicy resource. It matches the pattern projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ClientTlsPolicy.Builder

This builder for chaining.

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

public ClientTlsPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ClientTlsPolicy.Builder
Overrides

setServerValidationCa(int index, ValidationCA value)

public ClientTlsPolicy.Builder setServerValidationCa(int index, ValidationCA value)

Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.

repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueValidationCA
Returns
TypeDescription
ClientTlsPolicy.Builder

setServerValidationCa(int index, ValidationCA.Builder builderForValue)

public ClientTlsPolicy.Builder setServerValidationCa(int index, ValidationCA.Builder builderForValue)

Optional. Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate.

repeated .google.cloud.networksecurity.v1beta1.ValidationCA server_validation_ca = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueValidationCA.Builder
Returns
TypeDescription
ClientTlsPolicy.Builder

setSni(String value)

public ClientTlsPolicy.Builder setSni(String value)

Optional. Server Name Indication string to present to the server during TLS handshake. E.g: "secure.example.com".

string sni = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The sni to set.

Returns
TypeDescription
ClientTlsPolicy.Builder

This builder for chaining.

setSniBytes(ByteString value)

public ClientTlsPolicy.Builder setSniBytes(ByteString value)

Optional. Server Name Indication string to present to the server during TLS handshake. E.g: "secure.example.com".

string sni = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for sni to set.

Returns
TypeDescription
ClientTlsPolicy.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public ClientTlsPolicy.Builder setUpdateTime(Timestamp value)

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ClientTlsPolicy.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public ClientTlsPolicy.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ClientTlsPolicy.Builder