Class Task.InfrastructureSpec.VpcNetwork.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Task.InfrastructureSpec.VpcNetwork.Builder>
      • 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

        public Task.InfrastructureSpec.VpcNetwork.Builder setNetwork​(String 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 network to set.
        Returns:
        This builder for chaining.
      • clearNetwork

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

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