Class RemoveRuleRegionSecurityPolicyRequest.Builder (1.63.0)

public static final class RemoveRuleRegionSecurityPolicyRequest.Builder extends GeneratedMessageV3.Builder<RemoveRuleRegionSecurityPolicyRequest.Builder> implements RemoveRuleRegionSecurityPolicyRequestOrBuilder

A request message for RegionSecurityPolicies.RemoveRule. See the method description for details.

Protobuf type google.cloud.compute.v1.RemoveRuleRegionSecurityPolicyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RemoveRuleRegionSecurityPolicyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RemoveRuleRegionSecurityPolicyRequest.Builder
Overrides

build()

public RemoveRuleRegionSecurityPolicyRequest build()
Returns
Type Description
RemoveRuleRegionSecurityPolicyRequest

buildPartial()

public RemoveRuleRegionSecurityPolicyRequest buildPartial()
Returns
Type Description
RemoveRuleRegionSecurityPolicyRequest

clear()

public RemoveRuleRegionSecurityPolicyRequest.Builder clear()
Returns
Type Description
RemoveRuleRegionSecurityPolicyRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public RemoveRuleRegionSecurityPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RemoveRuleRegionSecurityPolicyRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RemoveRuleRegionSecurityPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RemoveRuleRegionSecurityPolicyRequest.Builder
Overrides

clearPriority()

public RemoveRuleRegionSecurityPolicyRequest.Builder clearPriority()

The priority of the rule to remove from the security policy.

optional int32 priority = 445151652;

Returns
Type Description
RemoveRuleRegionSecurityPolicyRequest.Builder

This builder for chaining.

clearProject()

public RemoveRuleRegionSecurityPolicyRequest.Builder clearProject()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];

Returns
Type Description
RemoveRuleRegionSecurityPolicyRequest.Builder

This builder for chaining.

clearRegion()

public RemoveRuleRegionSecurityPolicyRequest.Builder clearRegion()

Name of the region scoping this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"];

Returns
Type Description
RemoveRuleRegionSecurityPolicyRequest.Builder

This builder for chaining.

clearSecurityPolicy()

public RemoveRuleRegionSecurityPolicyRequest.Builder clearSecurityPolicy()

Name of the security policy to update.

string security_policy = 171082513 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RemoveRuleRegionSecurityPolicyRequest.Builder

This builder for chaining.

clone()

public RemoveRuleRegionSecurityPolicyRequest.Builder clone()
Returns
Type Description
RemoveRuleRegionSecurityPolicyRequest.Builder
Overrides

getDefaultInstanceForType()

public RemoveRuleRegionSecurityPolicyRequest getDefaultInstanceForType()
Returns
Type Description
RemoveRuleRegionSecurityPolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPriority()

public int getPriority()

The priority of the rule to remove from the security policy.

optional int32 priority = 445151652;

Returns
Type Description
int

The priority.

getProject()

public String getProject()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];

Returns
Type Description
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];

Returns
Type Description
ByteString

The bytes for project.

getRegion()

public String getRegion()

Name of the region scoping this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"];

Returns
Type Description
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Name of the region scoping this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"];

Returns
Type Description
ByteString

The bytes for region.

getSecurityPolicy()

public String getSecurityPolicy()

Name of the security policy to update.

string security_policy = 171082513 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The securityPolicy.

getSecurityPolicyBytes()

public ByteString getSecurityPolicyBytes()

Name of the security policy to update.

string security_policy = 171082513 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for securityPolicy.

hasPriority()

public boolean hasPriority()

The priority of the rule to remove from the security policy.

optional int32 priority = 445151652;

Returns
Type Description
boolean

Whether the priority field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RemoveRuleRegionSecurityPolicyRequest other)

public RemoveRuleRegionSecurityPolicyRequest.Builder mergeFrom(RemoveRuleRegionSecurityPolicyRequest other)
Parameter
Name Description
other RemoveRuleRegionSecurityPolicyRequest
Returns
Type Description
RemoveRuleRegionSecurityPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RemoveRuleRegionSecurityPolicyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RemoveRuleRegionSecurityPolicyRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RemoveRuleRegionSecurityPolicyRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RemoveRuleRegionSecurityPolicyRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RemoveRuleRegionSecurityPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RemoveRuleRegionSecurityPolicyRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public RemoveRuleRegionSecurityPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RemoveRuleRegionSecurityPolicyRequest.Builder
Overrides

setPriority(int value)

public RemoveRuleRegionSecurityPolicyRequest.Builder setPriority(int value)

The priority of the rule to remove from the security policy.

optional int32 priority = 445151652;

Parameter
Name Description
value int

The priority to set.

Returns
Type Description
RemoveRuleRegionSecurityPolicyRequest.Builder

This builder for chaining.

setProject(String value)

public RemoveRuleRegionSecurityPolicyRequest.Builder setProject(String value)

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];

Parameter
Name Description
value String

The project to set.

Returns
Type Description
RemoveRuleRegionSecurityPolicyRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public RemoveRuleRegionSecurityPolicyRequest.Builder setProjectBytes(ByteString value)

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];

Parameter
Name Description
value ByteString

The bytes for project to set.

Returns
Type Description
RemoveRuleRegionSecurityPolicyRequest.Builder

This builder for chaining.

setRegion(String value)

public RemoveRuleRegionSecurityPolicyRequest.Builder setRegion(String value)

Name of the region scoping this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"];

Parameter
Name Description
value String

The region to set.

Returns
Type Description
RemoveRuleRegionSecurityPolicyRequest.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public RemoveRuleRegionSecurityPolicyRequest.Builder setRegionBytes(ByteString value)

Name of the region scoping this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"];

Parameter
Name Description
value ByteString

The bytes for region to set.

Returns
Type Description
RemoveRuleRegionSecurityPolicyRequest.Builder

This builder for chaining.

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

public RemoveRuleRegionSecurityPolicyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RemoveRuleRegionSecurityPolicyRequest.Builder
Overrides

setSecurityPolicy(String value)

public RemoveRuleRegionSecurityPolicyRequest.Builder setSecurityPolicy(String value)

Name of the security policy to update.

string security_policy = 171082513 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The securityPolicy to set.

Returns
Type Description
RemoveRuleRegionSecurityPolicyRequest.Builder

This builder for chaining.

setSecurityPolicyBytes(ByteString value)

public RemoveRuleRegionSecurityPolicyRequest.Builder setSecurityPolicyBytes(ByteString value)

Name of the security policy to update.

string security_policy = 171082513 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for securityPolicy to set.

Returns
Type Description
RemoveRuleRegionSecurityPolicyRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RemoveRuleRegionSecurityPolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RemoveRuleRegionSecurityPolicyRequest.Builder
Overrides