Class NetworkPolicy.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NetworkPolicy.Builder>
com.google.cloud.vmwareengine.v1.NetworkPolicy.Builder
All Implemented Interfaces:
NetworkPolicyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
NetworkPolicy

public static final class NetworkPolicy.Builder extends com.google.protobuf.GeneratedMessage.Builder<NetworkPolicy.Builder> 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
  • 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.Builder<NetworkPolicy.Builder>
    • clear

      public NetworkPolicy.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<NetworkPolicy.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<NetworkPolicy.Builder>
    • getDefaultInstanceForType

      public NetworkPolicy getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

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

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

      public NetworkPolicy.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<NetworkPolicy.Builder>
    • mergeFrom

      public NetworkPolicy.Builder mergeFrom(NetworkPolicy other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<NetworkPolicy.Builder>
    • mergeFrom

      public NetworkPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<NetworkPolicy.Builder>
      Throws:
      IOException
    • 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.
    • setName

      public NetworkPolicy.Builder setName(String value)
       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];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public NetworkPolicy.Builder clearName()
       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];
      Returns:
      This builder for chaining.
    • setNameBytes

      public NetworkPolicy.Builder setNameBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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.
    • setCreateTime

      public NetworkPolicy.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Creation time of this resource.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public NetworkPolicy.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Creation time of this resource.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public NetworkPolicy.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Creation time of this resource.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public NetworkPolicy.Builder clearCreateTime()
       Output only. Creation time of this resource.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Creation time of this resource.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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.
    • setUpdateTime

      public NetworkPolicy.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Last update time of this resource.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public NetworkPolicy.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Last update time of this resource.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public NetworkPolicy.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Last update time of this resource.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public NetworkPolicy.Builder clearUpdateTime()
       Output only. Last update time of this resource.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. Last update time of this resource.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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.
    • setInternetAccess

      public NetworkPolicy.Builder setInternetAccess(NetworkPolicy.NetworkService value)
       Network service that allows VMware workloads to access the internet.
       
      .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6;
    • setInternetAccess

      public NetworkPolicy.Builder setInternetAccess(NetworkPolicy.NetworkService.Builder builderForValue)
       Network service that allows VMware workloads to access the internet.
       
      .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6;
    • mergeInternetAccess

      public NetworkPolicy.Builder mergeInternetAccess(NetworkPolicy.NetworkService value)
       Network service that allows VMware workloads to access the internet.
       
      .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6;
    • clearInternetAccess

      public NetworkPolicy.Builder clearInternetAccess()
       Network service that allows VMware workloads to access the internet.
       
      .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6;
    • getInternetAccessBuilder

      public NetworkPolicy.NetworkService.Builder getInternetAccessBuilder()
       Network service that allows VMware workloads to access the internet.
       
      .google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService internet_access = 6;
    • 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.
    • setExternalIp

       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;
    • setExternalIp

      public NetworkPolicy.Builder setExternalIp(NetworkPolicy.NetworkService.Builder builderForValue)
       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;
    • mergeExternalIp

      public NetworkPolicy.Builder mergeExternalIp(NetworkPolicy.NetworkService value)
       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;
    • clearExternalIp

      public NetworkPolicy.Builder clearExternalIp()
       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;
    • getExternalIpBuilder

      public NetworkPolicy.NetworkService.Builder getExternalIpBuilder()
       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;
    • 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.
    • setEdgeServicesCidr

      public NetworkPolicy.Builder setEdgeServicesCidr(String value)
       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];
      Parameters:
      value - The edgeServicesCidr to set.
      Returns:
      This builder for chaining.
    • clearEdgeServicesCidr

      public NetworkPolicy.Builder clearEdgeServicesCidr()
       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];
      Returns:
      This builder for chaining.
    • setEdgeServicesCidrBytes

      public NetworkPolicy.Builder setEdgeServicesCidrBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for edgeServicesCidr to set.
      Returns:
      This builder for chaining.
    • 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.
    • setUid

      public NetworkPolicy.Builder setUid(String value)
       Output only. System-generated unique identifier for the resource.
       
      string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The uid to set.
      Returns:
      This builder for chaining.
    • clearUid

      public NetworkPolicy.Builder clearUid()
       Output only. System-generated unique identifier for the resource.
       
      string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setUidBytes

      public NetworkPolicy.Builder setUidBytes(com.google.protobuf.ByteString value)
       Output only. System-generated unique identifier for the resource.
       
      string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for uid to set.
      Returns:
      This builder for chaining.
    • 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.
    • setVmwareEngineNetwork

      public NetworkPolicy.Builder setVmwareEngineNetwork(String value)
       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) = { ... }
      Parameters:
      value - The vmwareEngineNetwork to set.
      Returns:
      This builder for chaining.
    • clearVmwareEngineNetwork

      public NetworkPolicy.Builder clearVmwareEngineNetwork()
       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) = { ... }
      Returns:
      This builder for chaining.
    • setVmwareEngineNetworkBytes

      public NetworkPolicy.Builder setVmwareEngineNetworkBytes(com.google.protobuf.ByteString value)
       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) = { ... }
      Parameters:
      value - The bytes for vmwareEngineNetwork to set.
      Returns:
      This builder for chaining.
    • 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.
    • setDescription

      public NetworkPolicy.Builder setDescription(String value)
       Optional. User-provided description for this network policy.
       
      string description = 13 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public NetworkPolicy.Builder clearDescription()
       Optional. User-provided description for this network policy.
       
      string description = 13 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public NetworkPolicy.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. User-provided description for this network policy.
       
      string description = 13 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • 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.
    • setVmwareEngineNetworkCanonical

      public NetworkPolicy.Builder setVmwareEngineNetworkCanonical(String value)
       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) = { ... }
      Parameters:
      value - The vmwareEngineNetworkCanonical to set.
      Returns:
      This builder for chaining.
    • clearVmwareEngineNetworkCanonical

      public NetworkPolicy.Builder clearVmwareEngineNetworkCanonical()
       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) = { ... }
      Returns:
      This builder for chaining.
    • setVmwareEngineNetworkCanonicalBytes

      public NetworkPolicy.Builder setVmwareEngineNetworkCanonicalBytes(com.google.protobuf.ByteString value)
       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) = { ... }
      Parameters:
      value - The bytes for vmwareEngineNetworkCanonical to set.
      Returns:
      This builder for chaining.