Class SecurityPolicyRuleRedirectOptions (1.42.0)

public final class SecurityPolicyRuleRedirectOptions extends GeneratedMessageV3 implements SecurityPolicyRuleRedirectOptionsOrBuilder

Protobuf type google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > SecurityPolicyRuleRedirectOptions

Static Fields

TARGET_FIELD_NUMBER

public static final int TARGET_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SecurityPolicyRuleRedirectOptions getDefaultInstance()
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static SecurityPolicyRuleRedirectOptions.Builder newBuilder()
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions.Builder

newBuilder(SecurityPolicyRuleRedirectOptions prototype)

public static SecurityPolicyRuleRedirectOptions.Builder newBuilder(SecurityPolicyRuleRedirectOptions prototype)
Parameter
NameDescription
prototypeSecurityPolicyRuleRedirectOptions
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions.Builder

parseDelimitedFrom(InputStream input)

public static SecurityPolicyRuleRedirectOptions parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SecurityPolicyRuleRedirectOptions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SecurityPolicyRuleRedirectOptions parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SecurityPolicyRuleRedirectOptions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SecurityPolicyRuleRedirectOptions parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SecurityPolicyRuleRedirectOptions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SecurityPolicyRuleRedirectOptions parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SecurityPolicyRuleRedirectOptions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SecurityPolicyRuleRedirectOptions parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SecurityPolicyRuleRedirectOptions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SecurityPolicyRuleRedirectOptions parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SecurityPolicyRuleRedirectOptions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SecurityPolicyRuleRedirectOptions> parser()
Returns
TypeDescription
Parser<SecurityPolicyRuleRedirectOptions>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public SecurityPolicyRuleRedirectOptions getDefaultInstanceForType()
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions

getParserForType()

public Parser<SecurityPolicyRuleRedirectOptions> getParserForType()
Returns
TypeDescription
Parser<SecurityPolicyRuleRedirectOptions>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SecurityPolicyRuleRedirectOptions.Builder newBuilderForType()
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SecurityPolicyRuleRedirectOptions.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SecurityPolicyRuleRedirectOptions.Builder toBuilder()
Returns
TypeDescription
SecurityPolicyRuleRedirectOptions.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException