public static final class SecurityPolicyRuleRedirectOptions.Builder extends GeneratedMessageV3.Builder<SecurityPolicyRuleRedirectOptions.Builder> implements SecurityPolicyRuleRedirectOptionsOrBuilder
Protobuf type google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
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