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.Builder
addAllSubjectAltNames(Iterable<String> values)
Optional.SecuritySettings.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SecuritySettings.Builder
addSubjectAltNames(String value)
Optional.SecuritySettings.Builder
addSubjectAltNamesBytes(com.google.protobuf.ByteString value)
Optional.SecuritySettings
build()
SecuritySettings
buildPartial()
SecuritySettings.Builder
clear()
SecuritySettings.Builder
clearClientTlsPolicy()
Optional.SecuritySettings.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
SecuritySettings.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
SecuritySettings.Builder
clearSubjectAltNames()
Optional.SecuritySettings.Builder
clone()
String
getClientTlsPolicy()
Optional.com.google.protobuf.ByteString
getClientTlsPolicyBytes()
Optional.SecuritySettings
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getSubjectAltNames(int index)
Optional.com.google.protobuf.ByteString
getSubjectAltNamesBytes(int index)
Optional.int
getSubjectAltNamesCount()
Optional.com.google.protobuf.ProtocolStringList
getSubjectAltNamesList()
Optional.boolean
hasClientTlsPolicy()
Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
SecuritySettings.Builder
mergeFrom(SecuritySettings other)
SecuritySettings.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SecuritySettings.Builder
mergeFrom(com.google.protobuf.Message other)
SecuritySettings.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SecuritySettings.Builder
setClientTlsPolicy(String value)
Optional.SecuritySettings.Builder
setClientTlsPolicyBytes(com.google.protobuf.ByteString value)
Optional.SecuritySettings.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SecuritySettings.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
SecuritySettings.Builder
setSubjectAltNames(int index, String value)
Optional.SecuritySettings.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<SecuritySettings.Builder>
-
clear
public SecuritySettings.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<SecuritySettings.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<SecuritySettings.Builder>
-
getDefaultInstanceForType
public SecuritySettings getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SecuritySettings build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SecuritySettings buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SecuritySettings.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<SecuritySettings.Builder>
-
setField
public SecuritySettings.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<SecuritySettings.Builder>
-
clearField
public SecuritySettings.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<SecuritySettings.Builder>
-
clearOneof
public SecuritySettings.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<SecuritySettings.Builder>
-
setRepeatedField
public SecuritySettings.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<SecuritySettings.Builder>
-
addRepeatedField
public SecuritySettings.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<SecuritySettings.Builder>
-
mergeFrom
public SecuritySettings.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SecuritySettings.Builder>
-
mergeFrom
public SecuritySettings.Builder mergeFrom(SecuritySettings other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasClientTlsPolicy
in 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:
getClientTlsPolicy
in 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:
getClientTlsPolicyBytes
in 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:
getSubjectAltNamesList
in 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:
getSubjectAltNamesCount
in 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:
getSubjectAltNames
in 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:
getSubjectAltNamesBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SecuritySettings.Builder>
-
mergeUnknownFields
public final SecuritySettings.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SecuritySettings.Builder>
-
-