Package com.google.cloud.compute.v1
Class SecuritySettings.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SecuritySettings.Builder>
-
- com.google.cloud.compute.v1.SecuritySettings.Builder
-
- All Implemented Interfaces:
SecuritySettingsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SecuritySettings
public static final class SecuritySettings.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SecuritySettings.Builder> implements SecuritySettingsOrBuilder
The authentication and authorization settings for a BackendService.
Protobuf typegoogle.cloud.compute.v1.SecuritySettings
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SecuritySettings.BuilderaddAllSubjectAltNames(Iterable<String> values)Optional.SecuritySettings.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SecuritySettings.BuilderaddSubjectAltNames(String value)Optional.SecuritySettings.BuilderaddSubjectAltNamesBytes(com.google.protobuf.ByteString value)Optional.SecuritySettingsbuild()SecuritySettingsbuildPartial()SecuritySettings.Builderclear()SecuritySettings.BuilderclearClientTlsPolicy()Optional.SecuritySettings.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)SecuritySettings.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)SecuritySettings.BuilderclearSubjectAltNames()Optional.SecuritySettings.Builderclone()StringgetClientTlsPolicy()Optional.com.google.protobuf.ByteStringgetClientTlsPolicyBytes()Optional.SecuritySettingsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetSubjectAltNames(int index)Optional.com.google.protobuf.ByteStringgetSubjectAltNamesBytes(int index)Optional.intgetSubjectAltNamesCount()Optional.com.google.protobuf.ProtocolStringListgetSubjectAltNamesList()Optional.booleanhasClientTlsPolicy()Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SecuritySettings.BuildermergeFrom(SecuritySettings other)SecuritySettings.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SecuritySettings.BuildermergeFrom(com.google.protobuf.Message other)SecuritySettings.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SecuritySettings.BuildersetClientTlsPolicy(String value)Optional.SecuritySettings.BuildersetClientTlsPolicyBytes(com.google.protobuf.ByteString value)Optional.SecuritySettings.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SecuritySettings.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)SecuritySettings.BuildersetSubjectAltNames(int index, String value)Optional.SecuritySettings.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<SecuritySettings.Builder>
-
clear
public SecuritySettings.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<SecuritySettings.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<SecuritySettings.Builder>
-
getDefaultInstanceForType
public SecuritySettings getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SecuritySettings build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SecuritySettings buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SecuritySettings.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<SecuritySettings.Builder>
-
setField
public SecuritySettings.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<SecuritySettings.Builder>
-
clearField
public SecuritySettings.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SecuritySettings.Builder>
-
clearOneof
public SecuritySettings.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SecuritySettings.Builder>
-
setRepeatedField
public SecuritySettings.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<SecuritySettings.Builder>
-
addRepeatedField
public SecuritySettings.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<SecuritySettings.Builder>
-
mergeFrom
public SecuritySettings.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SecuritySettings.Builder>
-
mergeFrom
public SecuritySettings.Builder mergeFrom(SecuritySettings other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<SecuritySettings.Builder>
-
mergeFrom
public SecuritySettings.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<SecuritySettings.Builder>- Throws:
IOException
-
hasClientTlsPolicy
public boolean hasClientTlsPolicy()
Optional. A URL referring to a networksecurity.ClientTlsPolicy resource that describes how clients should authenticate with this service's backends. clientTlsPolicy only applies to a global BackendService with the loadBalancingScheme set to INTERNAL_SELF_MANAGED. If left blank, communications are not encrypted.
optional string client_tls_policy = 462325226;- Specified by:
hasClientTlsPolicyin interfaceSecuritySettingsOrBuilder- Returns:
- Whether the clientTlsPolicy field is set.
-
getClientTlsPolicy
public String getClientTlsPolicy()
Optional. A URL referring to a networksecurity.ClientTlsPolicy resource that describes how clients should authenticate with this service's backends. clientTlsPolicy only applies to a global BackendService with the loadBalancingScheme set to INTERNAL_SELF_MANAGED. If left blank, communications are not encrypted.
optional string client_tls_policy = 462325226;- Specified by:
getClientTlsPolicyin interfaceSecuritySettingsOrBuilder- Returns:
- The clientTlsPolicy.
-
getClientTlsPolicyBytes
public com.google.protobuf.ByteString getClientTlsPolicyBytes()
Optional. A URL referring to a networksecurity.ClientTlsPolicy resource that describes how clients should authenticate with this service's backends. clientTlsPolicy only applies to a global BackendService with the loadBalancingScheme set to INTERNAL_SELF_MANAGED. If left blank, communications are not encrypted.
optional string client_tls_policy = 462325226;- Specified by:
getClientTlsPolicyBytesin interfaceSecuritySettingsOrBuilder- Returns:
- The bytes for clientTlsPolicy.
-
setClientTlsPolicy
public SecuritySettings.Builder setClientTlsPolicy(String value)
Optional. A URL referring to a networksecurity.ClientTlsPolicy resource that describes how clients should authenticate with this service's backends. clientTlsPolicy only applies to a global BackendService with the loadBalancingScheme set to INTERNAL_SELF_MANAGED. If left blank, communications are not encrypted.
optional string client_tls_policy = 462325226;- Parameters:
value- The clientTlsPolicy to set.- Returns:
- This builder for chaining.
-
clearClientTlsPolicy
public SecuritySettings.Builder clearClientTlsPolicy()
Optional. A URL referring to a networksecurity.ClientTlsPolicy resource that describes how clients should authenticate with this service's backends. clientTlsPolicy only applies to a global BackendService with the loadBalancingScheme set to INTERNAL_SELF_MANAGED. If left blank, communications are not encrypted.
optional string client_tls_policy = 462325226;- Returns:
- This builder for chaining.
-
setClientTlsPolicyBytes
public SecuritySettings.Builder setClientTlsPolicyBytes(com.google.protobuf.ByteString value)
Optional. A URL referring to a networksecurity.ClientTlsPolicy resource that describes how clients should authenticate with this service's backends. clientTlsPolicy only applies to a global BackendService with the loadBalancingScheme set to INTERNAL_SELF_MANAGED. If left blank, communications are not encrypted.
optional string client_tls_policy = 462325226;- Parameters:
value- The bytes for clientTlsPolicy to set.- Returns:
- This builder for chaining.
-
getSubjectAltNamesList
public com.google.protobuf.ProtocolStringList getSubjectAltNamesList()
Optional. A list of Subject Alternative Names (SANs) that the client verifies during a mutual TLS handshake with an server/endpoint for this BackendService. When the server presents its X.509 certificate to the client, the client inspects the certificate's subjectAltName field. If the field contains one of the specified values, the communication continues. Otherwise, it fails. This additional check enables the client to verify that the server is authorized to run the requested service. Note that the contents of the server certificate's subjectAltName field are configured by the Public Key Infrastructure which provisions server identities. Only applies to a global BackendService with loadBalancingScheme set to INTERNAL_SELF_MANAGED. Only applies when BackendService has an attached clientTlsPolicy with clientCertificate (mTLS mode).
repeated string subject_alt_names = 330029535;- Specified by:
getSubjectAltNamesListin interfaceSecuritySettingsOrBuilder- Returns:
- A list containing the subjectAltNames.
-
getSubjectAltNamesCount
public int getSubjectAltNamesCount()
Optional. A list of Subject Alternative Names (SANs) that the client verifies during a mutual TLS handshake with an server/endpoint for this BackendService. When the server presents its X.509 certificate to the client, the client inspects the certificate's subjectAltName field. If the field contains one of the specified values, the communication continues. Otherwise, it fails. This additional check enables the client to verify that the server is authorized to run the requested service. Note that the contents of the server certificate's subjectAltName field are configured by the Public Key Infrastructure which provisions server identities. Only applies to a global BackendService with loadBalancingScheme set to INTERNAL_SELF_MANAGED. Only applies when BackendService has an attached clientTlsPolicy with clientCertificate (mTLS mode).
repeated string subject_alt_names = 330029535;- Specified by:
getSubjectAltNamesCountin interfaceSecuritySettingsOrBuilder- Returns:
- The count of subjectAltNames.
-
getSubjectAltNames
public String getSubjectAltNames(int index)
Optional. A list of Subject Alternative Names (SANs) that the client verifies during a mutual TLS handshake with an server/endpoint for this BackendService. When the server presents its X.509 certificate to the client, the client inspects the certificate's subjectAltName field. If the field contains one of the specified values, the communication continues. Otherwise, it fails. This additional check enables the client to verify that the server is authorized to run the requested service. Note that the contents of the server certificate's subjectAltName field are configured by the Public Key Infrastructure which provisions server identities. Only applies to a global BackendService with loadBalancingScheme set to INTERNAL_SELF_MANAGED. Only applies when BackendService has an attached clientTlsPolicy with clientCertificate (mTLS mode).
repeated string subject_alt_names = 330029535;- Specified by:
getSubjectAltNamesin interfaceSecuritySettingsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The subjectAltNames at the given index.
-
getSubjectAltNamesBytes
public com.google.protobuf.ByteString getSubjectAltNamesBytes(int index)
Optional. A list of Subject Alternative Names (SANs) that the client verifies during a mutual TLS handshake with an server/endpoint for this BackendService. When the server presents its X.509 certificate to the client, the client inspects the certificate's subjectAltName field. If the field contains one of the specified values, the communication continues. Otherwise, it fails. This additional check enables the client to verify that the server is authorized to run the requested service. Note that the contents of the server certificate's subjectAltName field are configured by the Public Key Infrastructure which provisions server identities. Only applies to a global BackendService with loadBalancingScheme set to INTERNAL_SELF_MANAGED. Only applies when BackendService has an attached clientTlsPolicy with clientCertificate (mTLS mode).
repeated string subject_alt_names = 330029535;- Specified by:
getSubjectAltNamesBytesin interfaceSecuritySettingsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the subjectAltNames at the given index.
-
setSubjectAltNames
public SecuritySettings.Builder setSubjectAltNames(int index, String value)
Optional. A list of Subject Alternative Names (SANs) that the client verifies during a mutual TLS handshake with an server/endpoint for this BackendService. When the server presents its X.509 certificate to the client, the client inspects the certificate's subjectAltName field. If the field contains one of the specified values, the communication continues. Otherwise, it fails. This additional check enables the client to verify that the server is authorized to run the requested service. Note that the contents of the server certificate's subjectAltName field are configured by the Public Key Infrastructure which provisions server identities. Only applies to a global BackendService with loadBalancingScheme set to INTERNAL_SELF_MANAGED. Only applies when BackendService has an attached clientTlsPolicy with clientCertificate (mTLS mode).
repeated string subject_alt_names = 330029535;- Parameters:
index- The index to set the value at.value- The subjectAltNames to set.- Returns:
- This builder for chaining.
-
addSubjectAltNames
public SecuritySettings.Builder addSubjectAltNames(String value)
Optional. A list of Subject Alternative Names (SANs) that the client verifies during a mutual TLS handshake with an server/endpoint for this BackendService. When the server presents its X.509 certificate to the client, the client inspects the certificate's subjectAltName field. If the field contains one of the specified values, the communication continues. Otherwise, it fails. This additional check enables the client to verify that the server is authorized to run the requested service. Note that the contents of the server certificate's subjectAltName field are configured by the Public Key Infrastructure which provisions server identities. Only applies to a global BackendService with loadBalancingScheme set to INTERNAL_SELF_MANAGED. Only applies when BackendService has an attached clientTlsPolicy with clientCertificate (mTLS mode).
repeated string subject_alt_names = 330029535;- Parameters:
value- The subjectAltNames to add.- Returns:
- This builder for chaining.
-
addAllSubjectAltNames
public SecuritySettings.Builder addAllSubjectAltNames(Iterable<String> values)
Optional. A list of Subject Alternative Names (SANs) that the client verifies during a mutual TLS handshake with an server/endpoint for this BackendService. When the server presents its X.509 certificate to the client, the client inspects the certificate's subjectAltName field. If the field contains one of the specified values, the communication continues. Otherwise, it fails. This additional check enables the client to verify that the server is authorized to run the requested service. Note that the contents of the server certificate's subjectAltName field are configured by the Public Key Infrastructure which provisions server identities. Only applies to a global BackendService with loadBalancingScheme set to INTERNAL_SELF_MANAGED. Only applies when BackendService has an attached clientTlsPolicy with clientCertificate (mTLS mode).
repeated string subject_alt_names = 330029535;- Parameters:
values- The subjectAltNames to add.- Returns:
- This builder for chaining.
-
clearSubjectAltNames
public SecuritySettings.Builder clearSubjectAltNames()
Optional. A list of Subject Alternative Names (SANs) that the client verifies during a mutual TLS handshake with an server/endpoint for this BackendService. When the server presents its X.509 certificate to the client, the client inspects the certificate's subjectAltName field. If the field contains one of the specified values, the communication continues. Otherwise, it fails. This additional check enables the client to verify that the server is authorized to run the requested service. Note that the contents of the server certificate's subjectAltName field are configured by the Public Key Infrastructure which provisions server identities. Only applies to a global BackendService with loadBalancingScheme set to INTERNAL_SELF_MANAGED. Only applies when BackendService has an attached clientTlsPolicy with clientCertificate (mTLS mode).
repeated string subject_alt_names = 330029535;- Returns:
- This builder for chaining.
-
addSubjectAltNamesBytes
public SecuritySettings.Builder addSubjectAltNamesBytes(com.google.protobuf.ByteString value)
Optional. A list of Subject Alternative Names (SANs) that the client verifies during a mutual TLS handshake with an server/endpoint for this BackendService. When the server presents its X.509 certificate to the client, the client inspects the certificate's subjectAltName field. If the field contains one of the specified values, the communication continues. Otherwise, it fails. This additional check enables the client to verify that the server is authorized to run the requested service. Note that the contents of the server certificate's subjectAltName field are configured by the Public Key Infrastructure which provisions server identities. Only applies to a global BackendService with loadBalancingScheme set to INTERNAL_SELF_MANAGED. Only applies when BackendService has an attached clientTlsPolicy with clientCertificate (mTLS mode).
repeated string subject_alt_names = 330029535;- Parameters:
value- The bytes of the subjectAltNames to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final SecuritySettings.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SecuritySettings.Builder>
-
mergeUnknownFields
public final SecuritySettings.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SecuritySettings.Builder>
-
-