Class PrivatePoolV1Config.NetworkConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PrivatePoolV1Config.NetworkConfig.Builder>
com.google.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig.Builder
All Implemented Interfaces:
PrivatePoolV1Config.NetworkConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PrivatePoolV1Config.NetworkConfig

public static final class PrivatePoolV1Config.NetworkConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<PrivatePoolV1Config.NetworkConfig.Builder> implements PrivatePoolV1Config.NetworkConfigOrBuilder
 Defines the network configuration for the pool.
 
Protobuf type google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig
  • 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<PrivatePoolV1Config.NetworkConfig.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<PrivatePoolV1Config.NetworkConfig.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<PrivatePoolV1Config.NetworkConfig.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public PrivatePoolV1Config.NetworkConfig.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<PrivatePoolV1Config.NetworkConfig.Builder>
      Throws:
      IOException
    • getPeeredNetwork

      public String getPeeredNetwork()
       Required. Immutable. The network definition that the workers are peered
       to. If this section is left empty, the workers will be peered to
       `WorkerPool.project_id` on the service producer network. Must be in the
       format `projects/{project}/global/networks/{network}`, where `{project}`
       is a project number, such as `12345`, and `{network}` is the name of a
       VPC network in the project. See
       [Understanding network configuration
       options](https://cloud.google.com/build/docs/private-pools/set-up-private-pool-environment)
       
      string peered_network = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getPeeredNetwork in interface PrivatePoolV1Config.NetworkConfigOrBuilder
      Returns:
      The peeredNetwork.
    • getPeeredNetworkBytes

      public com.google.protobuf.ByteString getPeeredNetworkBytes()
       Required. Immutable. The network definition that the workers are peered
       to. If this section is left empty, the workers will be peered to
       `WorkerPool.project_id` on the service producer network. Must be in the
       format `projects/{project}/global/networks/{network}`, where `{project}`
       is a project number, such as `12345`, and `{network}` is the name of a
       VPC network in the project. See
       [Understanding network configuration
       options](https://cloud.google.com/build/docs/private-pools/set-up-private-pool-environment)
       
      string peered_network = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getPeeredNetworkBytes in interface PrivatePoolV1Config.NetworkConfigOrBuilder
      Returns:
      The bytes for peeredNetwork.
    • setPeeredNetwork

      public PrivatePoolV1Config.NetworkConfig.Builder setPeeredNetwork(String value)
       Required. Immutable. The network definition that the workers are peered
       to. If this section is left empty, the workers will be peered to
       `WorkerPool.project_id` on the service producer network. Must be in the
       format `projects/{project}/global/networks/{network}`, where `{project}`
       is a project number, such as `12345`, and `{network}` is the name of a
       VPC network in the project. See
       [Understanding network configuration
       options](https://cloud.google.com/build/docs/private-pools/set-up-private-pool-environment)
       
      string peered_network = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The peeredNetwork to set.
      Returns:
      This builder for chaining.
    • clearPeeredNetwork

      public PrivatePoolV1Config.NetworkConfig.Builder clearPeeredNetwork()
       Required. Immutable. The network definition that the workers are peered
       to. If this section is left empty, the workers will be peered to
       `WorkerPool.project_id` on the service producer network. Must be in the
       format `projects/{project}/global/networks/{network}`, where `{project}`
       is a project number, such as `12345`, and `{network}` is the name of a
       VPC network in the project. See
       [Understanding network configuration
       options](https://cloud.google.com/build/docs/private-pools/set-up-private-pool-environment)
       
      string peered_network = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setPeeredNetworkBytes

      public PrivatePoolV1Config.NetworkConfig.Builder setPeeredNetworkBytes(com.google.protobuf.ByteString value)
       Required. Immutable. The network definition that the workers are peered
       to. If this section is left empty, the workers will be peered to
       `WorkerPool.project_id` on the service producer network. Must be in the
       format `projects/{project}/global/networks/{network}`, where `{project}`
       is a project number, such as `12345`, and `{network}` is the name of a
       VPC network in the project. See
       [Understanding network configuration
       options](https://cloud.google.com/build/docs/private-pools/set-up-private-pool-environment)
       
      string peered_network = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for peeredNetwork to set.
      Returns:
      This builder for chaining.
    • getEgressOptionValue

      public int getEgressOptionValue()
       Option to configure network egress for the workers.
       
      .google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig.EgressOption egress_option = 2;
      Specified by:
      getEgressOptionValue in interface PrivatePoolV1Config.NetworkConfigOrBuilder
      Returns:
      The enum numeric value on the wire for egressOption.
    • setEgressOptionValue

      public PrivatePoolV1Config.NetworkConfig.Builder setEgressOptionValue(int value)
       Option to configure network egress for the workers.
       
      .google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig.EgressOption egress_option = 2;
      Parameters:
      value - The enum numeric value on the wire for egressOption to set.
      Returns:
      This builder for chaining.
    • getEgressOption

       Option to configure network egress for the workers.
       
      .google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig.EgressOption egress_option = 2;
      Specified by:
      getEgressOption in interface PrivatePoolV1Config.NetworkConfigOrBuilder
      Returns:
      The egressOption.
    • setEgressOption

       Option to configure network egress for the workers.
       
      .google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig.EgressOption egress_option = 2;
      Parameters:
      value - The egressOption to set.
      Returns:
      This builder for chaining.
    • clearEgressOption

      public PrivatePoolV1Config.NetworkConfig.Builder clearEgressOption()
       Option to configure network egress for the workers.
       
      .google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig.EgressOption egress_option = 2;
      Returns:
      This builder for chaining.
    • getPeeredNetworkIpRange

      public String getPeeredNetworkIpRange()
       Immutable. Subnet IP range within the peered network. This is specified
       in CIDR notation with a slash and the subnet prefix size. You can
       optionally specify an IP address before the subnet prefix value. e.g.
       `192.168.0.0/29` would specify an IP range starting at 192.168.0.0 with a
       prefix size of 29 bits.
       `/16` would specify a prefix size of 16 bits, with an automatically
       determined IP within the peered VPC.
       If unspecified, a value of `/24` will be used.
       
      string peered_network_ip_range = 3 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getPeeredNetworkIpRange in interface PrivatePoolV1Config.NetworkConfigOrBuilder
      Returns:
      The peeredNetworkIpRange.
    • getPeeredNetworkIpRangeBytes

      public com.google.protobuf.ByteString getPeeredNetworkIpRangeBytes()
       Immutable. Subnet IP range within the peered network. This is specified
       in CIDR notation with a slash and the subnet prefix size. You can
       optionally specify an IP address before the subnet prefix value. e.g.
       `192.168.0.0/29` would specify an IP range starting at 192.168.0.0 with a
       prefix size of 29 bits.
       `/16` would specify a prefix size of 16 bits, with an automatically
       determined IP within the peered VPC.
       If unspecified, a value of `/24` will be used.
       
      string peered_network_ip_range = 3 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getPeeredNetworkIpRangeBytes in interface PrivatePoolV1Config.NetworkConfigOrBuilder
      Returns:
      The bytes for peeredNetworkIpRange.
    • setPeeredNetworkIpRange

      public PrivatePoolV1Config.NetworkConfig.Builder setPeeredNetworkIpRange(String value)
       Immutable. Subnet IP range within the peered network. This is specified
       in CIDR notation with a slash and the subnet prefix size. You can
       optionally specify an IP address before the subnet prefix value. e.g.
       `192.168.0.0/29` would specify an IP range starting at 192.168.0.0 with a
       prefix size of 29 bits.
       `/16` would specify a prefix size of 16 bits, with an automatically
       determined IP within the peered VPC.
       If unspecified, a value of `/24` will be used.
       
      string peered_network_ip_range = 3 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The peeredNetworkIpRange to set.
      Returns:
      This builder for chaining.
    • clearPeeredNetworkIpRange

      public PrivatePoolV1Config.NetworkConfig.Builder clearPeeredNetworkIpRange()
       Immutable. Subnet IP range within the peered network. This is specified
       in CIDR notation with a slash and the subnet prefix size. You can
       optionally specify an IP address before the subnet prefix value. e.g.
       `192.168.0.0/29` would specify an IP range starting at 192.168.0.0 with a
       prefix size of 29 bits.
       `/16` would specify a prefix size of 16 bits, with an automatically
       determined IP within the peered VPC.
       If unspecified, a value of `/24` will be used.
       
      string peered_network_ip_range = 3 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setPeeredNetworkIpRangeBytes

      public PrivatePoolV1Config.NetworkConfig.Builder setPeeredNetworkIpRangeBytes(com.google.protobuf.ByteString value)
       Immutable. Subnet IP range within the peered network. This is specified
       in CIDR notation with a slash and the subnet prefix size. You can
       optionally specify an IP address before the subnet prefix value. e.g.
       `192.168.0.0/29` would specify an IP range starting at 192.168.0.0 with a
       prefix size of 29 bits.
       `/16` would specify a prefix size of 16 bits, with an automatically
       determined IP within the peered VPC.
       If unspecified, a value of `/24` will be used.
       
      string peered_network_ip_range = 3 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for peeredNetworkIpRange to set.
      Returns:
      This builder for chaining.