Class RemoveRuleSecurityPolicyRequest.Builder (1.11.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RemoveRuleSecurityPolicyRequest build()
Returns
TypeDescription
RemoveRuleSecurityPolicyRequest

buildPartial()

public RemoveRuleSecurityPolicyRequest buildPartial()
Returns
TypeDescription
RemoveRuleSecurityPolicyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPriority()

public RemoveRuleSecurityPolicyRequest.Builder clearPriority()

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

optional int32 priority = 445151652;

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RemoveRuleSecurityPolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
RemoveRuleSecurityPolicyRequest

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.

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

public RemoveRuleSecurityPolicyRequest.Builder mergeFrom(RemoveRuleSecurityPolicyRequest other)
Parameter
NameDescription
otherRemoveRuleSecurityPolicyRequest
Returns
TypeDescription
RemoveRuleSecurityPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The priority to set.

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

The project to set.

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

The bytes for project to set.

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

The securityPolicy to set.

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

The bytes for securityPolicy to set.

Returns
TypeDescription
RemoveRuleSecurityPolicyRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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