public static final class FirewallPolicyRuleMatcherLayer4Config.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyRuleMatcherLayer4Config.Builder> implements FirewallPolicyRuleMatcherLayer4ConfigOrBuilder
Protobuf type
google.cloud.compute.v1.FirewallPolicyRuleMatcherLayer4Config| Modifier and Type | Method and Description |
|---|---|
FirewallPolicyRuleMatcherLayer4Config.Builder |
addAllPorts(Iterable<String> values)
An optional list of ports to which this rule applies.
|
FirewallPolicyRuleMatcherLayer4Config.Builder |
addPorts(String value)
An optional list of ports to which this rule applies.
|
FirewallPolicyRuleMatcherLayer4Config.Builder |
addPortsBytes(com.google.protobuf.ByteString value)
An optional list of ports to which this rule applies.
|
FirewallPolicyRuleMatcherLayer4Config.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
FirewallPolicyRuleMatcherLayer4Config |
build() |
FirewallPolicyRuleMatcherLayer4Config |
buildPartial() |
FirewallPolicyRuleMatcherLayer4Config.Builder |
clear() |
FirewallPolicyRuleMatcherLayer4Config.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
FirewallPolicyRuleMatcherLayer4Config.Builder |
clearIpProtocol()
The IP protocol to which this rule applies.
|
FirewallPolicyRuleMatcherLayer4Config.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
FirewallPolicyRuleMatcherLayer4Config.Builder |
clearPorts()
An optional list of ports to which this rule applies.
|
FirewallPolicyRuleMatcherLayer4Config.Builder |
clone() |
FirewallPolicyRuleMatcherLayer4Config |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getIpProtocol()
The IP protocol to which this rule applies.
|
com.google.protobuf.ByteString |
getIpProtocolBytes()
The IP protocol to which this rule applies.
|
String |
getPorts(int index)
An optional list of ports to which this rule applies.
|
com.google.protobuf.ByteString |
getPortsBytes(int index)
An optional list of ports to which this rule applies.
|
int |
getPortsCount()
An optional list of ports to which this rule applies.
|
com.google.protobuf.ProtocolStringList |
getPortsList()
An optional list of ports to which this rule applies.
|
boolean |
hasIpProtocol()
The IP protocol to which this rule applies.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
FirewallPolicyRuleMatcherLayer4Config.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
FirewallPolicyRuleMatcherLayer4Config.Builder |
mergeFrom(FirewallPolicyRuleMatcherLayer4Config other) |
FirewallPolicyRuleMatcherLayer4Config.Builder |
mergeFrom(com.google.protobuf.Message other) |
FirewallPolicyRuleMatcherLayer4Config.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
FirewallPolicyRuleMatcherLayer4Config.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
FirewallPolicyRuleMatcherLayer4Config.Builder |
setIpProtocol(String value)
The IP protocol to which this rule applies.
|
FirewallPolicyRuleMatcherLayer4Config.Builder |
setIpProtocolBytes(com.google.protobuf.ByteString value)
The IP protocol to which this rule applies.
|
FirewallPolicyRuleMatcherLayer4Config.Builder |
setPorts(int index,
String value)
An optional list of ports to which this rule applies.
|
FirewallPolicyRuleMatcherLayer4Config.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
FirewallPolicyRuleMatcherLayer4Config.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyRuleMatcherLayer4Config.Builder>public FirewallPolicyRuleMatcherLayer4Config.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyRuleMatcherLayer4Config.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyRuleMatcherLayer4Config.Builder>public FirewallPolicyRuleMatcherLayer4Config getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic FirewallPolicyRuleMatcherLayer4Config build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic FirewallPolicyRuleMatcherLayer4Config buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic FirewallPolicyRuleMatcherLayer4Config.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyRuleMatcherLayer4Config.Builder>public FirewallPolicyRuleMatcherLayer4Config.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyRuleMatcherLayer4Config.Builder>public FirewallPolicyRuleMatcherLayer4Config.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyRuleMatcherLayer4Config.Builder>public FirewallPolicyRuleMatcherLayer4Config.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyRuleMatcherLayer4Config.Builder>public FirewallPolicyRuleMatcherLayer4Config.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyRuleMatcherLayer4Config.Builder>public FirewallPolicyRuleMatcherLayer4Config.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyRuleMatcherLayer4Config.Builder>public FirewallPolicyRuleMatcherLayer4Config.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<FirewallPolicyRuleMatcherLayer4Config.Builder>public FirewallPolicyRuleMatcherLayer4Config.Builder mergeFrom(FirewallPolicyRuleMatcherLayer4Config other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyRuleMatcherLayer4Config.Builder>public FirewallPolicyRuleMatcherLayer4Config.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<FirewallPolicyRuleMatcherLayer4Config.Builder>IOExceptionpublic boolean hasIpProtocol()
The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number.
optional string ip_protocol = 475958960;hasIpProtocol in interface FirewallPolicyRuleMatcherLayer4ConfigOrBuilderpublic String getIpProtocol()
The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number.
optional string ip_protocol = 475958960;getIpProtocol in interface FirewallPolicyRuleMatcherLayer4ConfigOrBuilderpublic com.google.protobuf.ByteString getIpProtocolBytes()
The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number.
optional string ip_protocol = 475958960;getIpProtocolBytes in interface FirewallPolicyRuleMatcherLayer4ConfigOrBuilderpublic FirewallPolicyRuleMatcherLayer4Config.Builder setIpProtocol(String value)
The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number.
optional string ip_protocol = 475958960;value - The ipProtocol to set.public FirewallPolicyRuleMatcherLayer4Config.Builder clearIpProtocol()
The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number.
optional string ip_protocol = 475958960;public FirewallPolicyRuleMatcherLayer4Config.Builder setIpProtocolBytes(com.google.protobuf.ByteString value)
The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number.
optional string ip_protocol = 475958960;value - The bytes for ipProtocol to set.public com.google.protobuf.ProtocolStringList getPortsList()
An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"].
repeated string ports = 106854418;getPortsList in interface FirewallPolicyRuleMatcherLayer4ConfigOrBuilderpublic int getPortsCount()
An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"].
repeated string ports = 106854418;getPortsCount in interface FirewallPolicyRuleMatcherLayer4ConfigOrBuilderpublic String getPorts(int index)
An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"].
repeated string ports = 106854418;getPorts in interface FirewallPolicyRuleMatcherLayer4ConfigOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getPortsBytes(int index)
An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"].
repeated string ports = 106854418;getPortsBytes in interface FirewallPolicyRuleMatcherLayer4ConfigOrBuilderindex - The index of the value to return.public FirewallPolicyRuleMatcherLayer4Config.Builder setPorts(int index, String value)
An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"].
repeated string ports = 106854418;index - The index to set the value at.value - The ports to set.public FirewallPolicyRuleMatcherLayer4Config.Builder addPorts(String value)
An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"].
repeated string ports = 106854418;value - The ports to add.public FirewallPolicyRuleMatcherLayer4Config.Builder addAllPorts(Iterable<String> values)
An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"].
repeated string ports = 106854418;values - The ports to add.public FirewallPolicyRuleMatcherLayer4Config.Builder clearPorts()
An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"].
repeated string ports = 106854418;public FirewallPolicyRuleMatcherLayer4Config.Builder addPortsBytes(com.google.protobuf.ByteString value)
An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"].
repeated string ports = 106854418;value - The bytes of the ports to add.public final FirewallPolicyRuleMatcherLayer4Config.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyRuleMatcherLayer4Config.Builder>public final FirewallPolicyRuleMatcherLayer4Config.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FirewallPolicyRuleMatcherLayer4Config.Builder>Copyright © 2023 Google LLC. All rights reserved.