Class NetworkConfig.Builder

  • All Implemented Interfaces:
    NetworkConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    NetworkConfig

    public static final class NetworkConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<NetworkConfig.Builder>
    implements NetworkConfigOrBuilder
     Network configuration for a Data Fusion instance. These configurations
     are used for peering with the customer network. Configurations are optional
     when a public Data Fusion instance is to be created. However, providing
     these configurations allows several benefits, such as reduced network latency
     while accessing the customer resources from managed Data Fusion instance
     nodes, as well as access to the customer on-prem resources.
     
    Protobuf type google.cloud.datafusion.v1beta1.NetworkConfig
    • 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<NetworkConfig.Builder>
      • clear

        public 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.GeneratedMessageV3.Builder<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.GeneratedMessageV3.Builder<NetworkConfig.Builder>
      • getDefaultInstanceForType

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

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

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

        public NetworkConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkConfig.Builder>
      • setField

        public NetworkConfig.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                              Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkConfig.Builder>
      • clearField

        public NetworkConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkConfig.Builder>
      • clearOneof

        public NetworkConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkConfig.Builder>
      • setRepeatedField

        public NetworkConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                      int index,
                                                      Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkConfig.Builder>
      • addRepeatedField

        public NetworkConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                      Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkConfig.Builder>
      • mergeFrom

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

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

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

        public String getNetwork()
         Name of the network in the customer project with which the Tenant Project
         will be peered for executing pipelines. In case of shared VPC where the
         network resides in another host project the network should specified in
         the form of projects/{host-project-id}/global/networks/{network}
         
        string network = 1;
        Specified by:
        getNetwork in interface NetworkConfigOrBuilder
        Returns:
        The network.
      • getNetworkBytes

        public com.google.protobuf.ByteString getNetworkBytes()
         Name of the network in the customer project with which the Tenant Project
         will be peered for executing pipelines. In case of shared VPC where the
         network resides in another host project the network should specified in
         the form of projects/{host-project-id}/global/networks/{network}
         
        string network = 1;
        Specified by:
        getNetworkBytes in interface NetworkConfigOrBuilder
        Returns:
        The bytes for network.
      • setNetwork

        public NetworkConfig.Builder setNetwork​(String value)
         Name of the network in the customer project with which the Tenant Project
         will be peered for executing pipelines. In case of shared VPC where the
         network resides in another host project the network should specified in
         the form of projects/{host-project-id}/global/networks/{network}
         
        string network = 1;
        Parameters:
        value - The network to set.
        Returns:
        This builder for chaining.
      • clearNetwork

        public NetworkConfig.Builder clearNetwork()
         Name of the network in the customer project with which the Tenant Project
         will be peered for executing pipelines. In case of shared VPC where the
         network resides in another host project the network should specified in
         the form of projects/{host-project-id}/global/networks/{network}
         
        string network = 1;
        Returns:
        This builder for chaining.
      • setNetworkBytes

        public NetworkConfig.Builder setNetworkBytes​(com.google.protobuf.ByteString value)
         Name of the network in the customer project with which the Tenant Project
         will be peered for executing pipelines. In case of shared VPC where the
         network resides in another host project the network should specified in
         the form of projects/{host-project-id}/global/networks/{network}
         
        string network = 1;
        Parameters:
        value - The bytes for network to set.
        Returns:
        This builder for chaining.
      • getIpAllocation

        public String getIpAllocation()
         The IP range in CIDR notation to use for the managed Data Fusion instance
         nodes. This range must not overlap with any other ranges used in the Data
         Fusion instance network.
         
        string ip_allocation = 2;
        Specified by:
        getIpAllocation in interface NetworkConfigOrBuilder
        Returns:
        The ipAllocation.
      • getIpAllocationBytes

        public com.google.protobuf.ByteString getIpAllocationBytes()
         The IP range in CIDR notation to use for the managed Data Fusion instance
         nodes. This range must not overlap with any other ranges used in the Data
         Fusion instance network.
         
        string ip_allocation = 2;
        Specified by:
        getIpAllocationBytes in interface NetworkConfigOrBuilder
        Returns:
        The bytes for ipAllocation.
      • setIpAllocation

        public NetworkConfig.Builder setIpAllocation​(String value)
         The IP range in CIDR notation to use for the managed Data Fusion instance
         nodes. This range must not overlap with any other ranges used in the Data
         Fusion instance network.
         
        string ip_allocation = 2;
        Parameters:
        value - The ipAllocation to set.
        Returns:
        This builder for chaining.
      • clearIpAllocation

        public NetworkConfig.Builder clearIpAllocation()
         The IP range in CIDR notation to use for the managed Data Fusion instance
         nodes. This range must not overlap with any other ranges used in the Data
         Fusion instance network.
         
        string ip_allocation = 2;
        Returns:
        This builder for chaining.
      • setIpAllocationBytes

        public NetworkConfig.Builder setIpAllocationBytes​(com.google.protobuf.ByteString value)
         The IP range in CIDR notation to use for the managed Data Fusion instance
         nodes. This range must not overlap with any other ranges used in the Data
         Fusion instance network.
         
        string ip_allocation = 2;
        Parameters:
        value - The bytes for ipAllocation to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final NetworkConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkConfig.Builder>
      • mergeUnknownFields

        public final NetworkConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NetworkConfig.Builder>