public static final class CreateGatewaySecurityPolicyRuleRequest.Builder extends GeneratedMessage.Builder<CreateGatewaySecurityPolicyRuleRequest.Builder> implements CreateGatewaySecurityPolicyRuleRequestOrBuilderMethods for GatewaySecurityPolicy RULES/GatewaySecurityPolicyRules. Request used by the CreateGatewaySecurityPolicyRule method.
Protobuf type google.cloud.networksecurity.v1.CreateGatewaySecurityPolicyRuleRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CreateGatewaySecurityPolicyRuleRequest.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CreateGatewaySecurityPolicyRuleRequest build()| Returns | |
|---|---|
| Type | Description |
CreateGatewaySecurityPolicyRuleRequest |
|
buildPartial()
public CreateGatewaySecurityPolicyRuleRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
CreateGatewaySecurityPolicyRuleRequest |
|
clear()
public CreateGatewaySecurityPolicyRuleRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
CreateGatewaySecurityPolicyRuleRequest.Builder |
|
clearGatewaySecurityPolicyRule()
public CreateGatewaySecurityPolicyRuleRequest.Builder clearGatewaySecurityPolicyRule()Required. The rule to be created.
.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CreateGatewaySecurityPolicyRuleRequest.Builder |
|
clearGatewaySecurityPolicyRuleId()
public CreateGatewaySecurityPolicyRuleRequest.Builder clearGatewaySecurityPolicyRuleId()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 |
CreateGatewaySecurityPolicyRuleRequest.Builder |
This builder for chaining. |
clearParent()
public CreateGatewaySecurityPolicyRuleRequest.Builder clearParent()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 |
CreateGatewaySecurityPolicyRuleRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public CreateGatewaySecurityPolicyRuleRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CreateGatewaySecurityPolicyRuleRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
getGatewaySecurityPolicyRuleBuilder()
public GatewaySecurityPolicyRule.Builder getGatewaySecurityPolicyRuleBuilder()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.Builder |
|
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CreateGatewaySecurityPolicyRuleRequest other)
public CreateGatewaySecurityPolicyRuleRequest.Builder mergeFrom(CreateGatewaySecurityPolicyRuleRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
CreateGatewaySecurityPolicyRuleRequest |
| Returns | |
|---|---|
| Type | Description |
CreateGatewaySecurityPolicyRuleRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateGatewaySecurityPolicyRuleRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CreateGatewaySecurityPolicyRuleRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CreateGatewaySecurityPolicyRuleRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CreateGatewaySecurityPolicyRuleRequest.Builder |
|
mergeGatewaySecurityPolicyRule(GatewaySecurityPolicyRule value)
public CreateGatewaySecurityPolicyRuleRequest.Builder mergeGatewaySecurityPolicyRule(GatewaySecurityPolicyRule value)Required. The rule to be created.
.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
GatewaySecurityPolicyRule |
| Returns | |
|---|---|
| Type | Description |
CreateGatewaySecurityPolicyRuleRequest.Builder |
|
setGatewaySecurityPolicyRule(GatewaySecurityPolicyRule value)
public CreateGatewaySecurityPolicyRuleRequest.Builder setGatewaySecurityPolicyRule(GatewaySecurityPolicyRule value)Required. The rule to be created.
.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
GatewaySecurityPolicyRule |
| Returns | |
|---|---|
| Type | Description |
CreateGatewaySecurityPolicyRuleRequest.Builder |
|
setGatewaySecurityPolicyRule(GatewaySecurityPolicyRule.Builder builderForValue)
public CreateGatewaySecurityPolicyRuleRequest.Builder setGatewaySecurityPolicyRule(GatewaySecurityPolicyRule.Builder builderForValue)Required. The rule to be created.
.google.cloud.networksecurity.v1.GatewaySecurityPolicyRule gateway_security_policy_rule = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
GatewaySecurityPolicyRule.Builder |
| Returns | |
|---|---|
| Type | Description |
CreateGatewaySecurityPolicyRuleRequest.Builder |
|
setGatewaySecurityPolicyRuleId(String value)
public CreateGatewaySecurityPolicyRuleRequest.Builder setGatewaySecurityPolicyRuleId(String value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe gatewaySecurityPolicyRuleId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateGatewaySecurityPolicyRuleRequest.Builder |
This builder for chaining. |
setGatewaySecurityPolicyRuleIdBytes(ByteString value)
public CreateGatewaySecurityPolicyRuleRequest.Builder setGatewaySecurityPolicyRuleIdBytes(ByteString value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for gatewaySecurityPolicyRuleId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateGatewaySecurityPolicyRuleRequest.Builder |
This builder for chaining. |
setParent(String value)
public CreateGatewaySecurityPolicyRuleRequest.Builder setParent(String value)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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateGatewaySecurityPolicyRuleRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public CreateGatewaySecurityPolicyRuleRequest.Builder setParentBytes(ByteString value)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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateGatewaySecurityPolicyRuleRequest.Builder |
This builder for chaining. |