Package com.google.cloud.vmwareengine.v1
Class ExternalAccessRule
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.vmwareengine.v1.ExternalAccessRule
- All Implemented Interfaces:
ExternalAccessRuleOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class ExternalAccessRule
extends com.google.protobuf.GeneratedMessage
implements ExternalAccessRuleOrBuilder
External access firewall rules for filtering incoming traffic destined to `ExternalAddress` resources.Protobuf type
google.cloud.vmwareengine.v1.ExternalAccessRule- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAction determines whether the external access rule permits or blocks traffic, subject to the other components of the rule matching the traffic.static final classExternal access firewall rules for filtering incoming traffic destined to `ExternalAddress` resources.static final classAn IP range provided in any one of the supported formats.static interfacestatic enumDefines possible states of external access firewall rules.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe action that the external access rule performs.intThe action that the external access rule performs.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static ExternalAccessRuleUser-provided description for this external access rule.com.google.protobuf.ByteStringUser-provided description for this external access rule.static final com.google.protobuf.Descriptors.DescriptorgetDestinationIpRanges(int index) If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges.intIf destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges.If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges.getDestinationIpRangesOrBuilder(int index) If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges.List<? extends ExternalAccessRule.IpRangeOrBuilder>If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges.getDestinationPorts(int index) A list of destination ports to which the external access rule applies.com.google.protobuf.ByteStringgetDestinationPortsBytes(int index) A list of destination ports to which the external access rule applies.intA list of destination ports to which the external access rule applies.com.google.protobuf.ProtocolStringListA list of destination ports to which the external access rule applies.The IP protocol to which the external access rule applies.com.google.protobuf.ByteStringThe IP protocol to which the external access rule applies.getName()Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.Parser<ExternalAccessRule>intExternal access rule priority, which determines the external access rule to use when multiple rules apply.intgetSourceIpRanges(int index) If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges.intIf source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges.If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges.getSourceIpRangesOrBuilder(int index) If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges.List<? extends ExternalAccessRule.IpRangeOrBuilder>If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges.getSourcePorts(int index) A list of source ports to which the external access rule applies.com.google.protobuf.ByteStringgetSourcePortsBytes(int index) A list of source ports to which the external access rule applies.intA list of source ports to which the external access rule applies.com.google.protobuf.ProtocolStringListA list of source ports to which the external access rule applies.getState()Output only.intOutput only.getUid()Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.inthashCode()booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic ExternalAccessRule.Builderstatic ExternalAccessRule.BuildernewBuilder(ExternalAccessRule prototype) protected ExternalAccessRule.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ExternalAccessRuleparseDelimitedFrom(InputStream input) static ExternalAccessRuleparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ExternalAccessRuleparseFrom(byte[] data) static ExternalAccessRuleparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ExternalAccessRuleparseFrom(com.google.protobuf.ByteString data) static ExternalAccessRuleparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ExternalAccessRuleparseFrom(com.google.protobuf.CodedInputStream input) static ExternalAccessRuleparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ExternalAccessRuleparseFrom(InputStream input) static ExternalAccessRuleparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ExternalAccessRuleparseFrom(ByteBuffer data) static ExternalAccessRuleparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ExternalAccessRule>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
PRIORITY_FIELD_NUMBER
public static final int PRIORITY_FIELD_NUMBER- See Also:
-
ACTION_FIELD_NUMBER
public static final int ACTION_FIELD_NUMBER- See Also:
-
IP_PROTOCOL_FIELD_NUMBER
public static final int IP_PROTOCOL_FIELD_NUMBER- See Also:
-
SOURCE_IP_RANGES_FIELD_NUMBER
public static final int SOURCE_IP_RANGES_FIELD_NUMBER- See Also:
-
SOURCE_PORTS_FIELD_NUMBER
public static final int SOURCE_PORTS_FIELD_NUMBER- See Also:
-
DESTINATION_IP_RANGES_FIELD_NUMBER
public static final int DESTINATION_IP_RANGES_FIELD_NUMBER- See Also:
-
DESTINATION_PORTS_FIELD_NUMBER
public static final int DESTINATION_PORTS_FIELD_NUMBER- See Also:
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER- See Also:
-
UID_FIELD_NUMBER
public static final int UID_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getName
Output only. The resource name of this external access rule. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: `projects/my-project/locations/us-central1/networkPolicies/my-policy/externalAccessRules/my-rule`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceExternalAccessRuleOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Output only. The resource name of this external access rule. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: `projects/my-project/locations/us-central1/networkPolicies/my-policy/externalAccessRules/my-rule`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceExternalAccessRuleOrBuilder- Returns:
- The bytes for name.
-
hasCreateTime
public boolean hasCreateTime()Output only. Creation time of this resource.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceExternalAccessRuleOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. Creation time of this resource.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceExternalAccessRuleOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. Creation time of this resource.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceExternalAccessRuleOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. Last update time of this resource.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceExternalAccessRuleOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. Last update time of this resource.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceExternalAccessRuleOrBuilder- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. Last update time of this resource.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceExternalAccessRuleOrBuilder
-
getDescription
User-provided description for this external access rule.
string description = 5;- Specified by:
getDescriptionin interfaceExternalAccessRuleOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()User-provided description for this external access rule.
string description = 5;- Specified by:
getDescriptionBytesin interfaceExternalAccessRuleOrBuilder- Returns:
- The bytes for description.
-
getPriority
public int getPriority()External access rule priority, which determines the external access rule to use when multiple rules apply. If multiple rules have the same priority, their ordering is non-deterministic. If specific ordering is required, assign unique priorities to enforce such ordering. The external access rule priority is an integer from 100 to 4096, both inclusive. Lower integers indicate higher precedence. For example, a rule with priority `100` has higher precedence than a rule with priority `101`.
int32 priority = 6;- Specified by:
getPriorityin interfaceExternalAccessRuleOrBuilder- Returns:
- The priority.
-
getActionValue
public int getActionValue()The action that the external access rule performs.
.google.cloud.vmwareengine.v1.ExternalAccessRule.Action action = 7;- Specified by:
getActionValuein interfaceExternalAccessRuleOrBuilder- Returns:
- The enum numeric value on the wire for action.
-
getAction
The action that the external access rule performs.
.google.cloud.vmwareengine.v1.ExternalAccessRule.Action action = 7;- Specified by:
getActionin interfaceExternalAccessRuleOrBuilder- Returns:
- The action.
-
getIpProtocol
The IP protocol to which the external access rule applies. This value can be one of the following three protocol strings (not case-sensitive): `tcp`, `udp`, or `icmp`.
string ip_protocol = 8;- Specified by:
getIpProtocolin interfaceExternalAccessRuleOrBuilder- Returns:
- The ipProtocol.
-
getIpProtocolBytes
public com.google.protobuf.ByteString getIpProtocolBytes()The IP protocol to which the external access rule applies. This value can be one of the following three protocol strings (not case-sensitive): `tcp`, `udp`, or `icmp`.
string ip_protocol = 8;- Specified by:
getIpProtocolBytesin interfaceExternalAccessRuleOrBuilder- Returns:
- The bytes for ipProtocol.
-
getSourceIpRangesList
If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported, `ExternalAddress` resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify `0.0.0.0/0`.
repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9;- Specified by:
getSourceIpRangesListin interfaceExternalAccessRuleOrBuilder
-
getSourceIpRangesOrBuilderList
If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported, `ExternalAddress` resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify `0.0.0.0/0`.
repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9;- Specified by:
getSourceIpRangesOrBuilderListin interfaceExternalAccessRuleOrBuilder
-
getSourceIpRangesCount
public int getSourceIpRangesCount()If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported, `ExternalAddress` resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify `0.0.0.0/0`.
repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9;- Specified by:
getSourceIpRangesCountin interfaceExternalAccessRuleOrBuilder
-
getSourceIpRanges
If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported, `ExternalAddress` resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify `0.0.0.0/0`.
repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9;- Specified by:
getSourceIpRangesin interfaceExternalAccessRuleOrBuilder
-
getSourceIpRangesOrBuilder
If source ranges are specified, the external access rule applies only to traffic that has a source IP address in these ranges. These ranges can either be expressed in the CIDR format or as an IP address. As only inbound rules are supported, `ExternalAddress` resources cannot be the source IP addresses of an external access rule. To match all source addresses, specify `0.0.0.0/0`.
repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange source_ip_ranges = 9;- Specified by:
getSourceIpRangesOrBuilderin interfaceExternalAccessRuleOrBuilder
-
getSourcePortsList
public com.google.protobuf.ProtocolStringList getSourcePortsList()A list of source ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: `["22"]`, `["80","443"]`, or `["12345-12349"]`. To match all source ports, specify `["0-65535"]`.
repeated string source_ports = 10;- Specified by:
getSourcePortsListin interfaceExternalAccessRuleOrBuilder- Returns:
- A list containing the sourcePorts.
-
getSourcePortsCount
public int getSourcePortsCount()A list of source ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: `["22"]`, `["80","443"]`, or `["12345-12349"]`. To match all source ports, specify `["0-65535"]`.
repeated string source_ports = 10;- Specified by:
getSourcePortsCountin interfaceExternalAccessRuleOrBuilder- Returns:
- The count of sourcePorts.
-
getSourcePorts
A list of source ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: `["22"]`, `["80","443"]`, or `["12345-12349"]`. To match all source ports, specify `["0-65535"]`.
repeated string source_ports = 10;- Specified by:
getSourcePortsin interfaceExternalAccessRuleOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The sourcePorts at the given index.
-
getSourcePortsBytes
public com.google.protobuf.ByteString getSourcePortsBytes(int index) A list of source ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: `["22"]`, `["80","443"]`, or `["12345-12349"]`. To match all source ports, specify `["0-65535"]`.
repeated string source_ports = 10;- Specified by:
getSourcePortsBytesin interfaceExternalAccessRuleOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the sourcePorts at the given index.
-
getDestinationIpRangesList
If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify `0.0.0.0/0`. To match a specific external IP address, specify it using the `IpRange.external_address` property.
repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11;- Specified by:
getDestinationIpRangesListin interfaceExternalAccessRuleOrBuilder
-
getDestinationIpRangesOrBuilderList
If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify `0.0.0.0/0`. To match a specific external IP address, specify it using the `IpRange.external_address` property.
repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11;- Specified by:
getDestinationIpRangesOrBuilderListin interfaceExternalAccessRuleOrBuilder
-
getDestinationIpRangesCount
public int getDestinationIpRangesCount()If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify `0.0.0.0/0`. To match a specific external IP address, specify it using the `IpRange.external_address` property.
repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11;- Specified by:
getDestinationIpRangesCountin interfaceExternalAccessRuleOrBuilder
-
getDestinationIpRanges
If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify `0.0.0.0/0`. To match a specific external IP address, specify it using the `IpRange.external_address` property.
repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11;- Specified by:
getDestinationIpRangesin interfaceExternalAccessRuleOrBuilder
-
getDestinationIpRangesOrBuilder
If destination ranges are specified, the external access rule applies only to the traffic that has a destination IP address in these ranges. The specified IP addresses must have reserved external IP addresses in the scope of the parent network policy. To match all external IP addresses in the scope of the parent network policy, specify `0.0.0.0/0`. To match a specific external IP address, specify it using the `IpRange.external_address` property.
repeated .google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange destination_ip_ranges = 11;- Specified by:
getDestinationIpRangesOrBuilderin interfaceExternalAccessRuleOrBuilder
-
getDestinationPortsList
public com.google.protobuf.ProtocolStringList getDestinationPortsList()A list of destination ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: `["22"]`, `["80","443"]`, or `["12345-12349"]`. To match all destination ports, specify `["0-65535"]`.
repeated string destination_ports = 12;- Specified by:
getDestinationPortsListin interfaceExternalAccessRuleOrBuilder- Returns:
- A list containing the destinationPorts.
-
getDestinationPortsCount
public int getDestinationPortsCount()A list of destination ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: `["22"]`, `["80","443"]`, or `["12345-12349"]`. To match all destination ports, specify `["0-65535"]`.
repeated string destination_ports = 12;- Specified by:
getDestinationPortsCountin interfaceExternalAccessRuleOrBuilder- Returns:
- The count of destinationPorts.
-
getDestinationPorts
A list of destination ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: `["22"]`, `["80","443"]`, or `["12345-12349"]`. To match all destination ports, specify `["0-65535"]`.
repeated string destination_ports = 12;- Specified by:
getDestinationPortsin interfaceExternalAccessRuleOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The destinationPorts at the given index.
-
getDestinationPortsBytes
public com.google.protobuf.ByteString getDestinationPortsBytes(int index) A list of destination ports to which the external access rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. For example: `["22"]`, `["80","443"]`, or `["12345-12349"]`. To match all destination ports, specify `["0-65535"]`.
repeated string destination_ports = 12;- Specified by:
getDestinationPortsBytesin interfaceExternalAccessRuleOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the destinationPorts at the given index.
-
getStateValue
public int getStateValue()Output only. The state of the resource.
.google.cloud.vmwareengine.v1.ExternalAccessRule.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfaceExternalAccessRuleOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
getState
Output only. The state of the resource.
.google.cloud.vmwareengine.v1.ExternalAccessRule.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceExternalAccessRuleOrBuilder- Returns:
- The state.
-
getUid
Output only. System-generated unique identifier for the resource.
string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUidin interfaceExternalAccessRuleOrBuilder- Returns:
- The uid.
-
getUidBytes
public com.google.protobuf.ByteString getUidBytes()Output only. System-generated unique identifier for the resource.
string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUidBytesin interfaceExternalAccessRuleOrBuilder- Returns:
- The bytes for uid.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ExternalAccessRule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExternalAccessRule parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExternalAccessRule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExternalAccessRule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExternalAccessRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExternalAccessRule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ExternalAccessRule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ExternalAccessRule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ExternalAccessRule parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ExternalAccessRule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ExternalAccessRule.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-