Class ServerTlsPolicy.Builder (0.47.0)

publicstaticfinalclass ServerTlsPolicy.BuilderextendsGeneratedMessageV3.Builder<ServerTlsPolicy.Builder>implementsServerTlsPolicyOrBuilder

ServerTlsPolicy is a resource that specifies how a server should authenticate incoming requests. This resource itself does not affect configuration unless it is attached to a target https proxy or endpoint config selector resource.

Protobuf type google.cloud.networksecurity.v1.ServerTlsPolicy

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicServerTlsPolicy.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ServerTlsPolicy.Builder
Overrides

build()

publicServerTlsPolicybuild()
Returns
Type Description
ServerTlsPolicy

buildPartial()

publicServerTlsPolicybuildPartial()
Returns
Type Description
ServerTlsPolicy

clear()

publicServerTlsPolicy.Builderclear()
Returns
Type Description
ServerTlsPolicy.Builder
Overrides

clearAllowOpen()

publicServerTlsPolicy.BuilderclearAllowOpen()

Determines if server allows plaintext connections. If set to true, server allows plain text connections. By default, it is set to false. This setting is not exclusive of other encryption modes. For example, if allow_open and mtls_policy are set, server allows both plain text and mTLS connections. See documentation of other encryption modes to confirm compatibility.

Consider using it if you wish to upgrade in place your deployment to TLS while having mixed TLS and non-TLS traffic reaching port :80.

bool allow_open = 6;

Returns
Type Description
ServerTlsPolicy.Builder

This builder for chaining.

clearCreateTime()

publicServerTlsPolicy.BuilderclearCreateTime()

Output only. The timestamp when the resource was created.

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

Returns
Type Description
ServerTlsPolicy.Builder

clearDescription()

publicServerTlsPolicy.BuilderclearDescription()

Free-text description of the resource.

string description = 2;

Returns
Type Description
ServerTlsPolicy.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicServerTlsPolicy.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ServerTlsPolicy.Builder
Overrides

clearLabels()

publicServerTlsPolicy.BuilderclearLabels()
Returns
Type Description
ServerTlsPolicy.Builder

clearMtlsPolicy()

publicServerTlsPolicy.BuilderclearMtlsPolicy()

Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS). If not specified, client certificate will not be requested. The connection is treated as TLS and not mTLS. If allow_open and mtls_policy are set, server allows both plain text and mTLS connections.

.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8;

Returns
Type Description
ServerTlsPolicy.Builder

clearName()

publicServerTlsPolicy.BuilderclearName()

Required. Name of the ServerTlsPolicy resource. It matches the pattern projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}

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

Returns
Type Description
ServerTlsPolicy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicServerTlsPolicy.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ServerTlsPolicy.Builder
Overrides

clearServerCertificate()

publicServerTlsPolicy.BuilderclearServerCertificate()

Defines a mechanism to provision server identity (public and private keys). Cannot be combined with allow_open as a permissive mode that allows both plain text and TLS is not supported.

.google.cloud.networksecurity.v1.CertificateProvider server_certificate = 7;

Returns
Type Description
ServerTlsPolicy.Builder

clearUpdateTime()

publicServerTlsPolicy.BuilderclearUpdateTime()

Output only. The timestamp when the resource was updated.

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

Returns
Type Description
ServerTlsPolicy.Builder

clone()

publicServerTlsPolicy.Builderclone()
Returns
Type Description
ServerTlsPolicy.Builder
Overrides

containsLabels(String key)

publicbooleancontainsLabels(Stringkey)

Set of label tags associated with the resource.

map<string, string> labels = 5;

Parameter
Name Description
key String
Returns
Type Description
boolean

getAllowOpen()

publicbooleangetAllowOpen()

Determines if server allows plaintext connections. If set to true, server allows plain text connections. By default, it is set to false. This setting is not exclusive of other encryption modes. For example, if allow_open and mtls_policy are set, server allows both plain text and mTLS connections. See documentation of other encryption modes to confirm compatibility.

Consider using it if you wish to upgrade in place your deployment to TLS while having mixed TLS and non-TLS traffic reaching port :80.

bool allow_open = 6;

Returns
Type Description
boolean

The allowOpen.

getCreateTime()

publicTimestampgetCreateTime()

Output only. The timestamp when the resource was created.

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

publicTimestamp.BuildergetCreateTimeBuilder()

Output only. The timestamp when the resource was created.

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

publicTimestampOrBuildergetCreateTimeOrBuilder()

Output only. The timestamp when the resource was created.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

publicServerTlsPolicygetDefaultInstanceForType()
Returns
Type Description
ServerTlsPolicy

getDescription()

publicStringgetDescription()

Free-text description of the resource.

string description = 2;

Returns
Type Description
String

The description.

getDescriptionBytes()

publicByteStringgetDescriptionBytes()

Free-text description of the resource.

string description = 2;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLabels() (deprecated)

publicMap<String,String>getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

publicintgetLabelsCount()

Set of label tags associated with the resource.

map<string, string> labels = 5;

Returns
Type Description
int

getLabelsMap()

publicMap<String,String>getLabelsMap()

Set of label tags associated with the resource.

map<string, string> labels = 5;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

publicStringgetLabelsOrDefault(Stringkey,StringdefaultValue)

Set of label tags associated with the resource.

map<string, string> labels = 5;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

publicStringgetLabelsOrThrow(Stringkey)

Set of label tags associated with the resource.

map<string, string> labels = 5;

Parameter
Name Description
key String
Returns
Type Description
String

getMtlsPolicy()

publicServerTlsPolicy.MTLSPolicygetMtlsPolicy()

Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS). If not specified, client certificate will not be requested. The connection is treated as TLS and not mTLS. If allow_open and mtls_policy are set, server allows both plain text and mTLS connections.

.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8;

Returns
Type Description
ServerTlsPolicy.MTLSPolicy

The mtlsPolicy.

getMtlsPolicyBuilder()

publicServerTlsPolicy.MTLSPolicy.BuildergetMtlsPolicyBuilder()

Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS). If not specified, client certificate will not be requested. The connection is treated as TLS and not mTLS. If allow_open and mtls_policy are set, server allows both plain text and mTLS connections.

.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8;

Returns
Type Description
ServerTlsPolicy.MTLSPolicy.Builder

getMtlsPolicyOrBuilder()

publicServerTlsPolicy.MTLSPolicyOrBuildergetMtlsPolicyOrBuilder()

Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS). If not specified, client certificate will not be requested. The connection is treated as TLS and not mTLS. If allow_open and mtls_policy are set, server allows both plain text and mTLS connections.

.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8;

Returns
Type Description
ServerTlsPolicy.MTLSPolicyOrBuilder

getMutableLabels() (deprecated)

publicMap<String,String>getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

publicStringgetName()

Required. Name of the ServerTlsPolicy resource. It matches the pattern projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}

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

Returns
Type Description
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

Required. Name of the ServerTlsPolicy resource. It matches the pattern projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}

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

Returns
Type Description
ByteString

The bytes for name.

getServerCertificate()

publicCertificateProvidergetServerCertificate()

Defines a mechanism to provision server identity (public and private keys). Cannot be combined with allow_open as a permissive mode that allows both plain text and TLS is not supported.

.google.cloud.networksecurity.v1.CertificateProvider server_certificate = 7;

Returns
Type Description
CertificateProvider

The serverCertificate.

getServerCertificateBuilder()

publicCertificateProvider.BuildergetServerCertificateBuilder()

Defines a mechanism to provision server identity (public and private keys). Cannot be combined with allow_open as a permissive mode that allows both plain text and TLS is not supported.

.google.cloud.networksecurity.v1.CertificateProvider server_certificate = 7;

Returns
Type Description
CertificateProvider.Builder

getServerCertificateOrBuilder()

publicCertificateProviderOrBuildergetServerCertificateOrBuilder()

Defines a mechanism to provision server identity (public and private keys). Cannot be combined with allow_open as a permissive mode that allows both plain text and TLS is not supported.

.google.cloud.networksecurity.v1.CertificateProvider server_certificate = 7;

Returns
Type Description
CertificateProviderOrBuilder

getUpdateTime()

publicTimestampgetUpdateTime()

Output only. The timestamp when the resource was updated.

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

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

publicTimestamp.BuildergetUpdateTimeBuilder()

Output only. The timestamp when the resource was updated.

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

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

publicTimestampOrBuildergetUpdateTimeOrBuilder()

Output only. The timestamp when the resource was updated.

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

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

publicbooleanhasCreateTime()

Output only. The timestamp when the resource was created.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasMtlsPolicy()

publicbooleanhasMtlsPolicy()

Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS). If not specified, client certificate will not be requested. The connection is treated as TLS and not mTLS. If allow_open and mtls_policy are set, server allows both plain text and mTLS connections.

.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8;

Returns
Type Description
boolean

Whether the mtlsPolicy field is set.

hasServerCertificate()

publicbooleanhasServerCertificate()

Defines a mechanism to provision server identity (public and private keys). Cannot be combined with allow_open as a permissive mode that allows both plain text and TLS is not supported.

.google.cloud.networksecurity.v1.CertificateProvider server_certificate = 7;

Returns
Type Description
boolean

Whether the serverCertificate field is set.

hasUpdateTime()

publicbooleanhasUpdateTime()

Output only. The timestamp when the resource was updated.

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

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protectedMapFieldReflectionAccessorinternalGetMapFieldReflection(intnumber)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protectedMapFieldReflectionAccessorinternalGetMutableMapFieldReflection(intnumber)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

publicServerTlsPolicy.BuildermergeCreateTime(Timestampvalue)

Output only. The timestamp when the resource was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ServerTlsPolicy.Builder

mergeFrom(ServerTlsPolicy other)

publicServerTlsPolicy.BuildermergeFrom(ServerTlsPolicyother)
Parameter
Name Description
other ServerTlsPolicy
Returns
Type Description
ServerTlsPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicServerTlsPolicy.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServerTlsPolicy.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicServerTlsPolicy.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
ServerTlsPolicy.Builder
Overrides

mergeMtlsPolicy(ServerTlsPolicy.MTLSPolicy value)

publicServerTlsPolicy.BuildermergeMtlsPolicy(ServerTlsPolicy.MTLSPolicyvalue)

Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS). If not specified, client certificate will not be requested. The connection is treated as TLS and not mTLS. If allow_open and mtls_policy are set, server allows both plain text and mTLS connections.

.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8;

Parameter
Name Description
value ServerTlsPolicy.MTLSPolicy
Returns
Type Description
ServerTlsPolicy.Builder

mergeServerCertificate(CertificateProvider value)

publicServerTlsPolicy.BuildermergeServerCertificate(CertificateProvidervalue)

Defines a mechanism to provision server identity (public and private keys). Cannot be combined with allow_open as a permissive mode that allows both plain text and TLS is not supported.

.google.cloud.networksecurity.v1.CertificateProvider server_certificate = 7;

Parameter
Name Description
value CertificateProvider
Returns
Type Description
ServerTlsPolicy.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalServerTlsPolicy.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ServerTlsPolicy.Builder
Overrides

mergeUpdateTime(Timestamp value)

publicServerTlsPolicy.BuildermergeUpdateTime(Timestampvalue)

Output only. The timestamp when the resource was updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ServerTlsPolicy.Builder

putAllLabels(Map<String,String> values)

publicServerTlsPolicy.BuilderputAllLabels(Map<String,String>values)

Set of label tags associated with the resource.

map<string, string> labels = 5;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
ServerTlsPolicy.Builder

putLabels(String key, String value)

publicServerTlsPolicy.BuilderputLabels(Stringkey,Stringvalue)

Set of label tags associated with the resource.

map<string, string> labels = 5;

Parameters
Name Description
key String
value String
Returns
Type Description
ServerTlsPolicy.Builder

removeLabels(String key)

publicServerTlsPolicy.BuilderremoveLabels(Stringkey)

Set of label tags associated with the resource.

map<string, string> labels = 5;

Parameter
Name Description
key String
Returns
Type Description
ServerTlsPolicy.Builder

setAllowOpen(boolean value)

publicServerTlsPolicy.BuildersetAllowOpen(booleanvalue)

Determines if server allows plaintext connections. If set to true, server allows plain text connections. By default, it is set to false. This setting is not exclusive of other encryption modes. For example, if allow_open and mtls_policy are set, server allows both plain text and mTLS connections. See documentation of other encryption modes to confirm compatibility.

Consider using it if you wish to upgrade in place your deployment to TLS while having mixed TLS and non-TLS traffic reaching port :80.

bool allow_open = 6;

Parameter
Name Description
value boolean

The allowOpen to set.

Returns
Type Description
ServerTlsPolicy.Builder

This builder for chaining.

setCreateTime(Timestamp value)

publicServerTlsPolicy.BuildersetCreateTime(Timestampvalue)

Output only. The timestamp when the resource was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ServerTlsPolicy.Builder

setCreateTime(Timestamp.Builder builderForValue)

publicServerTlsPolicy.BuildersetCreateTime(Timestamp.BuilderbuilderForValue)

Output only. The timestamp when the resource was created.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ServerTlsPolicy.Builder

setDescription(String value)

publicServerTlsPolicy.BuildersetDescription(Stringvalue)

Free-text description of the resource.

string description = 2;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
ServerTlsPolicy.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

publicServerTlsPolicy.BuildersetDescriptionBytes(ByteStringvalue)

Free-text description of the resource.

string description = 2;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
ServerTlsPolicy.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicServerTlsPolicy.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ServerTlsPolicy.Builder
Overrides

setMtlsPolicy(ServerTlsPolicy.MTLSPolicy value)

publicServerTlsPolicy.BuildersetMtlsPolicy(ServerTlsPolicy.MTLSPolicyvalue)

Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS). If not specified, client certificate will not be requested. The connection is treated as TLS and not mTLS. If allow_open and mtls_policy are set, server allows both plain text and mTLS connections.

.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8;

Parameter
Name Description
value ServerTlsPolicy.MTLSPolicy
Returns
Type Description
ServerTlsPolicy.Builder

setMtlsPolicy(ServerTlsPolicy.MTLSPolicy.Builder builderForValue)

publicServerTlsPolicy.BuildersetMtlsPolicy(ServerTlsPolicy.MTLSPolicy.BuilderbuilderForValue)

Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS). If not specified, client certificate will not be requested. The connection is treated as TLS and not mTLS. If allow_open and mtls_policy are set, server allows both plain text and mTLS connections.

.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8;

Parameter
Name Description
builderForValue ServerTlsPolicy.MTLSPolicy.Builder
Returns
Type Description
ServerTlsPolicy.Builder

setName(String value)

publicServerTlsPolicy.BuildersetName(Stringvalue)

Required. Name of the ServerTlsPolicy resource. It matches the pattern projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ServerTlsPolicy.Builder

This builder for chaining.

setNameBytes(ByteString value)

publicServerTlsPolicy.BuildersetNameBytes(ByteStringvalue)

Required. Name of the ServerTlsPolicy resource. It matches the pattern projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ServerTlsPolicy.Builder

This builder for chaining.

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

publicServerTlsPolicy.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ServerTlsPolicy.Builder
Overrides

setServerCertificate(CertificateProvider value)

publicServerTlsPolicy.BuildersetServerCertificate(CertificateProvidervalue)

Defines a mechanism to provision server identity (public and private keys). Cannot be combined with allow_open as a permissive mode that allows both plain text and TLS is not supported.

.google.cloud.networksecurity.v1.CertificateProvider server_certificate = 7;

Parameter
Name Description
value CertificateProvider
Returns
Type Description
ServerTlsPolicy.Builder

setServerCertificate(CertificateProvider.Builder builderForValue)

publicServerTlsPolicy.BuildersetServerCertificate(CertificateProvider.BuilderbuilderForValue)

Defines a mechanism to provision server identity (public and private keys). Cannot be combined with allow_open as a permissive mode that allows both plain text and TLS is not supported.

.google.cloud.networksecurity.v1.CertificateProvider server_certificate = 7;

Parameter
Name Description
builderForValue CertificateProvider.Builder
Returns
Type Description
ServerTlsPolicy.Builder

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalServerTlsPolicy.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ServerTlsPolicy.Builder
Overrides

setUpdateTime(Timestamp value)

publicServerTlsPolicy.BuildersetUpdateTime(Timestampvalue)

Output only. The timestamp when the resource was updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ServerTlsPolicy.Builder

setUpdateTime(Timestamp.Builder builderForValue)

publicServerTlsPolicy.BuildersetUpdateTime(Timestamp.BuilderbuilderForValue)

Output only. The timestamp when the resource was updated.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ServerTlsPolicy.Builder

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.