Package com.google.cloud.compute.v1
Class SecurityPolicyRecaptchaOptionsConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRecaptchaOptionsConfig.Builder>
-
- com.google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig.Builder
-
- All Implemented Interfaces:
SecurityPolicyRecaptchaOptionsConfigOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- SecurityPolicyRecaptchaOptionsConfig
public static final class SecurityPolicyRecaptchaOptionsConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRecaptchaOptionsConfig.Builder> implements SecurityPolicyRecaptchaOptionsConfigOrBuilder
google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityPolicyRecaptchaOptionsConfig.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SecurityPolicyRecaptchaOptionsConfig
build()
SecurityPolicyRecaptchaOptionsConfig
buildPartial()
SecurityPolicyRecaptchaOptionsConfig.Builder
clear()
SecurityPolicyRecaptchaOptionsConfig.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
SecurityPolicyRecaptchaOptionsConfig.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
SecurityPolicyRecaptchaOptionsConfig.Builder
clearRedirectSiteKey()
An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy.SecurityPolicyRecaptchaOptionsConfig.Builder
clone()
SecurityPolicyRecaptchaOptionsConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getRedirectSiteKey()
An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy.com.google.protobuf.ByteString
getRedirectSiteKeyBytes()
An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy.boolean
hasRedirectSiteKey()
An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
SecurityPolicyRecaptchaOptionsConfig.Builder
mergeFrom(SecurityPolicyRecaptchaOptionsConfig other)
SecurityPolicyRecaptchaOptionsConfig.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SecurityPolicyRecaptchaOptionsConfig.Builder
mergeFrom(com.google.protobuf.Message other)
SecurityPolicyRecaptchaOptionsConfig.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SecurityPolicyRecaptchaOptionsConfig.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SecurityPolicyRecaptchaOptionsConfig.Builder
setRedirectSiteKey(String value)
An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy.SecurityPolicyRecaptchaOptionsConfig.Builder
setRedirectSiteKeyBytes(com.google.protobuf.ByteString value)
An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy.SecurityPolicyRecaptchaOptionsConfig.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
SecurityPolicyRecaptchaOptionsConfig.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<SecurityPolicyRecaptchaOptionsConfig.Builder>
-
clear
public SecurityPolicyRecaptchaOptionsConfig.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<SecurityPolicyRecaptchaOptionsConfig.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<SecurityPolicyRecaptchaOptionsConfig.Builder>
-
getDefaultInstanceForType
public SecurityPolicyRecaptchaOptionsConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SecurityPolicyRecaptchaOptionsConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SecurityPolicyRecaptchaOptionsConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SecurityPolicyRecaptchaOptionsConfig.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<SecurityPolicyRecaptchaOptionsConfig.Builder>
-
setField
public SecurityPolicyRecaptchaOptionsConfig.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<SecurityPolicyRecaptchaOptionsConfig.Builder>
-
clearField
public SecurityPolicyRecaptchaOptionsConfig.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<SecurityPolicyRecaptchaOptionsConfig.Builder>
-
clearOneof
public SecurityPolicyRecaptchaOptionsConfig.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<SecurityPolicyRecaptchaOptionsConfig.Builder>
-
setRepeatedField
public SecurityPolicyRecaptchaOptionsConfig.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<SecurityPolicyRecaptchaOptionsConfig.Builder>
-
addRepeatedField
public SecurityPolicyRecaptchaOptionsConfig.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<SecurityPolicyRecaptchaOptionsConfig.Builder>
-
mergeFrom
public SecurityPolicyRecaptchaOptionsConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SecurityPolicyRecaptchaOptionsConfig.Builder>
-
mergeFrom
public SecurityPolicyRecaptchaOptionsConfig.Builder mergeFrom(SecurityPolicyRecaptchaOptionsConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRecaptchaOptionsConfig.Builder>
-
mergeFrom
public SecurityPolicyRecaptchaOptionsConfig.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<SecurityPolicyRecaptchaOptionsConfig.Builder>
- Throws:
IOException
-
hasRedirectSiteKey
public boolean hasRedirectSiteKey()
An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
optional string redirect_site_key = 447677034;
- Specified by:
hasRedirectSiteKey
in interfaceSecurityPolicyRecaptchaOptionsConfigOrBuilder
- Returns:
- Whether the redirectSiteKey field is set.
-
getRedirectSiteKey
public String getRedirectSiteKey()
An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
optional string redirect_site_key = 447677034;
- Specified by:
getRedirectSiteKey
in interfaceSecurityPolicyRecaptchaOptionsConfigOrBuilder
- Returns:
- The redirectSiteKey.
-
getRedirectSiteKeyBytes
public com.google.protobuf.ByteString getRedirectSiteKeyBytes()
An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
optional string redirect_site_key = 447677034;
- Specified by:
getRedirectSiteKeyBytes
in interfaceSecurityPolicyRecaptchaOptionsConfigOrBuilder
- Returns:
- The bytes for redirectSiteKey.
-
setRedirectSiteKey
public SecurityPolicyRecaptchaOptionsConfig.Builder setRedirectSiteKey(String value)
An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
optional string redirect_site_key = 447677034;
- Parameters:
value
- The redirectSiteKey to set.- Returns:
- This builder for chaining.
-
clearRedirectSiteKey
public SecurityPolicyRecaptchaOptionsConfig.Builder clearRedirectSiteKey()
An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
optional string redirect_site_key = 447677034;
- Returns:
- This builder for chaining.
-
setRedirectSiteKeyBytes
public SecurityPolicyRecaptchaOptionsConfig.Builder setRedirectSiteKeyBytes(com.google.protobuf.ByteString value)
An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
optional string redirect_site_key = 447677034;
- Parameters:
value
- The bytes for redirectSiteKey to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final SecurityPolicyRecaptchaOptionsConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRecaptchaOptionsConfig.Builder>
-
mergeUnknownFields
public final SecurityPolicyRecaptchaOptionsConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyRecaptchaOptionsConfig.Builder>
-
-