Class GetRuleSecurityPolicyRequest.Builder (1.53.0)

public static final class GetRuleSecurityPolicyRequest.Builder extends GeneratedMessageV3.Builder<GetRuleSecurityPolicyRequest.Builder> implements GetRuleSecurityPolicyRequestOrBuilder

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

Protobuf type google.cloud.compute.v1.GetRuleSecurityPolicyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetRuleSecurityPolicyRequest build()
Returns
Type Description
GetRuleSecurityPolicyRequest

buildPartial()

public GetRuleSecurityPolicyRequest buildPartial()
Returns
Type Description
GetRuleSecurityPolicyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPriority()

public GetRuleSecurityPolicyRequest.Builder clearPriority()

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

optional int32 priority = 445151652;

Returns
Type Description
GetRuleSecurityPolicyRequest.Builder

This builder for chaining.

clearProject()

public GetRuleSecurityPolicyRequest.Builder clearProject()

Project ID for this request.

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

Returns
Type Description
GetRuleSecurityPolicyRequest.Builder

This builder for chaining.

clearSecurityPolicy()

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetRuleSecurityPolicyRequest getDefaultInstanceForType()
Returns
Type Description
GetRuleSecurityPolicyRequest

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.

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPriority(int value)

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

This builder for chaining.

setProject(String value)

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

This builder for chaining.

setProjectBytes(ByteString value)

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

This builder for chaining.

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

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

setSecurityPolicy(String value)

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

This builder for chaining.

setSecurityPolicyBytes(ByteString value)

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

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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