Class GetRuleRegionSecurityPolicyRequest.Builder (1.52.0)

public static final class GetRuleRegionSecurityPolicyRequest.Builder extends GeneratedMessageV3.Builder<GetRuleRegionSecurityPolicyRequest.Builder> implements GetRuleRegionSecurityPolicyRequestOrBuilder

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

Protobuf type google.cloud.compute.v1.GetRuleRegionSecurityPolicyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetRuleRegionSecurityPolicyRequest build()
Returns
Type Description
GetRuleRegionSecurityPolicyRequest

buildPartial()

public GetRuleRegionSecurityPolicyRequest buildPartial()
Returns
Type Description
GetRuleRegionSecurityPolicyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPriority()

public GetRuleRegionSecurityPolicyRequest.Builder clearPriority()

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

optional int32 priority = 445151652;

Returns
Type Description
GetRuleRegionSecurityPolicyRequest.Builder

This builder for chaining.

clearProject()

public GetRuleRegionSecurityPolicyRequest.Builder clearProject()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetRuleRegionSecurityPolicyRequest.Builder

This builder for chaining.

clearRegion()

public GetRuleRegionSecurityPolicyRequest.Builder clearRegion()

Name of the region scoping this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetRuleRegionSecurityPolicyRequest.Builder

This builder for chaining.

clearSecurityPolicy()

public GetRuleRegionSecurityPolicyRequest.Builder clearSecurityPolicy()

Name of the security policy to which the queried rule belongs.

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

Returns
Type Description
GetRuleRegionSecurityPolicyRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetRuleRegionSecurityPolicyRequest getDefaultInstanceForType()
Returns
Type Description
GetRuleRegionSecurityPolicyRequest

getDescriptorForType()

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

getPriority()

public int getPriority()

The priority of the rule to get 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];

Returns
Type Description
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

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];

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];

Returns
Type Description
ByteString

The bytes for region.

getSecurityPolicy()

public String getSecurityPolicy()

Name of the security policy to which the queried rule belongs.

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 which the queried rule belongs.

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 get 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(GetRuleRegionSecurityPolicyRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPriority(int value)

public GetRuleRegionSecurityPolicyRequest.Builder setPriority(int value)

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

optional int32 priority = 445151652;

Parameter
Name Description
value int

The priority to set.

Returns
Type Description
GetRuleRegionSecurityPolicyRequest.Builder

This builder for chaining.

setProject(String value)

public GetRuleRegionSecurityPolicyRequest.Builder setProject(String value)

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The project to set.

Returns
Type Description
GetRuleRegionSecurityPolicyRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public GetRuleRegionSecurityPolicyRequest.Builder setProjectBytes(ByteString value)

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for project to set.

Returns
Type Description
GetRuleRegionSecurityPolicyRequest.Builder

This builder for chaining.

setRegion(String value)

public GetRuleRegionSecurityPolicyRequest.Builder setRegion(String value)

Name of the region scoping this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The region to set.

Returns
Type Description
GetRuleRegionSecurityPolicyRequest.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public GetRuleRegionSecurityPolicyRequest.Builder setRegionBytes(ByteString value)

Name of the region scoping this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for region to set.

Returns
Type Description
GetRuleRegionSecurityPolicyRequest.Builder

This builder for chaining.

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

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

setSecurityPolicy(String value)

public GetRuleRegionSecurityPolicyRequest.Builder setSecurityPolicy(String value)

Name of the security policy to which the queried rule belongs.

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

Parameter
Name Description
value String

The securityPolicy to set.

Returns
Type Description
GetRuleRegionSecurityPolicyRequest.Builder

This builder for chaining.

setSecurityPolicyBytes(ByteString value)

public GetRuleRegionSecurityPolicyRequest.Builder setSecurityPolicyBytes(ByteString value)

Name of the security policy to which the queried rule belongs.

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

Parameter
Name Description
value ByteString

The bytes for securityPolicy to set.

Returns
Type Description
GetRuleRegionSecurityPolicyRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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