Class SetNetworkPolicyRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SetNetworkPolicyRequest.Builder>
com.google.container.v1.SetNetworkPolicyRequest.Builder
All Implemented Interfaces:
SetNetworkPolicyRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SetNetworkPolicyRequest

public static final class SetNetworkPolicyRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<SetNetworkPolicyRequest.Builder> implements SetNetworkPolicyRequestOrBuilder
 SetNetworkPolicyRequest enables/disables network policy for a cluster.
 
Protobuf type google.container.v1.SetNetworkPolicyRequest
  • 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<SetNetworkPolicyRequest.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<SetNetworkPolicyRequest.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<SetNetworkPolicyRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public SetNetworkPolicyRequest.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<SetNetworkPolicyRequest.Builder>
    • mergeFrom

    • isInitialized

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

      public SetNetworkPolicyRequest.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<SetNetworkPolicyRequest.Builder>
      Throws:
      IOException
    • getProjectId

      @Deprecated public String getProjectId()
      Deprecated.
      google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=6158
       Deprecated. The Google Developers Console [project ID or project
       number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
       This field has been deprecated and replaced by the name field.
       
      string project_id = 1 [deprecated = true];
      Specified by:
      getProjectId in interface SetNetworkPolicyRequestOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      @Deprecated public com.google.protobuf.ByteString getProjectIdBytes()
      Deprecated.
      google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=6158
       Deprecated. The Google Developers Console [project ID or project
       number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
       This field has been deprecated and replaced by the name field.
       
      string project_id = 1 [deprecated = true];
      Specified by:
      getProjectIdBytes in interface SetNetworkPolicyRequestOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      @Deprecated public SetNetworkPolicyRequest.Builder setProjectId(String value)
      Deprecated.
      google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=6158
       Deprecated. The Google Developers Console [project ID or project
       number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
       This field has been deprecated and replaced by the name field.
       
      string project_id = 1 [deprecated = true];
      Parameters:
      value - The projectId to set.
      Returns:
      This builder for chaining.
    • clearProjectId

      Deprecated.
      google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=6158
       Deprecated. The Google Developers Console [project ID or project
       number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
       This field has been deprecated and replaced by the name field.
       
      string project_id = 1 [deprecated = true];
      Returns:
      This builder for chaining.
    • setProjectIdBytes

      @Deprecated public SetNetworkPolicyRequest.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
      Deprecated.
      google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=6158
       Deprecated. The Google Developers Console [project ID or project
       number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
       This field has been deprecated and replaced by the name field.
       
      string project_id = 1 [deprecated = true];
      Parameters:
      value - The bytes for projectId to set.
      Returns:
      This builder for chaining.
    • getZone

      @Deprecated public String getZone()
      Deprecated.
      google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=6164
       Deprecated. The name of the Google Compute Engine
       [zone](https://cloud.google.com/compute/docs/zones#available)
       in which the cluster resides. This field has been deprecated and replaced
       by the name field.
       
      string zone = 2 [deprecated = true];
      Specified by:
      getZone in interface SetNetworkPolicyRequestOrBuilder
      Returns:
      The zone.
    • getZoneBytes

      @Deprecated public com.google.protobuf.ByteString getZoneBytes()
      Deprecated.
      google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=6164
       Deprecated. The name of the Google Compute Engine
       [zone](https://cloud.google.com/compute/docs/zones#available)
       in which the cluster resides. This field has been deprecated and replaced
       by the name field.
       
      string zone = 2 [deprecated = true];
      Specified by:
      getZoneBytes in interface SetNetworkPolicyRequestOrBuilder
      Returns:
      The bytes for zone.
    • setZone

      Deprecated.
      google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=6164
       Deprecated. The name of the Google Compute Engine
       [zone](https://cloud.google.com/compute/docs/zones#available)
       in which the cluster resides. This field has been deprecated and replaced
       by the name field.
       
      string zone = 2 [deprecated = true];
      Parameters:
      value - The zone to set.
      Returns:
      This builder for chaining.
    • clearZone

      Deprecated.
      google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=6164
       Deprecated. The name of the Google Compute Engine
       [zone](https://cloud.google.com/compute/docs/zones#available)
       in which the cluster resides. This field has been deprecated and replaced
       by the name field.
       
      string zone = 2 [deprecated = true];
      Returns:
      This builder for chaining.
    • setZoneBytes

      @Deprecated public SetNetworkPolicyRequest.Builder setZoneBytes(com.google.protobuf.ByteString value)
      Deprecated.
      google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=6164
       Deprecated. The name of the Google Compute Engine
       [zone](https://cloud.google.com/compute/docs/zones#available)
       in which the cluster resides. This field has been deprecated and replaced
       by the name field.
       
      string zone = 2 [deprecated = true];
      Parameters:
      value - The bytes for zone to set.
      Returns:
      This builder for chaining.
    • getClusterId

      @Deprecated public String getClusterId()
      Deprecated.
      google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=6168
       Deprecated. The name of the cluster.
       This field has been deprecated and replaced by the name field.
       
      string cluster_id = 3 [deprecated = true];
      Specified by:
      getClusterId in interface SetNetworkPolicyRequestOrBuilder
      Returns:
      The clusterId.
    • getClusterIdBytes

      @Deprecated public com.google.protobuf.ByteString getClusterIdBytes()
      Deprecated.
      google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=6168
       Deprecated. The name of the cluster.
       This field has been deprecated and replaced by the name field.
       
      string cluster_id = 3 [deprecated = true];
      Specified by:
      getClusterIdBytes in interface SetNetworkPolicyRequestOrBuilder
      Returns:
      The bytes for clusterId.
    • setClusterId

      @Deprecated public SetNetworkPolicyRequest.Builder setClusterId(String value)
      Deprecated.
      google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=6168
       Deprecated. The name of the cluster.
       This field has been deprecated and replaced by the name field.
       
      string cluster_id = 3 [deprecated = true];
      Parameters:
      value - The clusterId to set.
      Returns:
      This builder for chaining.
    • clearClusterId

      Deprecated.
      google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=6168
       Deprecated. The name of the cluster.
       This field has been deprecated and replaced by the name field.
       
      string cluster_id = 3 [deprecated = true];
      Returns:
      This builder for chaining.
    • setClusterIdBytes

      @Deprecated public SetNetworkPolicyRequest.Builder setClusterIdBytes(com.google.protobuf.ByteString value)
      Deprecated.
      google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=6168
       Deprecated. The name of the cluster.
       This field has been deprecated and replaced by the name field.
       
      string cluster_id = 3 [deprecated = true];
      Parameters:
      value - The bytes for clusterId to set.
      Returns:
      This builder for chaining.
    • hasNetworkPolicy

      public boolean hasNetworkPolicy()
       Required. Configuration options for the NetworkPolicy feature.
       
      .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasNetworkPolicy in interface SetNetworkPolicyRequestOrBuilder
      Returns:
      Whether the networkPolicy field is set.
    • getNetworkPolicy

      public NetworkPolicy getNetworkPolicy()
       Required. Configuration options for the NetworkPolicy feature.
       
      .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNetworkPolicy in interface SetNetworkPolicyRequestOrBuilder
      Returns:
      The networkPolicy.
    • setNetworkPolicy

      public SetNetworkPolicyRequest.Builder setNetworkPolicy(NetworkPolicy value)
       Required. Configuration options for the NetworkPolicy feature.
       
      .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED];
    • setNetworkPolicy

      public SetNetworkPolicyRequest.Builder setNetworkPolicy(NetworkPolicy.Builder builderForValue)
       Required. Configuration options for the NetworkPolicy feature.
       
      .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED];
    • mergeNetworkPolicy

      public SetNetworkPolicyRequest.Builder mergeNetworkPolicy(NetworkPolicy value)
       Required. Configuration options for the NetworkPolicy feature.
       
      .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED];
    • clearNetworkPolicy

      public SetNetworkPolicyRequest.Builder clearNetworkPolicy()
       Required. Configuration options for the NetworkPolicy feature.
       
      .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED];
    • getNetworkPolicyBuilder

      public NetworkPolicy.Builder getNetworkPolicyBuilder()
       Required. Configuration options for the NetworkPolicy feature.
       
      .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED];
    • getNetworkPolicyOrBuilder

      public NetworkPolicyOrBuilder getNetworkPolicyOrBuilder()
       Required. Configuration options for the NetworkPolicy feature.
       
      .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNetworkPolicyOrBuilder in interface SetNetworkPolicyRequestOrBuilder
    • getName

      public String getName()
       The name (project, location, cluster name) of the cluster to set networking
       policy. Specified in the format `projects/*/locations/*/clusters/*`.
       
      string name = 6;
      Specified by:
      getName in interface SetNetworkPolicyRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name (project, location, cluster name) of the cluster to set networking
       policy. Specified in the format `projects/*/locations/*/clusters/*`.
       
      string name = 6;
      Specified by:
      getNameBytes in interface SetNetworkPolicyRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public SetNetworkPolicyRequest.Builder setName(String value)
       The name (project, location, cluster name) of the cluster to set networking
       policy. Specified in the format `projects/*/locations/*/clusters/*`.
       
      string name = 6;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public SetNetworkPolicyRequest.Builder clearName()
       The name (project, location, cluster name) of the cluster to set networking
       policy. Specified in the format `projects/*/locations/*/clusters/*`.
       
      string name = 6;
      Returns:
      This builder for chaining.
    • setNameBytes

      public SetNetworkPolicyRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name (project, location, cluster name) of the cluster to set networking
       policy. Specified in the format `projects/*/locations/*/clusters/*`.
       
      string name = 6;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.