Class PrivatePoolV1Config.NetworkConfig

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

public static final class PrivatePoolV1Config.NetworkConfig extends com.google.protobuf.GeneratedMessage implements PrivatePoolV1Config.NetworkConfigOrBuilder
 Defines the network configuration for the pool.
 
Protobuf type google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig
See Also:
  • Field Details

    • PEERED_NETWORK_FIELD_NUMBER

      public static final int PEERED_NETWORK_FIELD_NUMBER
      See Also:
    • EGRESS_OPTION_FIELD_NUMBER

      public static final int EGRESS_OPTION_FIELD_NUMBER
      See Also:
    • PEERED_NETWORK_IP_RANGE_FIELD_NUMBER

      public static final int PEERED_NETWORK_IP_RANGE_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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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 PrivatePoolV1Config.NetworkConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static PrivatePoolV1Config.NetworkConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static PrivatePoolV1Config.NetworkConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static PrivatePoolV1Config.NetworkConfig.Builder newBuilder()
    • newBuilder

    • toBuilder

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

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

      public static PrivatePoolV1Config.NetworkConfig getDefaultInstance()
    • parser

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

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