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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ServerTlsPolicybuild()ServerTlsPolicybuildPartial()ServerTlsPolicy.Builderclear()ServerTlsPolicy.BuilderclearAllowOpen()Determines if server allows plaintext connections.ServerTlsPolicy.BuilderclearCreateTime()Output only.ServerTlsPolicy.BuilderclearDescription()Free-text description of the resource.ServerTlsPolicy.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ServerTlsPolicy.BuilderclearLabels()ServerTlsPolicy.BuilderclearMtlsPolicy()Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS).ServerTlsPolicy.BuilderclearName()Required.ServerTlsPolicy.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ServerTlsPolicy.BuilderclearServerCertificate()Defines a mechanism to provision server identity (public and private keys).ServerTlsPolicy.BuilderclearUpdateTime()Output only.ServerTlsPolicy.Builderclone()booleancontainsLabels(String key)Set of label tags associated with the resource.booleangetAllowOpen()Determines if server allows plaintext connections.com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.Timestamp.BuildergetCreateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.ServerTlsPolicygetDefaultInstanceForType()StringgetDescription()Free-text description of the resource.com.google.protobuf.ByteStringgetDescriptionBytes()Free-text description of the resource.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Map<String,String>getLabels()Deprecated.intgetLabelsCount()Set of label tags associated with the resource.Map<String,String>getLabelsMap()Set of label tags associated with the resource.StringgetLabelsOrDefault(String key, String defaultValue)Set of label tags associated with the resource.StringgetLabelsOrThrow(String key)Set of label tags associated with the resource.ServerTlsPolicy.MTLSPolicygetMtlsPolicy()Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS).ServerTlsPolicy.MTLSPolicy.BuildergetMtlsPolicyBuilder()Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS).ServerTlsPolicy.MTLSPolicyOrBuildergetMtlsPolicyOrBuilder()Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS).Map<String,String>getMutableLabels()Deprecated.StringgetName()Required.com.google.protobuf.ByteStringgetNameBytes()Required.CertificateProvidergetServerCertificate()Defines a mechanism to provision server identity (public and private keys).CertificateProvider.BuildergetServerCertificateBuilder()Defines a mechanism to provision server identity (public and private keys).CertificateProviderOrBuildergetServerCertificateOrBuilder()Defines a mechanism to provision server identity (public and private keys).com.google.protobuf.TimestampgetUpdateTime()Output only.com.google.protobuf.Timestamp.BuildergetUpdateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetUpdateTimeOrBuilder()Output only.booleanhasCreateTime()Output only.booleanhasMtlsPolicy()Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS).booleanhasServerCertificate()Defines a mechanism to provision server identity (public and private keys).booleanhasUpdateTime()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()ServerTlsPolicy.BuildermergeCreateTime(com.google.protobuf.Timestamp value)Output only.ServerTlsPolicy.BuildermergeFrom(ServerTlsPolicy other)ServerTlsPolicy.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ServerTlsPolicy.BuildermergeFrom(com.google.protobuf.Message other)ServerTlsPolicy.BuildermergeMtlsPolicy(ServerTlsPolicy.MTLSPolicy value)Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS).ServerTlsPolicy.BuildermergeServerCertificate(CertificateProvider value)Defines a mechanism to provision server identity (public and private keys).ServerTlsPolicy.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ServerTlsPolicy.BuildermergeUpdateTime(com.google.protobuf.Timestamp value)Output only.ServerTlsPolicy.BuilderputAllLabels(Map<String,String> values)Set of label tags associated with the resource.ServerTlsPolicy.BuilderputLabels(String key, String value)Set of label tags associated with the resource.ServerTlsPolicy.BuilderremoveLabels(String key)Set of label tags associated with the resource.ServerTlsPolicy.BuildersetAllowOpen(boolean value)Determines if server allows plaintext connections.ServerTlsPolicy.BuildersetCreateTime(com.google.protobuf.Timestamp value)Output only.ServerTlsPolicy.BuildersetCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.ServerTlsPolicy.BuildersetDescription(String value)Free-text description of the resource.ServerTlsPolicy.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)Free-text description of the resource.ServerTlsPolicy.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ServerTlsPolicy.BuildersetMtlsPolicy(ServerTlsPolicy.MTLSPolicy value)Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS).ServerTlsPolicy.BuildersetMtlsPolicy(ServerTlsPolicy.MTLSPolicy.Builder builderForValue)Defines a mechanism to provision peer validation certificates for peer to peer authentication (Mutual TLS - mTLS).ServerTlsPolicy.BuildersetName(String value)Required.ServerTlsPolicy.BuildersetNameBytes(com.google.protobuf.ByteString value)Required.ServerTlsPolicy.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ServerTlsPolicy.BuildersetServerCertificate(CertificateProvider value)Defines a mechanism to provision server identity (public and private keys).ServerTlsPolicy.BuildersetServerCertificate(CertificateProvider.Builder builderForValue)Defines a mechanism to provision server identity (public and private keys).ServerTlsPolicy.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ServerTlsPolicy.BuildersetUpdateTime(com.google.protobuf.Timestamp value)Output only.ServerTlsPolicy.BuildersetUpdateTime(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:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerTlsPolicy.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerTlsPolicy.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ServerTlsPolicy.Builder>
-
clear
public ServerTlsPolicy.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerTlsPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ServerTlsPolicy.Builder>
-
getDefaultInstanceForType
public ServerTlsPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ServerTlsPolicy build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ServerTlsPolicy buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ServerTlsPolicy.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ServerTlsPolicy.Builder>
-
setField
public ServerTlsPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerTlsPolicy.Builder>
-
clearField
public ServerTlsPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerTlsPolicy.Builder>
-
clearOneof
public ServerTlsPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerTlsPolicy.Builder>
-
setRepeatedField
public ServerTlsPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerTlsPolicy.Builder>
-
addRepeatedField
public ServerTlsPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerTlsPolicy.Builder>
-
mergeFrom
public ServerTlsPolicy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ServerTlsPolicy.Builder>
-
mergeFrom
public ServerTlsPolicy.Builder mergeFrom(ServerTlsPolicy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getNamein 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:
getNameBytesin 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:
getDescriptionin interfaceServerTlsPolicyOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Free-text description of the resource.
string description = 2;- Specified by:
getDescriptionBytesin 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:
hasCreateTimein 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:
getCreateTimein 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:
getCreateTimeOrBuilderin 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:
hasUpdateTimein 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:
getUpdateTimein 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:
getUpdateTimeOrBuilderin interfaceServerTlsPolicyOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:ServerTlsPolicyOrBuilderSet of label tags associated with the resource.
map<string, string> labels = 5;- Specified by:
getLabelsCountin interfaceServerTlsPolicyOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Set of label tags associated with the resource.
map<string, string> labels = 5;- Specified by:
containsLabelsin interfaceServerTlsPolicyOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceServerTlsPolicyOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Set of label tags associated with the resource.
map<string, string> labels = 5;- Specified by:
getLabelsMapin interfaceServerTlsPolicyOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Set of label tags associated with the resource.
map<string, string> labels = 5;- Specified by:
getLabelsOrDefaultin interfaceServerTlsPolicyOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Set of label tags associated with the resource.
map<string, string> labels = 5;- Specified by:
getLabelsOrThrowin 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:
getAllowOpenin 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:
hasServerCertificatein 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:
getServerCertificatein 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:
getServerCertificateOrBuilderin 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:
hasMtlsPolicyin 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:
getMtlsPolicyin 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:
getMtlsPolicyOrBuilderin interfaceServerTlsPolicyOrBuilder
-
setUnknownFields
public final ServerTlsPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerTlsPolicy.Builder>
-
mergeUnknownFields
public final ServerTlsPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ServerTlsPolicy.Builder>
-
-