public static final class Allowed.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Allowed.Builder> implements AllowedOrBuilder
Protobuf type
google.cloud.compute.v1.Allowed| Modifier and Type | Method and Description |
|---|---|
Allowed.Builder |
addAllPorts(Iterable<String> values)
An optional list of ports to which this rule applies.
|
Allowed.Builder |
addPorts(String value)
An optional list of ports to which this rule applies.
|
Allowed.Builder |
addPortsBytes(com.google.protobuf.ByteString value)
An optional list of ports to which this rule applies.
|
Allowed.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Allowed |
build() |
Allowed |
buildPartial() |
Allowed.Builder |
clear() |
Allowed.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Allowed.Builder |
clearIPProtocol()
The IP protocol to which this rule applies.
|
Allowed.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Allowed.Builder |
clearPorts()
An optional list of ports to which this rule applies.
|
Allowed.Builder |
clone() |
Allowed |
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() |
Allowed.Builder |
mergeFrom(Allowed other) |
Allowed.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Allowed.Builder |
mergeFrom(com.google.protobuf.Message other) |
Allowed.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Allowed.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Allowed.Builder |
setIPProtocol(String value)
The IP protocol to which this rule applies.
|
Allowed.Builder |
setIPProtocolBytes(com.google.protobuf.ByteString value)
The IP protocol to which this rule applies.
|
Allowed.Builder |
setPorts(int index,
String value)
An optional list of ports to which this rule applies.
|
Allowed.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Allowed.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<Allowed.Builder>public Allowed.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Allowed.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<Allowed.Builder>public Allowed getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Allowed build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Allowed buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Allowed.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Allowed.Builder>public Allowed.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<Allowed.Builder>public Allowed.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Allowed.Builder>public Allowed.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Allowed.Builder>public Allowed.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<Allowed.Builder>public Allowed.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<Allowed.Builder>public Allowed.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Allowed.Builder>public Allowed.Builder mergeFrom(Allowed other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Allowed.Builder>public Allowed.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<Allowed.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 I_p_protocol = 488094525;hasIPProtocol in interface AllowedOrBuilderpublic 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 I_p_protocol = 488094525;getIPProtocol in interface AllowedOrBuilderpublic 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 I_p_protocol = 488094525;getIPProtocolBytes in interface AllowedOrBuilderpublic Allowed.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 I_p_protocol = 488094525;value - The iPProtocol to set.public Allowed.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 I_p_protocol = 488094525;public Allowed.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 I_p_protocol = 488094525;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 the 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 AllowedOrBuilderpublic int getPortsCount()
An optional list of ports to which this rule applies. This field is only applicable for the 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 AllowedOrBuilderpublic String getPorts(int index)
An optional list of ports to which this rule applies. This field is only applicable for the 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 AllowedOrBuilderindex - 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 the 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 AllowedOrBuilderindex - The index of the value to return.public Allowed.Builder setPorts(int index, String value)
An optional list of ports to which this rule applies. This field is only applicable for the 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 Allowed.Builder addPorts(String value)
An optional list of ports to which this rule applies. This field is only applicable for the 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 Allowed.Builder addAllPorts(Iterable<String> values)
An optional list of ports to which this rule applies. This field is only applicable for the 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 Allowed.Builder clearPorts()
An optional list of ports to which this rule applies. This field is only applicable for the 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 Allowed.Builder addPortsBytes(com.google.protobuf.ByteString value)
An optional list of ports to which this rule applies. This field is only applicable for the 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 Allowed.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Allowed.Builder>public final Allowed.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Allowed.Builder>Copyright © 2023 Google LLC. All rights reserved.