Class ConnectionProfile.Builder

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

    public static final class ConnectionProfile.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ConnectionProfile.Builder>
    implements ConnectionProfileOrBuilder
     A set of reusable connection configurations to be used as a source or
     destination for a stream.
     
    Protobuf type google.cloud.datastream.v1.ConnectionProfile
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ConnectionProfile.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ConnectionProfile.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ConnectionProfile.Builder>
      • clear

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

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

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

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

        public ConnectionProfile.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<ConnectionProfile.Builder>
      • setField

        public ConnectionProfile.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<ConnectionProfile.Builder>
      • clearField

        public ConnectionProfile.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<ConnectionProfile.Builder>
      • clearOneof

        public ConnectionProfile.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<ConnectionProfile.Builder>
      • setRepeatedField

        public ConnectionProfile.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<ConnectionProfile.Builder>
      • addRepeatedField

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

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

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

        public ConnectionProfile.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<ConnectionProfile.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Output only. The resource's name.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface ConnectionProfileOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. The resource's name.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface ConnectionProfileOrBuilder
        Returns:
        The bytes for name.
      • setName

        public ConnectionProfile.Builder setName​(String value)
         Output only. The resource's name.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public ConnectionProfile.Builder clearName()
         Output only. The resource's name.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public ConnectionProfile.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. The resource's name.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The create time of the resource.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface ConnectionProfileOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The create time of the resource.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface ConnectionProfileOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public ConnectionProfile.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The create time of the resource.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public ConnectionProfile.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The create time of the resource.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public ConnectionProfile.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The create time of the resource.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public ConnectionProfile.Builder clearCreateTime()
         Output only. The create time of the resource.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. The create time of the resource.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The create time of the resource.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface ConnectionProfileOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. The update time of the resource.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface ConnectionProfileOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The update time of the resource.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface ConnectionProfileOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public ConnectionProfile.Builder setUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The update time of the resource.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUpdateTime

        public ConnectionProfile.Builder setUpdateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The update time of the resource.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeUpdateTime

        public ConnectionProfile.Builder mergeUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The update time of the resource.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearUpdateTime

        public ConnectionProfile.Builder clearUpdateTime()
         Output only. The update time of the resource.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
         Output only. The update time of the resource.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The update time of the resource.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface ConnectionProfileOrBuilder
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • getDisplayName

        public String getDisplayName()
         Required. Display name.
         
        string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDisplayName in interface ConnectionProfileOrBuilder
        Returns:
        The displayName.
      • getDisplayNameBytes

        public com.google.protobuf.ByteString getDisplayNameBytes()
         Required. Display name.
         
        string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDisplayNameBytes in interface ConnectionProfileOrBuilder
        Returns:
        The bytes for displayName.
      • setDisplayName

        public ConnectionProfile.Builder setDisplayName​(String value)
         Required. Display name.
         
        string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The displayName to set.
        Returns:
        This builder for chaining.
      • clearDisplayName

        public ConnectionProfile.Builder clearDisplayName()
         Required. Display name.
         
        string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setDisplayNameBytes

        public ConnectionProfile.Builder setDisplayNameBytes​(com.google.protobuf.ByteString value)
         Required. Display name.
         
        string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for displayName to set.
        Returns:
        This builder for chaining.
      • hasOracleProfile

        public boolean hasOracleProfile()
         Oracle ConnectionProfile configuration.
         
        .google.cloud.datastream.v1.OracleProfile oracle_profile = 100;
        Specified by:
        hasOracleProfile in interface ConnectionProfileOrBuilder
        Returns:
        Whether the oracleProfile field is set.
      • setOracleProfile

        public ConnectionProfile.Builder setOracleProfile​(OracleProfile value)
         Oracle ConnectionProfile configuration.
         
        .google.cloud.datastream.v1.OracleProfile oracle_profile = 100;
      • mergeOracleProfile

        public ConnectionProfile.Builder mergeOracleProfile​(OracleProfile value)
         Oracle ConnectionProfile configuration.
         
        .google.cloud.datastream.v1.OracleProfile oracle_profile = 100;
      • clearOracleProfile

        public ConnectionProfile.Builder clearOracleProfile()
         Oracle ConnectionProfile configuration.
         
        .google.cloud.datastream.v1.OracleProfile oracle_profile = 100;
      • getOracleProfileBuilder

        public OracleProfile.Builder getOracleProfileBuilder()
         Oracle ConnectionProfile configuration.
         
        .google.cloud.datastream.v1.OracleProfile oracle_profile = 100;
      • hasGcsProfile

        public boolean hasGcsProfile()
         Cloud Storage ConnectionProfile configuration.
         
        .google.cloud.datastream.v1.GcsProfile gcs_profile = 101;
        Specified by:
        hasGcsProfile in interface ConnectionProfileOrBuilder
        Returns:
        Whether the gcsProfile field is set.
      • getGcsProfile

        public GcsProfile getGcsProfile()
         Cloud Storage ConnectionProfile configuration.
         
        .google.cloud.datastream.v1.GcsProfile gcs_profile = 101;
        Specified by:
        getGcsProfile in interface ConnectionProfileOrBuilder
        Returns:
        The gcsProfile.
      • setGcsProfile

        public ConnectionProfile.Builder setGcsProfile​(GcsProfile value)
         Cloud Storage ConnectionProfile configuration.
         
        .google.cloud.datastream.v1.GcsProfile gcs_profile = 101;
      • mergeGcsProfile

        public ConnectionProfile.Builder mergeGcsProfile​(GcsProfile value)
         Cloud Storage ConnectionProfile configuration.
         
        .google.cloud.datastream.v1.GcsProfile gcs_profile = 101;
      • clearGcsProfile

        public ConnectionProfile.Builder clearGcsProfile()
         Cloud Storage ConnectionProfile configuration.
         
        .google.cloud.datastream.v1.GcsProfile gcs_profile = 101;
      • getGcsProfileBuilder

        public GcsProfile.Builder getGcsProfileBuilder()
         Cloud Storage ConnectionProfile configuration.
         
        .google.cloud.datastream.v1.GcsProfile gcs_profile = 101;
      • hasMysqlProfile

        public boolean hasMysqlProfile()
         MySQL ConnectionProfile configuration.
         
        .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102;
        Specified by:
        hasMysqlProfile in interface ConnectionProfileOrBuilder
        Returns:
        Whether the mysqlProfile field is set.
      • setMysqlProfile

        public ConnectionProfile.Builder setMysqlProfile​(MysqlProfile value)
         MySQL ConnectionProfile configuration.
         
        .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102;
      • mergeMysqlProfile

        public ConnectionProfile.Builder mergeMysqlProfile​(MysqlProfile value)
         MySQL ConnectionProfile configuration.
         
        .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102;
      • clearMysqlProfile

        public ConnectionProfile.Builder clearMysqlProfile()
         MySQL ConnectionProfile configuration.
         
        .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102;
      • getMysqlProfileBuilder

        public MysqlProfile.Builder getMysqlProfileBuilder()
         MySQL ConnectionProfile configuration.
         
        .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102;
      • hasBigqueryProfile

        public boolean hasBigqueryProfile()
         BigQuery Connection Profile configuration.
         
        .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103;
        Specified by:
        hasBigqueryProfile in interface ConnectionProfileOrBuilder
        Returns:
        Whether the bigqueryProfile field is set.
      • setBigqueryProfile

        public ConnectionProfile.Builder setBigqueryProfile​(BigQueryProfile value)
         BigQuery Connection Profile configuration.
         
        .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103;
      • mergeBigqueryProfile

        public ConnectionProfile.Builder mergeBigqueryProfile​(BigQueryProfile value)
         BigQuery Connection Profile configuration.
         
        .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103;
      • clearBigqueryProfile

        public ConnectionProfile.Builder clearBigqueryProfile()
         BigQuery Connection Profile configuration.
         
        .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103;
      • getBigqueryProfileBuilder

        public BigQueryProfile.Builder getBigqueryProfileBuilder()
         BigQuery Connection Profile configuration.
         
        .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103;
      • hasPostgresqlProfile

        public boolean hasPostgresqlProfile()
         PostgreSQL Connection Profile configuration.
         
        .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104;
        Specified by:
        hasPostgresqlProfile in interface ConnectionProfileOrBuilder
        Returns:
        Whether the postgresqlProfile field is set.
      • setPostgresqlProfile

        public ConnectionProfile.Builder setPostgresqlProfile​(PostgresqlProfile value)
         PostgreSQL Connection Profile configuration.
         
        .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104;
      • mergePostgresqlProfile

        public ConnectionProfile.Builder mergePostgresqlProfile​(PostgresqlProfile value)
         PostgreSQL Connection Profile configuration.
         
        .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104;
      • clearPostgresqlProfile

        public ConnectionProfile.Builder clearPostgresqlProfile()
         PostgreSQL Connection Profile configuration.
         
        .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104;
      • getPostgresqlProfileBuilder

        public PostgresqlProfile.Builder getPostgresqlProfileBuilder()
         PostgreSQL Connection Profile configuration.
         
        .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104;
      • hasStaticServiceIpConnectivity

        public boolean hasStaticServiceIpConnectivity()
         Static Service IP connectivity.
         
        .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200;
        Specified by:
        hasStaticServiceIpConnectivity in interface ConnectionProfileOrBuilder
        Returns:
        Whether the staticServiceIpConnectivity field is set.
      • setStaticServiceIpConnectivity

        public ConnectionProfile.Builder setStaticServiceIpConnectivity​(StaticServiceIpConnectivity value)
         Static Service IP connectivity.
         
        .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200;
      • mergeStaticServiceIpConnectivity

        public ConnectionProfile.Builder mergeStaticServiceIpConnectivity​(StaticServiceIpConnectivity value)
         Static Service IP connectivity.
         
        .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200;
      • clearStaticServiceIpConnectivity

        public ConnectionProfile.Builder clearStaticServiceIpConnectivity()
         Static Service IP connectivity.
         
        .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200;
      • getStaticServiceIpConnectivityBuilder

        public StaticServiceIpConnectivity.Builder getStaticServiceIpConnectivityBuilder()
         Static Service IP connectivity.
         
        .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200;
      • hasForwardSshConnectivity

        public boolean hasForwardSshConnectivity()
         Forward SSH tunnel connectivity.
         
        .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201;
        Specified by:
        hasForwardSshConnectivity in interface ConnectionProfileOrBuilder
        Returns:
        Whether the forwardSshConnectivity field is set.
      • clearForwardSshConnectivity

        public ConnectionProfile.Builder clearForwardSshConnectivity()
         Forward SSH tunnel connectivity.
         
        .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201;
      • getForwardSshConnectivityBuilder

        public ForwardSshTunnelConnectivity.Builder getForwardSshConnectivityBuilder()
         Forward SSH tunnel connectivity.
         
        .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201;
      • hasPrivateConnectivity

        public boolean hasPrivateConnectivity()
         Private connectivity.
         
        .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202;
        Specified by:
        hasPrivateConnectivity in interface ConnectionProfileOrBuilder
        Returns:
        Whether the privateConnectivity field is set.
      • clearPrivateConnectivity

        public ConnectionProfile.Builder clearPrivateConnectivity()
         Private connectivity.
         
        .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202;
      • getPrivateConnectivityBuilder

        public PrivateConnectivity.Builder getPrivateConnectivityBuilder()
         Private connectivity.
         
        .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202;
      • setUnknownFields

        public final ConnectionProfile.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<ConnectionProfile.Builder>
      • mergeUnknownFields

        public final ConnectionProfile.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<ConnectionProfile.Builder>