Class GetRuleSecurityPolicyRequest.Builder (1.39.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetRuleSecurityPolicyRequest build()
Returns
TypeDescription
GetRuleSecurityPolicyRequest

buildPartial()

public GetRuleSecurityPolicyRequest buildPartial()
Returns
TypeDescription
GetRuleSecurityPolicyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPriority()

public GetRuleSecurityPolicyRequest.Builder clearPriority()

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

optional int32 priority = 445151652;

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetRuleSecurityPolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
GetRuleSecurityPolicyRequest

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.

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

public GetRuleSecurityPolicyRequest.Builder mergeFrom(GetRuleSecurityPolicyRequest other)
Parameter
NameDescription
otherGetRuleSecurityPolicyRequest
Returns
TypeDescription
GetRuleSecurityPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The priority to set.

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

The project to set.

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

The bytes for project to set.

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

The securityPolicy to set.

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

The bytes for securityPolicy to set.

Returns
TypeDescription
GetRuleSecurityPolicyRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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