Class GetRuleFirewallPolicyRequest.Builder (1.37.0)

public static final class GetRuleFirewallPolicyRequest.Builder extends GeneratedMessageV3.Builder<GetRuleFirewallPolicyRequest.Builder> implements GetRuleFirewallPolicyRequestOrBuilder

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

Protobuf type google.cloud.compute.v1.GetRuleFirewallPolicyRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetRuleFirewallPolicyRequest build()
Returns
TypeDescription
GetRuleFirewallPolicyRequest

buildPartial()

public GetRuleFirewallPolicyRequest buildPartial()
Returns
TypeDescription
GetRuleFirewallPolicyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFirewallPolicy()

public GetRuleFirewallPolicyRequest.Builder clearFirewallPolicy()

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

string firewall_policy = 498173265 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
GetRuleFirewallPolicyRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPriority()

public GetRuleFirewallPolicyRequest.Builder clearPriority()

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

optional int32 priority = 445151652;

Returns
TypeDescription
GetRuleFirewallPolicyRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetRuleFirewallPolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
GetRuleFirewallPolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFirewallPolicy()

public String getFirewallPolicy()

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

string firewall_policy = 498173265 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The firewallPolicy.

getFirewallPolicyBytes()

public ByteString getFirewallPolicyBytes()

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

string firewall_policy = 498173265 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for firewallPolicy.

getPriority()

public int getPriority()

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

optional int32 priority = 445151652;

Returns
TypeDescription
int

The priority.

hasPriority()

public boolean hasPriority()

The priority of the rule to get from the firewall 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(GetRuleFirewallPolicyRequest other)

public GetRuleFirewallPolicyRequest.Builder mergeFrom(GetRuleFirewallPolicyRequest other)
Parameter
NameDescription
otherGetRuleFirewallPolicyRequest
Returns
TypeDescription
GetRuleFirewallPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFirewallPolicy(String value)

public GetRuleFirewallPolicyRequest.Builder setFirewallPolicy(String value)

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

string firewall_policy = 498173265 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The firewallPolicy to set.

Returns
TypeDescription
GetRuleFirewallPolicyRequest.Builder

This builder for chaining.

setFirewallPolicyBytes(ByteString value)

public GetRuleFirewallPolicyRequest.Builder setFirewallPolicyBytes(ByteString value)

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

string firewall_policy = 498173265 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for firewallPolicy to set.

Returns
TypeDescription
GetRuleFirewallPolicyRequest.Builder

This builder for chaining.

setPriority(int value)

public GetRuleFirewallPolicyRequest.Builder setPriority(int value)

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

optional int32 priority = 445151652;

Parameter
NameDescription
valueint

The priority to set.

Returns
TypeDescription
GetRuleFirewallPolicyRequest.Builder

This builder for chaining.

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

public GetRuleFirewallPolicyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetRuleFirewallPolicyRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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