Class RemoveRuleRegionSecurityPolicyRequest.Builder (1.50.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RemoveRuleRegionSecurityPolicyRequest build()
Returns
TypeDescription
RemoveRuleRegionSecurityPolicyRequest

buildPartial()

public RemoveRuleRegionSecurityPolicyRequest buildPartial()
Returns
TypeDescription
RemoveRuleRegionSecurityPolicyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public RemoveRuleRegionSecurityPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RemoveRuleRegionSecurityPolicyRequest.Builder
Overrides

clearPriority()

public RemoveRuleRegionSecurityPolicyRequest.Builder clearPriority()

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

optional int32 priority = 445151652;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
RemoveRuleRegionSecurityPolicyRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RemoveRuleRegionSecurityPolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
RemoveRuleRegionSecurityPolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPriority()

public int getPriority()

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

optional int32 priority = 445151652;

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

The securityPolicy.

getSecurityPolicyBytes()

public ByteString getSecurityPolicyBytes()

Name of the security policy to update.

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

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

Whether the priority field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RemoveRuleRegionSecurityPolicyRequest other)

public RemoveRuleRegionSecurityPolicyRequest.Builder mergeFrom(RemoveRuleRegionSecurityPolicyRequest other)
Parameter
NameDescription
otherRemoveRuleRegionSecurityPolicyRequest
Returns
TypeDescription
RemoveRuleRegionSecurityPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public RemoveRuleRegionSecurityPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The priority to set.

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

The project to set.

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

The bytes for project to set.

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

The region to set.

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

The bytes for region to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The securityPolicy to set.

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

The bytes for securityPolicy to set.

Returns
TypeDescription
RemoveRuleRegionSecurityPolicyRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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