Class NetworkPolicy

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.vmwareengine.v1.NetworkPolicy
All Implemented Interfaces:
NetworkPolicyOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class NetworkPolicy extends com.google.protobuf.GeneratedMessage implements NetworkPolicyOrBuilder
 Represents a network policy resource. Network policies are regional
 resources. You can use a network policy to enable or disable internet access
 and external IP access. Network policies are associated with a VMware Engine
 network, which might span across regions. For a given region, a network
 policy applies to all private clouds in the VMware Engine network associated
 with the policy.
 
Protobuf type google.cloud.vmwareengine.v1.NetworkPolicy
See Also:
  • 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:
    • INTERNET_ACCESS_FIELD_NUMBER

      public static final int INTERNET_ACCESS_FIELD_NUMBER
      See Also:
    • EXTERNAL_IP_FIELD_NUMBER

      public static final int EXTERNAL_IP_FIELD_NUMBER
      See Also:
    • EDGE_SERVICES_CIDR_FIELD_NUMBER

      public static final int EDGE_SERVICES_CIDR_FIELD_NUMBER
      See Also:
    • UID_FIELD_NUMBER

      public static final int UID_FIELD_NUMBER
      See Also:
    • VMWARE_ENGINE_NETWORK_FIELD_NUMBER

      public static final int VMWARE_ENGINE_NETWORK_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • VMWARE_ENGINE_NETWORK_CANONICAL_FIELD_NUMBER

      public static final int VMWARE_ENGINE_NETWORK_CANONICAL_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
    • getName

      public String getName()
       Output only. The resource name of this network policy.
       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-network-policy`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface NetworkPolicyOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The resource name of this network policy.
       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-network-policy`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface NetworkPolicyOrBuilder
      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:
      hasCreateTime in interface NetworkPolicyOrBuilder
      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:
      getCreateTime in interface NetworkPolicyOrBuilder
      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:
      getCreateTimeOrBuilder in interface NetworkPolicyOrBuilder
    • 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:
      hasUpdateTime in interface NetworkPolicyOrBuilder
      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:
      getUpdateTime in interface NetworkPolicyOrBuilder
      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:
      getUpdateTimeOrBuilder in interface NetworkPolicyOrBuilder
    • hasInternetAccess

      public boolean hasInternetAccess()
       Network service that allows VMware workloads to access the internet.
       
      .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6;
      Specified by:
      hasInternetAccess in interface NetworkPolicyOrBuilder
      Returns:
      Whether the internetAccess field is set.
    • getInternetAccess

      public NetworkPolicy.NetworkService getInternetAccess()
       Network service that allows VMware workloads to access the internet.
       
      .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6;
      Specified by:
      getInternetAccess in interface NetworkPolicyOrBuilder
      Returns:
      The internetAccess.
    • getInternetAccessOrBuilder

      public NetworkPolicy.NetworkServiceOrBuilder getInternetAccessOrBuilder()
       Network service that allows VMware workloads to access the internet.
       
      .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6;
      Specified by:
      getInternetAccessOrBuilder in interface NetworkPolicyOrBuilder
    • hasExternalIp

      public boolean hasExternalIp()
       Network service that allows External IP addresses to be assigned to VMware
       workloads. This service can only be enabled when `internet_access` is also
       enabled.
       
      .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService external_ip = 7;
      Specified by:
      hasExternalIp in interface NetworkPolicyOrBuilder
      Returns:
      Whether the externalIp field is set.
    • getExternalIp

      public NetworkPolicy.NetworkService getExternalIp()
       Network service that allows External IP addresses to be assigned to VMware
       workloads. This service can only be enabled when `internet_access` is also
       enabled.
       
      .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService external_ip = 7;
      Specified by:
      getExternalIp in interface NetworkPolicyOrBuilder
      Returns:
      The externalIp.
    • getExternalIpOrBuilder

      public NetworkPolicy.NetworkServiceOrBuilder getExternalIpOrBuilder()
       Network service that allows External IP addresses to be assigned to VMware
       workloads. This service can only be enabled when `internet_access` is also
       enabled.
       
      .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService external_ip = 7;
      Specified by:
      getExternalIpOrBuilder in interface NetworkPolicyOrBuilder
    • getEdgeServicesCidr

      public String getEdgeServicesCidr()
       Required. IP address range in CIDR notation used to create internet access
       and external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is
       required. The range cannot overlap with any prefixes either in the consumer
       VPC network or in use by the private clouds attached to that VPC network.
       
      string edge_services_cidr = 9 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEdgeServicesCidr in interface NetworkPolicyOrBuilder
      Returns:
      The edgeServicesCidr.
    • getEdgeServicesCidrBytes

      public com.google.protobuf.ByteString getEdgeServicesCidrBytes()
       Required. IP address range in CIDR notation used to create internet access
       and external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is
       required. The range cannot overlap with any prefixes either in the consumer
       VPC network or in use by the private clouds attached to that VPC network.
       
      string edge_services_cidr = 9 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEdgeServicesCidrBytes in interface NetworkPolicyOrBuilder
      Returns:
      The bytes for edgeServicesCidr.
    • getUid

      public String getUid()
       Output only. System-generated unique identifier for the resource.
       
      string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUid in interface NetworkPolicyOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Output only. System-generated unique identifier for the resource.
       
      string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUidBytes in interface NetworkPolicyOrBuilder
      Returns:
      The bytes for uid.
    • getVmwareEngineNetwork

      public String getVmwareEngineNetwork()
       Optional. The relative resource name of the VMware Engine network.
       Specify the name in the following form:
       `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
       where `{project}` can either be a project number or a project ID.
       
      string vmware_engine_network = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getVmwareEngineNetwork in interface NetworkPolicyOrBuilder
      Returns:
      The vmwareEngineNetwork.
    • getVmwareEngineNetworkBytes

      public com.google.protobuf.ByteString getVmwareEngineNetworkBytes()
       Optional. The relative resource name of the VMware Engine network.
       Specify the name in the following form:
       `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
       where `{project}` can either be a project number or a project ID.
       
      string vmware_engine_network = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getVmwareEngineNetworkBytes in interface NetworkPolicyOrBuilder
      Returns:
      The bytes for vmwareEngineNetwork.
    • getDescription

      public String getDescription()
       Optional. User-provided description for this network policy.
       
      string description = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface NetworkPolicyOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. User-provided description for this network policy.
       
      string description = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface NetworkPolicyOrBuilder
      Returns:
      The bytes for description.
    • getVmwareEngineNetworkCanonical

      public String getVmwareEngineNetworkCanonical()
       Output only. The canonical name of the VMware Engine network in the form:
       `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
       
      string vmware_engine_network_canonical = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getVmwareEngineNetworkCanonical in interface NetworkPolicyOrBuilder
      Returns:
      The vmwareEngineNetworkCanonical.
    • getVmwareEngineNetworkCanonicalBytes

      public com.google.protobuf.ByteString getVmwareEngineNetworkCanonicalBytes()
       Output only. The canonical name of the VMware Engine network in the form:
       `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
       
      string vmware_engine_network_canonical = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getVmwareEngineNetworkCanonicalBytes in interface NetworkPolicyOrBuilder
      Returns:
      The bytes for vmwareEngineNetworkCanonical.
    • 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 NetworkPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static NetworkPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NetworkPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

      public static NetworkPolicy parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static NetworkPolicy parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static NetworkPolicy.Builder newBuilder()
    • newBuilder

      public static NetworkPolicy.Builder newBuilder(NetworkPolicy prototype)
    • toBuilder

      public NetworkPolicy.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static NetworkPolicy getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<NetworkPolicy> 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 NetworkPolicy getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder