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