Send feedback
Class SecurityPolicyRuleRedirectOptions.Builder (1.12.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.12.0 keyboard_arrow_down
public static final class SecurityPolicyRuleRedirectOptions . Builder extends GeneratedMessageV3 . Builder<SecurityPolicyRuleRedirectOptions . Builder > implements SecurityPolicyRuleRedirectOptionsOrBuilder
Protobuf type google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SecurityPolicyRuleRedirectOptions . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public SecurityPolicyRuleRedirectOptions build ()
Returns
buildPartial()
public SecurityPolicyRuleRedirectOptions buildPartial ()
Returns
clear()
public SecurityPolicyRuleRedirectOptions . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public SecurityPolicyRuleRedirectOptions . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SecurityPolicyRuleRedirectOptions . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearTarget()
public SecurityPolicyRuleRedirectOptions . Builder clearTarget ()
Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
optional string target = 192835985;
Returns
clearType()
public SecurityPolicyRuleRedirectOptions . Builder clearType ()
Type of the redirect action.
Check the Type enum for the list of possible values.
optional string type = 3575610;
Returns
clone()
public SecurityPolicyRuleRedirectOptions . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public SecurityPolicyRuleRedirectOptions getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getTarget()
public String getTarget ()
Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
optional string target = 192835985;
Returns
Type Description String The target.
getTargetBytes()
public ByteString getTargetBytes ()
Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
optional string target = 192835985;
Returns
getType()
Type of the redirect action.
Check the Type enum for the list of possible values.
optional string type = 3575610;
Returns
Type Description String The type.
getTypeBytes()
public ByteString getTypeBytes ()
Type of the redirect action.
Check the Type enum for the list of possible values.
optional string type = 3575610;
Returns
hasTarget()
public boolean hasTarget ()
Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
optional string target = 192835985;
Returns
Type Description boolean Whether the target field is set.
hasType()
Type of the redirect action.
Check the Type enum for the list of possible values.
optional string type = 3575610;
Returns
Type Description boolean Whether the type field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(SecurityPolicyRuleRedirectOptions other)
public SecurityPolicyRuleRedirectOptions . Builder mergeFrom ( SecurityPolicyRuleRedirectOptions other )
Parameter
Returns
public SecurityPolicyRuleRedirectOptions . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SecurityPolicyRuleRedirectOptions . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SecurityPolicyRuleRedirectOptions . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public SecurityPolicyRuleRedirectOptions . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SecurityPolicyRuleRedirectOptions . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setTarget(String value)
public SecurityPolicyRuleRedirectOptions . Builder setTarget ( String value )
Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
optional string target = 192835985;
Parameter
Name Description value String
The target to set.
Returns
setTargetBytes(ByteString value)
public SecurityPolicyRuleRedirectOptions . Builder setTargetBytes ( ByteString value )
Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
optional string target = 192835985;
Parameter
Name Description value ByteString
The bytes for target to set.
Returns
setType(String value)
public SecurityPolicyRuleRedirectOptions . Builder setType ( String value )
Type of the redirect action.
Check the Type enum for the list of possible values.
optional string type = 3575610;
Parameter
Name Description value String
The type to set.
Returns
setTypeBytes(ByteString value)
public SecurityPolicyRuleRedirectOptions . Builder setTypeBytes ( ByteString value )
Type of the redirect action.
Check the Type enum for the list of possible values.
optional string type = 3575610;
Parameter
Name Description value ByteString
The bytes for type to set.
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final SecurityPolicyRuleRedirectOptions . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]