Class ExternalAccessRule.IpRange

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange
All Implemented Interfaces:
ExternalAccessRule.IpRangeOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
ExternalAccessRule

public static final class ExternalAccessRule.IpRange extends com.google.protobuf.GeneratedMessage implements ExternalAccessRule.IpRangeOrBuilder
 An IP range provided in any one of the supported formats.
 
Protobuf type google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange
See Also:
  • Field Details

    • IP_ADDRESS_FIELD_NUMBER

      public static final int IP_ADDRESS_FIELD_NUMBER
      See Also:
    • IP_ADDRESS_RANGE_FIELD_NUMBER

      public static final int IP_ADDRESS_RANGE_FIELD_NUMBER
      See Also:
    • EXTERNAL_ADDRESS_FIELD_NUMBER

      public static final int EXTERNAL_ADDRESS_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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getIpRangeCase

      public ExternalAccessRule.IpRange.IpRangeCase getIpRangeCase()
      Specified by:
      getIpRangeCase in interface ExternalAccessRule.IpRangeOrBuilder
    • hasIpAddress

      public boolean hasIpAddress()
       A single IP address. For example: `10.0.0.5`.
       
      string ip_address = 1;
      Specified by:
      hasIpAddress in interface ExternalAccessRule.IpRangeOrBuilder
      Returns:
      Whether the ipAddress field is set.
    • getIpAddress

      public String getIpAddress()
       A single IP address. For example: `10.0.0.5`.
       
      string ip_address = 1;
      Specified by:
      getIpAddress in interface ExternalAccessRule.IpRangeOrBuilder
      Returns:
      The ipAddress.
    • getIpAddressBytes

      public com.google.protobuf.ByteString getIpAddressBytes()
       A single IP address. For example: `10.0.0.5`.
       
      string ip_address = 1;
      Specified by:
      getIpAddressBytes in interface ExternalAccessRule.IpRangeOrBuilder
      Returns:
      The bytes for ipAddress.
    • hasIpAddressRange

      public boolean hasIpAddressRange()
       An IP address range in the CIDR format. For example: `10.0.0.0/24`.
       
      string ip_address_range = 2;
      Specified by:
      hasIpAddressRange in interface ExternalAccessRule.IpRangeOrBuilder
      Returns:
      Whether the ipAddressRange field is set.
    • getIpAddressRange

      public String getIpAddressRange()
       An IP address range in the CIDR format. For example: `10.0.0.0/24`.
       
      string ip_address_range = 2;
      Specified by:
      getIpAddressRange in interface ExternalAccessRule.IpRangeOrBuilder
      Returns:
      The ipAddressRange.
    • getIpAddressRangeBytes

      public com.google.protobuf.ByteString getIpAddressRangeBytes()
       An IP address range in the CIDR format. For example: `10.0.0.0/24`.
       
      string ip_address_range = 2;
      Specified by:
      getIpAddressRangeBytes in interface ExternalAccessRule.IpRangeOrBuilder
      Returns:
      The bytes for ipAddressRange.
    • hasExternalAddress

      public boolean hasExternalAddress()
       The name of an `ExternalAddress` resource. The external address must
       have been reserved in the scope of this external access rule's parent
       network policy.  Provide the external address name in the form of
       `projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}`.
       For example:
       `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address`.
       
      string external_address = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      hasExternalAddress in interface ExternalAccessRule.IpRangeOrBuilder
      Returns:
      Whether the externalAddress field is set.
    • getExternalAddress

      public String getExternalAddress()
       The name of an `ExternalAddress` resource. The external address must
       have been reserved in the scope of this external access rule's parent
       network policy.  Provide the external address name in the form of
       `projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}`.
       For example:
       `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address`.
       
      string external_address = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getExternalAddress in interface ExternalAccessRule.IpRangeOrBuilder
      Returns:
      The externalAddress.
    • getExternalAddressBytes

      public com.google.protobuf.ByteString getExternalAddressBytes()
       The name of an `ExternalAddress` resource. The external address must
       have been reserved in the scope of this external access rule's parent
       network policy.  Provide the external address name in the form of
       `projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}`.
       For example:
       `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address`.
       
      string external_address = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getExternalAddressBytes in interface ExternalAccessRule.IpRangeOrBuilder
      Returns:
      The bytes for externalAddress.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ExternalAccessRule.IpRange parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ExternalAccessRule.IpRange parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ExternalAccessRule.IpRange parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ExternalAccessRule.IpRange 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.IpRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ExternalAccessRule.IpRange parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ExternalAccessRule.IpRange parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ExternalAccessRule.IpRange parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ExternalAccessRule.IpRange parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ExternalAccessRule.IpRange parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ExternalAccessRule.IpRange parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ExternalAccessRule.IpRange parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ExternalAccessRule.IpRange.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ExternalAccessRule.IpRange.Builder newBuilder()
    • newBuilder

      public static ExternalAccessRule.IpRange.Builder newBuilder(ExternalAccessRule.IpRange prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ExternalAccessRule.IpRange.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ExternalAccessRule.IpRange getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ExternalAccessRule.IpRange> parser()
    • getParserForType

      public com.google.protobuf.Parser<ExternalAccessRule.IpRange> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public ExternalAccessRule.IpRange getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder