Class CreateGatewaySecurityPolicyRuleRequest (0.94.0)

public final class CreateGatewaySecurityPolicyRuleRequest extends GeneratedMessage implements CreateGatewaySecurityPolicyRuleRequestOrBuilder

Methods for GatewaySecurityPolicy RULES/GatewaySecurityPolicyRules. Request used by the CreateGatewaySecurityPolicyRule method.

Protobuf type google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > CreateGatewaySecurityPolicyRuleRequest

Static Fields

GATEWAY_SECURITY_POLICY_RULE_FIELD_NUMBER

public static final int GATEWAY_SECURITY_POLICY_RULE_FIELD_NUMBER
Field Value
Type Description
int

GATEWAY_SECURITY_POLICY_RULE_ID_FIELD_NUMBER

public static final int GATEWAY_SECURITY_POLICY_RULE_ID_FIELD_NUMBER
Field Value
Type Description
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CreateGatewaySecurityPolicyRuleRequest getDefaultInstance()
Returns
Type Description
CreateGatewaySecurityPolicyRuleRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static CreateGatewaySecurityPolicyRuleRequest.Builder newBuilder()
Returns
Type Description
CreateGatewaySecurityPolicyRuleRequest.Builder

newBuilder(CreateGatewaySecurityPolicyRuleRequest prototype)

public static CreateGatewaySecurityPolicyRuleRequest.Builder newBuilder(CreateGatewaySecurityPolicyRuleRequest prototype)
Parameter
Name Description
prototype CreateGatewaySecurityPolicyRuleRequest
Returns
Type Description
CreateGatewaySecurityPolicyRuleRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateGatewaySecurityPolicyRuleRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateGatewaySecurityPolicyRuleRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateGatewaySecurityPolicyRuleRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateGatewaySecurityPolicyRuleRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CreateGatewaySecurityPolicyRuleRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CreateGatewaySecurityPolicyRuleRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateGatewaySecurityPolicyRuleRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateGatewaySecurityPolicyRuleRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateGatewaySecurityPolicyRuleRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CreateGatewaySecurityPolicyRuleRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateGatewaySecurityPolicyRuleRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateGatewaySecurityPolicyRuleRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateGatewaySecurityPolicyRuleRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CreateGatewaySecurityPolicyRuleRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateGatewaySecurityPolicyRuleRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateGatewaySecurityPolicyRuleRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CreateGatewaySecurityPolicyRuleRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateGatewaySecurityPolicyRuleRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateGatewaySecurityPolicyRuleRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateGatewaySecurityPolicyRuleRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CreateGatewaySecurityPolicyRuleRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CreateGatewaySecurityPolicyRuleRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateGatewaySecurityPolicyRuleRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateGatewaySecurityPolicyRuleRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CreateGatewaySecurityPolicyRuleRequest> parser()
Returns
Type Description
Parser<CreateGatewaySecurityPolicyRuleRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public CreateGatewaySecurityPolicyRuleRequest getDefaultInstanceForType()
Returns
Type Description
CreateGatewaySecurityPolicyRuleRequest

getGatewaySecurityPolicyRule()

public GatewaySecurityPolicyRule getGatewaySecurityPolicyRule()

Required. The rule to be created.

.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GatewaySecurityPolicyRule

The gatewaySecurityPolicyRule.

getGatewaySecurityPolicyRuleId()

public String getGatewaySecurityPolicyRuleId()

The ID to use for the rule, which will become the final component of the rule's resource name. This value should be 4-63 characters, and valid characters are /a-z-/.

string gateway_security_policy_rule_id = 3;

Returns
Type Description
String

The gatewaySecurityPolicyRuleId.

getGatewaySecurityPolicyRuleIdBytes()

public ByteString getGatewaySecurityPolicyRuleIdBytes()

The ID to use for the rule, which will become the final component of the rule's resource name. This value should be 4-63 characters, and valid characters are /a-z-/.

string gateway_security_policy_rule_id = 3;

Returns
Type Description
ByteString

The bytes for gatewaySecurityPolicyRuleId.

getGatewaySecurityPolicyRuleOrBuilder()

public GatewaySecurityPolicyRuleOrBuilder getGatewaySecurityPolicyRuleOrBuilder()

Required. The rule to be created.

.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GatewaySecurityPolicyRuleOrBuilder

getParent()

public String getParent()

Required. The parent where this rule will be created. Format : projects/{project}/location/{location}/gatewaySecurityPolicies/*

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent where this rule will be created. Format : projects/{project}/location/{location}/gatewaySecurityPolicies/*

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getParserForType()

public Parser<CreateGatewaySecurityPolicyRuleRequest> getParserForType()
Returns
Type Description
Parser<CreateGatewaySecurityPolicyRuleRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasGatewaySecurityPolicyRule()

public boolean hasGatewaySecurityPolicyRule()

Required. The rule to be created.

.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the gatewaySecurityPolicyRule field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CreateGatewaySecurityPolicyRuleRequest.Builder newBuilderForType()
Returns
Type Description
CreateGatewaySecurityPolicyRuleRequest.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected CreateGatewaySecurityPolicyRuleRequest.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CreateGatewaySecurityPolicyRuleRequest.Builder
Overrides

toBuilder()

public CreateGatewaySecurityPolicyRuleRequest.Builder toBuilder()
Returns
Type Description
CreateGatewaySecurityPolicyRuleRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException