Class ServerTlsPolicy.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ServerTlsPolicy.Builder>
-
- com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder
-
- All Implemented Interfaces:
ServerTlsPolicyOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ServerTlsPolicy
public static final class ServerTlsPolicy.Builder extends com.google.protobuf.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 typegoogle.cloud.networksecurity.v1.ServerTlsPolicy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ServerTlsPolicy.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ServerTlsPolicy
build()
ServerTlsPolicy
buildPartial()
ServerTlsPolicy.Builder
clear()
ServerTlsPolicy.Builder
clearAllowOpen()
Determines if server allows plaintext connections.ServerTlsPolicy.Builder
clearCreateTime()
Output only.ServerTlsPolicy.Builder
clearDescription()
Free-text description of the resource.ServerTlsPolicy.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ServerTlsPolicy.Builder
clearLabels()
ServerTlsPolicy.Builder
clearMtlsPolicy()
Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS).ServerTlsPolicy.Builder
clearName()
Required.ServerTlsPolicy.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ServerTlsPolicy.Builder
clearServerCertificate()
Defines a mechanism to provision server identity (public and private keys).ServerTlsPolicy.Builder
clearUpdateTime()
Output only.ServerTlsPolicy.Builder
clone()
boolean
containsLabels(String key)
Set of label tags associated with the resource.boolean
getAllowOpen()
Determines if server allows plaintext connections.com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.Timestamp.Builder
getCreateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.ServerTlsPolicy
getDefaultInstanceForType()
String
getDescription()
Free-text description of the resource.com.google.protobuf.ByteString
getDescriptionBytes()
Free-text description of the resource.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Set of label tags associated with the resource.Map<String,String>
getLabelsMap()
Set of label tags associated with the resource.String
getLabelsOrDefault(String key, String defaultValue)
Set of label tags associated with the resource.String
getLabelsOrThrow(String key)
Set of label tags associated with the resource.ServerTlsPolicy.MTLSPolicy
getMtlsPolicy()
Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS).ServerTlsPolicy.MTLSPolicy.Builder
getMtlsPolicyBuilder()
Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS).ServerTlsPolicy.MTLSPolicyOrBuilder
getMtlsPolicyOrBuilder()
Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS).Map<String,String>
getMutableLabels()
Deprecated.String
getName()
Required.com.google.protobuf.ByteString
getNameBytes()
Required.CertificateProvider
getServerCertificate()
Defines a mechanism to provision server identity (public and private keys).CertificateProvider.Builder
getServerCertificateBuilder()
Defines a mechanism to provision server identity (public and private keys).CertificateProviderOrBuilder
getServerCertificateOrBuilder()
Defines a mechanism to provision server identity (public and private keys).com.google.protobuf.Timestamp
getUpdateTime()
Output only.com.google.protobuf.Timestamp.Builder
getUpdateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getUpdateTimeOrBuilder()
Output only.boolean
hasCreateTime()
Output only.boolean
hasMtlsPolicy()
Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS).boolean
hasServerCertificate()
Defines a mechanism to provision server identity (public and private keys).boolean
hasUpdateTime()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
ServerTlsPolicy.Builder
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.ServerTlsPolicy.Builder
mergeFrom(ServerTlsPolicy other)
ServerTlsPolicy.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ServerTlsPolicy.Builder
mergeFrom(com.google.protobuf.Message other)
ServerTlsPolicy.Builder
mergeMtlsPolicy(ServerTlsPolicy.MTLSPolicy value)
Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS).ServerTlsPolicy.Builder
mergeServerCertificate(CertificateProvider value)
Defines a mechanism to provision server identity (public and private keys).ServerTlsPolicy.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ServerTlsPolicy.Builder
mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only.ServerTlsPolicy.Builder
putAllLabels(Map<String,String> values)
Set of label tags associated with the resource.ServerTlsPolicy.Builder
putLabels(String key, String value)
Set of label tags associated with the resource.ServerTlsPolicy.Builder
removeLabels(String key)
Set of label tags associated with the resource.ServerTlsPolicy.Builder
setAllowOpen(boolean value)
Determines if server allows plaintext connections.ServerTlsPolicy.Builder
setCreateTime(com.google.protobuf.Timestamp value)
Output only.ServerTlsPolicy.Builder
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.ServerTlsPolicy.Builder
setDescription(String value)
Free-text description of the resource.ServerTlsPolicy.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
Free-text description of the resource.ServerTlsPolicy.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ServerTlsPolicy.Builder
setMtlsPolicy(ServerTlsPolicy.MTLSPolicy value)
Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS).ServerTlsPolicy.Builder
setMtlsPolicy(ServerTlsPolicy.MTLSPolicy.Builder builderForValue)
Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS).ServerTlsPolicy.Builder
setName(String value)
Required.ServerTlsPolicy.Builder
setNameBytes(com.google.protobuf.ByteString value)
Required.ServerTlsPolicy.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ServerTlsPolicy.Builder
setServerCertificate(CertificateProvider value)
Defines a mechanism to provision server identity (public and private keys).ServerTlsPolicy.Builder
setServerCertificate(CertificateProvider.Builder builderForValue)
Defines a mechanism to provision server identity (public and private keys).ServerTlsPolicy.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ServerTlsPolicy.Builder
setUpdateTime(com.google.protobuf.Timestamp value)
Output only.ServerTlsPolicy.Builder
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServerTlsPolicy.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServerTlsPolicy.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServerTlsPolicy.Builder>
-
clear
public ServerTlsPolicy.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServerTlsPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServerTlsPolicy.Builder>
-
getDefaultInstanceForType
public ServerTlsPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ServerTlsPolicy build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ServerTlsPolicy buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ServerTlsPolicy.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServerTlsPolicy.Builder>
-
setField
public ServerTlsPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServerTlsPolicy.Builder>
-
clearField
public ServerTlsPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServerTlsPolicy.Builder>
-
clearOneof
public ServerTlsPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServerTlsPolicy.Builder>
-
setRepeatedField
public ServerTlsPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServerTlsPolicy.Builder>
-
addRepeatedField
public ServerTlsPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServerTlsPolicy.Builder>
-
mergeFrom
public ServerTlsPolicy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ServerTlsPolicy.Builder>
-
mergeFrom
public ServerTlsPolicy.Builder mergeFrom(ServerTlsPolicy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServerTlsPolicy.Builder>
-
mergeFrom
public ServerTlsPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ServerTlsPolicy.Builder>
- Throws:
IOException
-
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];
- Specified by:
getName
in interfaceServerTlsPolicyOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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];
- Specified by:
getNameBytes
in interfaceServerTlsPolicyOrBuilder
- Returns:
- The bytes for name.
-
setName
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];
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
public ServerTlsPolicy.Builder setNameBytes(com.google.protobuf.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];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDescription
public String getDescription()
Free-text description of the resource.
string description = 2;
- Specified by:
getDescription
in interfaceServerTlsPolicyOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Free-text description of the resource.
string description = 2;
- Specified by:
getDescriptionBytes
in interfaceServerTlsPolicyOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public ServerTlsPolicy.Builder setDescription(String value)
Free-text description of the resource.
string description = 2;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public ServerTlsPolicy.Builder clearDescription()
Free-text description of the resource.
string description = 2;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
public ServerTlsPolicy.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Free-text description of the resource.
string description = 2;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
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];
- Specified by:
hasCreateTime
in interfaceServerTlsPolicyOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTime
in interfaceServerTlsPolicyOrBuilder
- Returns:
- The createTime.
-
setCreateTime
public ServerTlsPolicy.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreateTime
public ServerTlsPolicy.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreateTime
public ServerTlsPolicy.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
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];
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTimeOrBuilder
in interfaceServerTlsPolicyOrBuilder
-
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];
- Specified by:
hasUpdateTime
in interfaceServerTlsPolicyOrBuilder
- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()
Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUpdateTime
in interfaceServerTlsPolicyOrBuilder
- Returns:
- The updateTime.
-
setUpdateTime
public ServerTlsPolicy.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setUpdateTime
public ServerTlsPolicy.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeUpdateTime
public ServerTlsPolicy.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
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];
-
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUpdateTimeOrBuilder
in interfaceServerTlsPolicyOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:ServerTlsPolicyOrBuilder
Set of label tags associated with the resource.
map<string, string> labels = 5;
- Specified by:
getLabelsCount
in interfaceServerTlsPolicyOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Set of label tags associated with the resource.
map<string, string> labels = 5;
- Specified by:
containsLabels
in interfaceServerTlsPolicyOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceServerTlsPolicyOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Set of label tags associated with the resource.
map<string, string> labels = 5;
- Specified by:
getLabelsMap
in interfaceServerTlsPolicyOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Set of label tags associated with the resource.
map<string, string> labels = 5;
- Specified by:
getLabelsOrDefault
in interfaceServerTlsPolicyOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Set of label tags associated with the resource.
map<string, string> labels = 5;
- Specified by:
getLabelsOrThrow
in interfaceServerTlsPolicyOrBuilder
-
clearLabels
public ServerTlsPolicy.Builder clearLabels()
-
removeLabels
public ServerTlsPolicy.Builder removeLabels(String key)
Set of label tags associated with the resource.
map<string, string> labels = 5;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public ServerTlsPolicy.Builder putLabels(String key, String value)
Set of label tags associated with the resource.
map<string, string> labels = 5;
-
putAllLabels
public ServerTlsPolicy.Builder putAllLabels(Map<String,String> values)
Set of label tags associated with the resource.
map<string, string> labels = 5;
-
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;
- Specified by:
getAllowOpen
in interfaceServerTlsPolicyOrBuilder
- Returns:
- The allowOpen.
-
setAllowOpen
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;
- Parameters:
value
- The allowOpen to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;
- Specified by:
hasServerCertificate
in interfaceServerTlsPolicyOrBuilder
- Returns:
- Whether the serverCertificate field is set.
-
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;
- Specified by:
getServerCertificate
in interfaceServerTlsPolicyOrBuilder
- Returns:
- The serverCertificate.
-
setServerCertificate
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;
-
setServerCertificate
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;
-
mergeServerCertificate
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;
-
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;
-
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;
-
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;
- Specified by:
getServerCertificateOrBuilder
in interfaceServerTlsPolicyOrBuilder
-
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;
- Specified by:
hasMtlsPolicy
in interfaceServerTlsPolicyOrBuilder
- Returns:
- Whether the mtlsPolicy field is set.
-
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;
- Specified by:
getMtlsPolicy
in interfaceServerTlsPolicyOrBuilder
- Returns:
- The mtlsPolicy.
-
setMtlsPolicy
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;
-
setMtlsPolicy
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;
-
mergeMtlsPolicy
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;
-
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;
-
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;
-
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;
- Specified by:
getMtlsPolicyOrBuilder
in interfaceServerTlsPolicyOrBuilder
-
setUnknownFields
public final ServerTlsPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServerTlsPolicy.Builder>
-
mergeUnknownFields
public final ServerTlsPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServerTlsPolicy.Builder>
-
-