Class RemoveRuleSecurityPolicyRequest.Builder (1.57.0)

public static final class RemoveRuleSecurityPolicyRequest.Builder extends GeneratedMessageV3.Builder<RemoveRuleSecurityPolicyRequest.Builder> implements RemoveRuleSecurityPolicyRequestOrBuilder

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

Protobuf type google.cloud.compute.v1.RemoveRuleSecurityPolicyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RemoveRuleSecurityPolicyRequest build()
Returns
Type Description
RemoveRuleSecurityPolicyRequest

buildPartial()

public RemoveRuleSecurityPolicyRequest buildPartial()
Returns
Type Description
RemoveRuleSecurityPolicyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPriority()

public RemoveRuleSecurityPolicyRequest.Builder clearPriority()

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

optional int32 priority = 445151652;

Returns
Type Description
RemoveRuleSecurityPolicyRequest.Builder

This builder for chaining.

clearProject()

public RemoveRuleSecurityPolicyRequest.Builder clearProject()

Project ID for this request.

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

Returns
Type Description
RemoveRuleSecurityPolicyRequest.Builder

This builder for chaining.

clearSecurityPolicy()

public RemoveRuleSecurityPolicyRequest.Builder clearSecurityPolicy()

Name of the security policy to update.

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

Returns
Type Description
RemoveRuleSecurityPolicyRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RemoveRuleSecurityPolicyRequest getDefaultInstanceForType()
Returns
Type Description
RemoveRuleSecurityPolicyRequest

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.

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(RemoveRuleSecurityPolicyRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPriority(int value)

public RemoveRuleSecurityPolicyRequest.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
RemoveRuleSecurityPolicyRequest.Builder

This builder for chaining.

setProject(String value)

public RemoveRuleSecurityPolicyRequest.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
RemoveRuleSecurityPolicyRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public RemoveRuleSecurityPolicyRequest.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
RemoveRuleSecurityPolicyRequest.Builder

This builder for chaining.

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

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

setSecurityPolicy(String value)

public RemoveRuleSecurityPolicyRequest.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
RemoveRuleSecurityPolicyRequest.Builder

This builder for chaining.

setSecurityPolicyBytes(ByteString value)

public RemoveRuleSecurityPolicyRequest.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
RemoveRuleSecurityPolicyRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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