- 0.56.0 (latest)
- 0.55.0
- 0.54.0
- 0.52.0
- 0.51.0
- 0.50.0
- 0.49.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.4
- 0.5.1
- 0.4.4
public static final class ServerTlsPolicy.Builder extends GeneratedMessageV3.Builder<ServerTlsPolicy.Builder> implements ServerTlsPolicyOrBuilder
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ServerTlsPolicy.BuilderImplements
ServerTlsPolicyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ServerTlsPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
ServerTlsPolicy.Builder |
build()
public ServerTlsPolicy build()
Returns | |
---|---|
Type | Description |
ServerTlsPolicy |
buildPartial()
public ServerTlsPolicy buildPartial()
Returns | |
---|---|
Type | Description |
ServerTlsPolicy |
clear()
public ServerTlsPolicy.Builder clear()
Returns | |
---|---|
Type | Description |
ServerTlsPolicy.Builder |
clearAllowOpen()
public ServerTlsPolicy.Builder clearAllowOpen()
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()
public ServerTlsPolicy.Builder clearCreateTime()
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()
public ServerTlsPolicy.Builder clearDescription()
Free-text description of the resource.
string description = 2;
Returns | |
---|---|
Type | Description |
ServerTlsPolicy.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ServerTlsPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
ServerTlsPolicy.Builder |
clearLabels()
public ServerTlsPolicy.Builder clearLabels()
Returns | |
---|---|
Type | Description |
ServerTlsPolicy.Builder |
clearMtlsPolicy()
public ServerTlsPolicy.Builder clearMtlsPolicy()
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()
public ServerTlsPolicy.Builder clearName()
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)
public ServerTlsPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
ServerTlsPolicy.Builder |
clearServerCertificate()
public ServerTlsPolicy.Builder clearServerCertificate()
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()
public ServerTlsPolicy.Builder clearUpdateTime()
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()
public ServerTlsPolicy.Builder clone()
Returns | |
---|---|
Type | Description |
ServerTlsPolicy.Builder |
containsLabels(String key)
public boolean containsLabels(String key)
Set of label tags associated with the resource.
map<string, string> labels = 5;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
boolean |
getAllowOpen()
public boolean getAllowOpen()
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()
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public ServerTlsPolicy getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ServerTlsPolicy |
getDescription()
public String getDescription()
Free-text description of the resource.
string description = 2;
Returns | |
---|---|
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
Free-text description of the resource.
string description = 2;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getLabels() (deprecated)
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getLabelsCount()
public int getLabelsCount()
Set of label tags associated with the resource.
map<string, string> labels = 5;
Returns | |
---|---|
Type | Description |
int |
getLabelsMap()
public Map<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)
public String getLabelsOrDefault(String key, String defaultValue)
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)
public String getLabelsOrThrow(String key)
Set of label tags associated with the resource.
map<string, string> labels = 5;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
String |
getMtlsPolicy()
public ServerTlsPolicy.MTLSPolicy getMtlsPolicy()
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()
public ServerTlsPolicy.MTLSPolicy.Builder getMtlsPolicyBuilder()
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()
public ServerTlsPolicy.MTLSPolicyOrBuilder getMtlsPolicyOrBuilder()
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)
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getName()
public String getName()
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()
public ByteString getNameBytes()
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()
public CertificateProvider getServerCertificate()
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()
public CertificateProvider.Builder getServerCertificateBuilder()
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()
public CertificateProviderOrBuilder getServerCertificateOrBuilder()
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()
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
TimestampOrBuilder |
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 | |
---|---|
Type | Description |
boolean | Whether the createTime field is set. |
hasMtlsPolicy()
public boolean hasMtlsPolicy()
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()
public boolean hasServerCertificate()
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()
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 | |
---|---|
Type | Description |
boolean | Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeCreateTime(Timestamp value)
public ServerTlsPolicy.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 | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
ServerTlsPolicy.Builder |
mergeFrom(ServerTlsPolicy other)
public ServerTlsPolicy.Builder mergeFrom(ServerTlsPolicy other)
Parameter | |
---|---|
Name | Description |
other | ServerTlsPolicy |
Returns | |
---|---|
Type | Description |
ServerTlsPolicy.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ServerTlsPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ServerTlsPolicy.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ServerTlsPolicy.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
ServerTlsPolicy.Builder |
mergeMtlsPolicy(ServerTlsPolicy.MTLSPolicy value)
public ServerTlsPolicy.Builder mergeMtlsPolicy(ServerTlsPolicy.MTLSPolicy value)
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)
public ServerTlsPolicy.Builder mergeServerCertificate(CertificateProvider value)
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)
public final ServerTlsPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ServerTlsPolicy.Builder |
mergeUpdateTime(Timestamp value)
public ServerTlsPolicy.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 | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
ServerTlsPolicy.Builder |
putAllLabels(Map<String,String> values)
public ServerTlsPolicy.Builder putAllLabels(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)
public ServerTlsPolicy.Builder putLabels(String key, String value)
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)
public ServerTlsPolicy.Builder removeLabels(String key)
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)
public ServerTlsPolicy.Builder setAllowOpen(boolean value)
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)
public ServerTlsPolicy.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 | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
ServerTlsPolicy.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public ServerTlsPolicy.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 | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
ServerTlsPolicy.Builder |
setDescription(String value)
public ServerTlsPolicy.Builder setDescription(String value)
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)
public ServerTlsPolicy.Builder setDescriptionBytes(ByteString value)
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)
public ServerTlsPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
ServerTlsPolicy.Builder |
setMtlsPolicy(ServerTlsPolicy.MTLSPolicy value)
public ServerTlsPolicy.Builder setMtlsPolicy(ServerTlsPolicy.MTLSPolicy value)
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)
public ServerTlsPolicy.Builder setMtlsPolicy(ServerTlsPolicy.MTLSPolicy.Builder builderForValue)
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)
public ServerTlsPolicy.Builder setName(String value)
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)
public ServerTlsPolicy.Builder setNameBytes(ByteString value)
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)
public ServerTlsPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
ServerTlsPolicy.Builder |
setServerCertificate(CertificateProvider value)
public ServerTlsPolicy.Builder setServerCertificate(CertificateProvider value)
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)
public ServerTlsPolicy.Builder setServerCertificate(CertificateProvider.Builder builderForValue)
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)
public final ServerTlsPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ServerTlsPolicy.Builder |
setUpdateTime(Timestamp value)
public ServerTlsPolicy.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 | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
ServerTlsPolicy.Builder |
setUpdateTime(Timestamp.Builder builderForValue)
public ServerTlsPolicy.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 | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
ServerTlsPolicy.Builder |