Class SecurityPolicyRuleRedirectOptions.Builder (1.19.0)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SecurityPolicyRuleRedirectOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions.Builder
Overrides

build()

public SecurityPolicyRuleRedirectOptions build()
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions

buildPartial()

public SecurityPolicyRuleRedirectOptions buildPartial()
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions

clear()

public SecurityPolicyRuleRedirectOptions.Builder clear()
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SecurityPolicyRuleRedirectOptions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SecurityPolicyRuleRedirectOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions.Builder
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
TypeDescription
SecurityPolicyRuleRedirectOptions.Builder

This builder for chaining.

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
TypeDescription
SecurityPolicyRuleRedirectOptions.Builder

This builder for chaining.

clone()

public SecurityPolicyRuleRedirectOptions.Builder clone()
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions.Builder
Overrides

getDefaultInstanceForType()

public SecurityPolicyRuleRedirectOptions getDefaultInstanceForType()
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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
TypeDescription
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
TypeDescription
ByteString

The bytes for target.

getType()

public String getType()

Type of the redirect action. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for type.

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
TypeDescription
boolean

Whether the target field is set.

hasType()

public boolean hasType()

Type of the redirect action. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
TypeDescription
boolean

Whether the type field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SecurityPolicyRuleRedirectOptions other)

public SecurityPolicyRuleRedirectOptions.Builder mergeFrom(SecurityPolicyRuleRedirectOptions other)
Parameter
NameDescription
otherSecurityPolicyRuleRedirectOptions
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SecurityPolicyRuleRedirectOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SecurityPolicyRuleRedirectOptions.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SecurityPolicyRuleRedirectOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SecurityPolicyRuleRedirectOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SecurityPolicyRuleRedirectOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions.Builder
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
NameDescription
valueString

The target to set.

Returns
TypeDescription
SecurityPolicyRuleRedirectOptions.Builder

This builder for chaining.

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
NameDescription
valueByteString

The bytes for target to set.

Returns
TypeDescription
SecurityPolicyRuleRedirectOptions.Builder

This builder for chaining.

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
NameDescription
valueString

The type to set.

Returns
TypeDescription
SecurityPolicyRuleRedirectOptions.Builder

This builder for chaining.

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
NameDescription
valueByteString

The bytes for type to set.

Returns
TypeDescription
SecurityPolicyRuleRedirectOptions.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SecurityPolicyRuleRedirectOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions.Builder
Overrides