Class Task.InfrastructureSpec.VpcNetwork.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Task.InfrastructureSpec.VpcNetwork.Builder>
com.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork.Builder
All Implemented Interfaces:
Task.InfrastructureSpec.VpcNetworkOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Task.InfrastructureSpec.VpcNetwork

public static final class Task.InfrastructureSpec.VpcNetwork.Builder extends com.google.protobuf.GeneratedMessage.Builder<Task.InfrastructureSpec.VpcNetwork.Builder> implements Task.InfrastructureSpec.VpcNetworkOrBuilder
 Cloud VPC Network used to run the infrastructure.
 
Protobuf type google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork
  • 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<Task.InfrastructureSpec.VpcNetwork.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<Task.InfrastructureSpec.VpcNetwork.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<Task.InfrastructureSpec.VpcNetwork.Builder>
    • getDefaultInstanceForType

      public Task.InfrastructureSpec.VpcNetwork 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 Task.InfrastructureSpec.VpcNetwork buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Task.InfrastructureSpec.VpcNetwork.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<Task.InfrastructureSpec.VpcNetwork.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<Task.InfrastructureSpec.VpcNetwork.Builder>
    • mergeFrom

      public Task.InfrastructureSpec.VpcNetwork.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<Task.InfrastructureSpec.VpcNetwork.Builder>
      Throws:
      IOException
    • getNetworkNameCase

      Specified by:
      getNetworkNameCase in interface Task.InfrastructureSpec.VpcNetworkOrBuilder
    • clearNetworkName

      public Task.InfrastructureSpec.VpcNetwork.Builder clearNetworkName()
    • hasNetwork

      public boolean hasNetwork()
       Optional. The Cloud VPC network in which the job is run. By default,
       the Cloud VPC network named Default within the project is used.
       
      string network = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasNetwork in interface Task.InfrastructureSpec.VpcNetworkOrBuilder
      Returns:
      Whether the network field is set.
    • getNetwork

      public String getNetwork()
       Optional. The Cloud VPC network in which the job is run. By default,
       the Cloud VPC network named Default within the project is used.
       
      string network = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNetwork in interface Task.InfrastructureSpec.VpcNetworkOrBuilder
      Returns:
      The network.
    • getNetworkBytes

      public com.google.protobuf.ByteString getNetworkBytes()
       Optional. The Cloud VPC network in which the job is run. By default,
       the Cloud VPC network named Default within the project is used.
       
      string network = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNetworkBytes in interface Task.InfrastructureSpec.VpcNetworkOrBuilder
      Returns:
      The bytes for network.
    • setNetwork

       Optional. The Cloud VPC network in which the job is run. By default,
       the Cloud VPC network named Default within the project is used.
       
      string network = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The network to set.
      Returns:
      This builder for chaining.
    • clearNetwork

       Optional. The Cloud VPC network in which the job is run. By default,
       the Cloud VPC network named Default within the project is used.
       
      string network = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setNetworkBytes

      public Task.InfrastructureSpec.VpcNetwork.Builder setNetworkBytes(com.google.protobuf.ByteString value)
       Optional. The Cloud VPC network in which the job is run. By default,
       the Cloud VPC network named Default within the project is used.
       
      string network = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for network to set.
      Returns:
      This builder for chaining.
    • hasSubNetwork

      public boolean hasSubNetwork()
       Optional. The Cloud VPC sub-network in which the job is run.
       
      string sub_network = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasSubNetwork in interface Task.InfrastructureSpec.VpcNetworkOrBuilder
      Returns:
      Whether the subNetwork field is set.
    • getSubNetwork

      public String getSubNetwork()
       Optional. The Cloud VPC sub-network in which the job is run.
       
      string sub_network = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSubNetwork in interface Task.InfrastructureSpec.VpcNetworkOrBuilder
      Returns:
      The subNetwork.
    • getSubNetworkBytes

      public com.google.protobuf.ByteString getSubNetworkBytes()
       Optional. The Cloud VPC sub-network in which the job is run.
       
      string sub_network = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSubNetworkBytes in interface Task.InfrastructureSpec.VpcNetworkOrBuilder
      Returns:
      The bytes for subNetwork.
    • setSubNetwork

      public Task.InfrastructureSpec.VpcNetwork.Builder setSubNetwork(String value)
       Optional. The Cloud VPC sub-network in which the job is run.
       
      string sub_network = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The subNetwork to set.
      Returns:
      This builder for chaining.
    • clearSubNetwork

       Optional. The Cloud VPC sub-network in which the job is run.
       
      string sub_network = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setSubNetworkBytes

      public Task.InfrastructureSpec.VpcNetwork.Builder setSubNetworkBytes(com.google.protobuf.ByteString value)
       Optional. The Cloud VPC sub-network in which the job is run.
       
      string sub_network = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for subNetwork to set.
      Returns:
      This builder for chaining.
    • getNetworkTagsList

      public com.google.protobuf.ProtocolStringList getNetworkTagsList()
       Optional. List of network tags to apply to the job.
       
      repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNetworkTagsList in interface Task.InfrastructureSpec.VpcNetworkOrBuilder
      Returns:
      A list containing the networkTags.
    • getNetworkTagsCount

      public int getNetworkTagsCount()
       Optional. List of network tags to apply to the job.
       
      repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNetworkTagsCount in interface Task.InfrastructureSpec.VpcNetworkOrBuilder
      Returns:
      The count of networkTags.
    • getNetworkTags

      public String getNetworkTags(int index)
       Optional. List of network tags to apply to the job.
       
      repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNetworkTags in interface Task.InfrastructureSpec.VpcNetworkOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The networkTags at the given index.
    • getNetworkTagsBytes

      public com.google.protobuf.ByteString getNetworkTagsBytes(int index)
       Optional. List of network tags to apply to the job.
       
      repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNetworkTagsBytes in interface Task.InfrastructureSpec.VpcNetworkOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the networkTags at the given index.
    • setNetworkTags

      public Task.InfrastructureSpec.VpcNetwork.Builder setNetworkTags(int index, String value)
       Optional. List of network tags to apply to the job.
       
      repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The networkTags to set.
      Returns:
      This builder for chaining.
    • addNetworkTags

      public Task.InfrastructureSpec.VpcNetwork.Builder addNetworkTags(String value)
       Optional. List of network tags to apply to the job.
       
      repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The networkTags to add.
      Returns:
      This builder for chaining.
    • addAllNetworkTags

      public Task.InfrastructureSpec.VpcNetwork.Builder addAllNetworkTags(Iterable<String> values)
       Optional. List of network tags to apply to the job.
       
      repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The networkTags to add.
      Returns:
      This builder for chaining.
    • clearNetworkTags

      public Task.InfrastructureSpec.VpcNetwork.Builder clearNetworkTags()
       Optional. List of network tags to apply to the job.
       
      repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addNetworkTagsBytes

      public Task.InfrastructureSpec.VpcNetwork.Builder addNetworkTagsBytes(com.google.protobuf.ByteString value)
       Optional. List of network tags to apply to the job.
       
      repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the networkTags to add.
      Returns:
      This builder for chaining.