Class GetRuleRegionSecurityPolicyRequest.Builder (1.51.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetRuleRegionSecurityPolicyRequest build()
Returns
TypeDescription
GetRuleRegionSecurityPolicyRequest

buildPartial()

public GetRuleRegionSecurityPolicyRequest buildPartial()
Returns
TypeDescription
GetRuleRegionSecurityPolicyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPriority()

public GetRuleRegionSecurityPolicyRequest.Builder clearPriority()

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

optional int32 priority = 445151652;

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetRuleRegionSecurityPolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
GetRuleRegionSecurityPolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPriority()

public int getPriority()

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

Returns
TypeDescription
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Project ID for this request.

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

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

Returns
TypeDescription
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Name of the region scoping this request.

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

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

public GetRuleRegionSecurityPolicyRequest.Builder mergeFrom(GetRuleRegionSecurityPolicyRequest other)
Parameter
NameDescription
otherGetRuleRegionSecurityPolicyRequest
Returns
TypeDescription
GetRuleRegionSecurityPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The priority to set.

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

The project to set.

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

The bytes for project to set.

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

The region to set.

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

The bytes for region to set.

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

The securityPolicy to set.

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

The bytes for securityPolicy to set.

Returns
TypeDescription
GetRuleRegionSecurityPolicyRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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