Package com.google.cloud.compute.v1
Class PatchRuleFirewallPolicyRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PatchRuleFirewallPolicyRequest.Builder>
-
- com.google.cloud.compute.v1.PatchRuleFirewallPolicyRequest.Builder
-
- All Implemented Interfaces:
PatchRuleFirewallPolicyRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PatchRuleFirewallPolicyRequest
public static final class PatchRuleFirewallPolicyRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PatchRuleFirewallPolicyRequest.Builder> implements PatchRuleFirewallPolicyRequestOrBuilder
A request message for FirewallPolicies.PatchRule. See the method description for details.
Protobuf typegoogle.cloud.compute.v1.PatchRuleFirewallPolicyRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PatchRuleFirewallPolicyRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PatchRuleFirewallPolicyRequestbuild()PatchRuleFirewallPolicyRequestbuildPartial()PatchRuleFirewallPolicyRequest.Builderclear()PatchRuleFirewallPolicyRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)PatchRuleFirewallPolicyRequest.BuilderclearFirewallPolicy()Name of the firewall policy to update.PatchRuleFirewallPolicyRequest.BuilderclearFirewallPolicyRuleResource()The body resource for this requestPatchRuleFirewallPolicyRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)PatchRuleFirewallPolicyRequest.BuilderclearPriority()The priority of the rule to patch.PatchRuleFirewallPolicyRequest.BuilderclearRequestId()An optional request ID to identify requests.PatchRuleFirewallPolicyRequest.Builderclone()PatchRuleFirewallPolicyRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetFirewallPolicy()Name of the firewall policy to update.com.google.protobuf.ByteStringgetFirewallPolicyBytes()Name of the firewall policy to update.FirewallPolicyRulegetFirewallPolicyRuleResource()The body resource for this requestFirewallPolicyRule.BuildergetFirewallPolicyRuleResourceBuilder()The body resource for this requestFirewallPolicyRuleOrBuildergetFirewallPolicyRuleResourceOrBuilder()The body resource for this requestintgetPriority()The priority of the rule to patch.StringgetRequestId()An optional request ID to identify requests.com.google.protobuf.ByteStringgetRequestIdBytes()An optional request ID to identify requests.booleanhasFirewallPolicyRuleResource()The body resource for this requestbooleanhasPriority()The priority of the rule to patch.booleanhasRequestId()An optional request ID to identify requests.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()PatchRuleFirewallPolicyRequest.BuildermergeFirewallPolicyRuleResource(FirewallPolicyRule value)The body resource for this requestPatchRuleFirewallPolicyRequest.BuildermergeFrom(PatchRuleFirewallPolicyRequest other)PatchRuleFirewallPolicyRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)PatchRuleFirewallPolicyRequest.BuildermergeFrom(com.google.protobuf.Message other)PatchRuleFirewallPolicyRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PatchRuleFirewallPolicyRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PatchRuleFirewallPolicyRequest.BuildersetFirewallPolicy(String value)Name of the firewall policy to update.PatchRuleFirewallPolicyRequest.BuildersetFirewallPolicyBytes(com.google.protobuf.ByteString value)Name of the firewall policy to update.PatchRuleFirewallPolicyRequest.BuildersetFirewallPolicyRuleResource(FirewallPolicyRule value)The body resource for this requestPatchRuleFirewallPolicyRequest.BuildersetFirewallPolicyRuleResource(FirewallPolicyRule.Builder builderForValue)The body resource for this requestPatchRuleFirewallPolicyRequest.BuildersetPriority(int value)The priority of the rule to patch.PatchRuleFirewallPolicyRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)PatchRuleFirewallPolicyRequest.BuildersetRequestId(String value)An optional request ID to identify requests.PatchRuleFirewallPolicyRequest.BuildersetRequestIdBytes(com.google.protobuf.ByteString value)An optional request ID to identify requests.PatchRuleFirewallPolicyRequest.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<PatchRuleFirewallPolicyRequest.Builder>
-
clear
public PatchRuleFirewallPolicyRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchRuleFirewallPolicyRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<PatchRuleFirewallPolicyRequest.Builder>
-
getDefaultInstanceForType
public PatchRuleFirewallPolicyRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public PatchRuleFirewallPolicyRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PatchRuleFirewallPolicyRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PatchRuleFirewallPolicyRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<PatchRuleFirewallPolicyRequest.Builder>
-
setField
public PatchRuleFirewallPolicyRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchRuleFirewallPolicyRequest.Builder>
-
clearField
public PatchRuleFirewallPolicyRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchRuleFirewallPolicyRequest.Builder>
-
clearOneof
public PatchRuleFirewallPolicyRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchRuleFirewallPolicyRequest.Builder>
-
setRepeatedField
public PatchRuleFirewallPolicyRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchRuleFirewallPolicyRequest.Builder>
-
addRepeatedField
public PatchRuleFirewallPolicyRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchRuleFirewallPolicyRequest.Builder>
-
mergeFrom
public PatchRuleFirewallPolicyRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PatchRuleFirewallPolicyRequest.Builder>
-
mergeFrom
public PatchRuleFirewallPolicyRequest.Builder mergeFrom(PatchRuleFirewallPolicyRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchRuleFirewallPolicyRequest.Builder>
-
mergeFrom
public PatchRuleFirewallPolicyRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PatchRuleFirewallPolicyRequest.Builder>- Throws:
IOException
-
getFirewallPolicy
public String getFirewallPolicy()
Name of the firewall policy to update.
string firewall_policy = 498173265 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getFirewallPolicyin interfacePatchRuleFirewallPolicyRequestOrBuilder- Returns:
- The firewallPolicy.
-
getFirewallPolicyBytes
public com.google.protobuf.ByteString getFirewallPolicyBytes()
Name of the firewall policy to update.
string firewall_policy = 498173265 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getFirewallPolicyBytesin interfacePatchRuleFirewallPolicyRequestOrBuilder- Returns:
- The bytes for firewallPolicy.
-
setFirewallPolicy
public PatchRuleFirewallPolicyRequest.Builder setFirewallPolicy(String value)
Name of the firewall policy to update.
string firewall_policy = 498173265 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The firewallPolicy to set.- Returns:
- This builder for chaining.
-
clearFirewallPolicy
public PatchRuleFirewallPolicyRequest.Builder clearFirewallPolicy()
Name of the firewall policy to update.
string firewall_policy = 498173265 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setFirewallPolicyBytes
public PatchRuleFirewallPolicyRequest.Builder setFirewallPolicyBytes(com.google.protobuf.ByteString value)
Name of the firewall policy to update.
string firewall_policy = 498173265 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for firewallPolicy to set.- Returns:
- This builder for chaining.
-
hasFirewallPolicyRuleResource
public boolean hasFirewallPolicyRuleResource()
The body resource for this request
.google.cloud.compute.v1.FirewallPolicyRule firewall_policy_rule_resource = 250523523 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasFirewallPolicyRuleResourcein interfacePatchRuleFirewallPolicyRequestOrBuilder- Returns:
- Whether the firewallPolicyRuleResource field is set.
-
getFirewallPolicyRuleResource
public FirewallPolicyRule getFirewallPolicyRuleResource()
The body resource for this request
.google.cloud.compute.v1.FirewallPolicyRule firewall_policy_rule_resource = 250523523 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getFirewallPolicyRuleResourcein interfacePatchRuleFirewallPolicyRequestOrBuilder- Returns:
- The firewallPolicyRuleResource.
-
setFirewallPolicyRuleResource
public PatchRuleFirewallPolicyRequest.Builder setFirewallPolicyRuleResource(FirewallPolicyRule value)
The body resource for this request
.google.cloud.compute.v1.FirewallPolicyRule firewall_policy_rule_resource = 250523523 [(.google.api.field_behavior) = REQUIRED];
-
setFirewallPolicyRuleResource
public PatchRuleFirewallPolicyRequest.Builder setFirewallPolicyRuleResource(FirewallPolicyRule.Builder builderForValue)
The body resource for this request
.google.cloud.compute.v1.FirewallPolicyRule firewall_policy_rule_resource = 250523523 [(.google.api.field_behavior) = REQUIRED];
-
mergeFirewallPolicyRuleResource
public PatchRuleFirewallPolicyRequest.Builder mergeFirewallPolicyRuleResource(FirewallPolicyRule value)
The body resource for this request
.google.cloud.compute.v1.FirewallPolicyRule firewall_policy_rule_resource = 250523523 [(.google.api.field_behavior) = REQUIRED];
-
clearFirewallPolicyRuleResource
public PatchRuleFirewallPolicyRequest.Builder clearFirewallPolicyRuleResource()
The body resource for this request
.google.cloud.compute.v1.FirewallPolicyRule firewall_policy_rule_resource = 250523523 [(.google.api.field_behavior) = REQUIRED];
-
getFirewallPolicyRuleResourceBuilder
public FirewallPolicyRule.Builder getFirewallPolicyRuleResourceBuilder()
The body resource for this request
.google.cloud.compute.v1.FirewallPolicyRule firewall_policy_rule_resource = 250523523 [(.google.api.field_behavior) = REQUIRED];
-
getFirewallPolicyRuleResourceOrBuilder
public FirewallPolicyRuleOrBuilder getFirewallPolicyRuleResourceOrBuilder()
The body resource for this request
.google.cloud.compute.v1.FirewallPolicyRule firewall_policy_rule_resource = 250523523 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getFirewallPolicyRuleResourceOrBuilderin interfacePatchRuleFirewallPolicyRequestOrBuilder
-
hasPriority
public boolean hasPriority()
The priority of the rule to patch.
optional int32 priority = 445151652;- Specified by:
hasPriorityin interfacePatchRuleFirewallPolicyRequestOrBuilder- Returns:
- Whether the priority field is set.
-
getPriority
public int getPriority()
The priority of the rule to patch.
optional int32 priority = 445151652;- Specified by:
getPriorityin interfacePatchRuleFirewallPolicyRequestOrBuilder- Returns:
- The priority.
-
setPriority
public PatchRuleFirewallPolicyRequest.Builder setPriority(int value)
The priority of the rule to patch.
optional int32 priority = 445151652;- Parameters:
value- The priority to set.- Returns:
- This builder for chaining.
-
clearPriority
public PatchRuleFirewallPolicyRequest.Builder clearPriority()
The priority of the rule to patch.
optional int32 priority = 445151652;- Returns:
- This builder for chaining.
-
hasRequestId
public boolean hasRequestId()
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
optional string request_id = 37109963;- Specified by:
hasRequestIdin interfacePatchRuleFirewallPolicyRequestOrBuilder- Returns:
- Whether the requestId field is set.
-
getRequestId
public String getRequestId()
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
optional string request_id = 37109963;- Specified by:
getRequestIdin interfacePatchRuleFirewallPolicyRequestOrBuilder- Returns:
- The requestId.
-
getRequestIdBytes
public com.google.protobuf.ByteString getRequestIdBytes()
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
optional string request_id = 37109963;- Specified by:
getRequestIdBytesin interfacePatchRuleFirewallPolicyRequestOrBuilder- Returns:
- The bytes for requestId.
-
setRequestId
public PatchRuleFirewallPolicyRequest.Builder setRequestId(String value)
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
optional string request_id = 37109963;- Parameters:
value- The requestId to set.- Returns:
- This builder for chaining.
-
clearRequestId
public PatchRuleFirewallPolicyRequest.Builder clearRequestId()
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
optional string request_id = 37109963;- Returns:
- This builder for chaining.
-
setRequestIdBytes
public PatchRuleFirewallPolicyRequest.Builder setRequestIdBytes(com.google.protobuf.ByteString value)
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
optional string request_id = 37109963;- Parameters:
value- The bytes for requestId to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final PatchRuleFirewallPolicyRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchRuleFirewallPolicyRequest.Builder>
-
mergeUnknownFields
public final PatchRuleFirewallPolicyRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchRuleFirewallPolicyRequest.Builder>
-
-