Class Transformation.Builder

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

    public static final class Transformation.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Transformation.Builder>
    implements TransformationOrBuilder
    Protobuf type com.cognite.client.dto.Transformation
    • 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<Transformation.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public Transformation.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<Transformation.Builder>
        Throws:
        IOException
      • hasId

        public boolean hasId()
        optional int64 id = 1;
        Specified by:
        hasId in interface TransformationOrBuilder
        Returns:
        Whether the id field is set.
      • setId

        public Transformation.Builder setId​(long value)
        optional int64 id = 1;
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public Transformation.Builder clearId()
        optional int64 id = 1;
        Returns:
        This builder for chaining.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
        string name = 2;
        Specified by:
        getNameBytes in interface TransformationOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Transformation.Builder setName​(String value)
        string name = 2;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • setNameBytes

        public Transformation.Builder setNameBytes​(com.google.protobuf.ByteString value)
        string name = 2;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasQuery

        public boolean hasQuery()
        optional string query = 3;
        Specified by:
        hasQuery in interface TransformationOrBuilder
        Returns:
        Whether the query field is set.
      • getQueryBytes

        public com.google.protobuf.ByteString getQueryBytes()
        optional string query = 3;
        Specified by:
        getQueryBytes in interface TransformationOrBuilder
        Returns:
        The bytes for query.
      • setQuery

        public Transformation.Builder setQuery​(String value)
        optional string query = 3;
        Parameters:
        value - The query to set.
        Returns:
        This builder for chaining.
      • clearQuery

        public Transformation.Builder clearQuery()
        optional string query = 3;
        Returns:
        This builder for chaining.
      • setQueryBytes

        public Transformation.Builder setQueryBytes​(com.google.protobuf.ByteString value)
        optional string query = 3;
        Parameters:
        value - The bytes for query to set.
        Returns:
        This builder for chaining.
      • hasDestination

        public boolean hasDestination()
        optional .com.cognite.client.dto.Transformation.Destination destination = 4;
        Specified by:
        hasDestination in interface TransformationOrBuilder
        Returns:
        Whether the destination field is set.
      • clearDestination

        public Transformation.Builder clearDestination()
        optional .com.cognite.client.dto.Transformation.Destination destination = 4;
      • hasConflictMode

        public boolean hasConflictMode()
        optional string conflict_mode = 5;
        Specified by:
        hasConflictMode in interface TransformationOrBuilder
        Returns:
        Whether the conflictMode field is set.
      • getConflictModeBytes

        public com.google.protobuf.ByteString getConflictModeBytes()
        optional string conflict_mode = 5;
        Specified by:
        getConflictModeBytes in interface TransformationOrBuilder
        Returns:
        The bytes for conflictMode.
      • setConflictMode

        public Transformation.Builder setConflictMode​(String value)
        optional string conflict_mode = 5;
        Parameters:
        value - The conflictMode to set.
        Returns:
        This builder for chaining.
      • clearConflictMode

        public Transformation.Builder clearConflictMode()
        optional string conflict_mode = 5;
        Returns:
        This builder for chaining.
      • setConflictModeBytes

        public Transformation.Builder setConflictModeBytes​(com.google.protobuf.ByteString value)
        optional string conflict_mode = 5;
        Parameters:
        value - The bytes for conflictMode to set.
        Returns:
        This builder for chaining.
      • hasIsPublic

        public boolean hasIsPublic()
        optional bool is_public = 6;
        Specified by:
        hasIsPublic in interface TransformationOrBuilder
        Returns:
        Whether the isPublic field is set.
      • setIsPublic

        public Transformation.Builder setIsPublic​(boolean value)
        optional bool is_public = 6;
        Parameters:
        value - The isPublic to set.
        Returns:
        This builder for chaining.
      • clearIsPublic

        public Transformation.Builder clearIsPublic()
        optional bool is_public = 6;
        Returns:
        This builder for chaining.
      • hasSourceApiKey

        public boolean hasSourceApiKey()
        optional string source_api_key = 7;
        Specified by:
        hasSourceApiKey in interface TransformationOrBuilder
        Returns:
        Whether the sourceApiKey field is set.
      • getSourceApiKeyBytes

        public com.google.protobuf.ByteString getSourceApiKeyBytes()
        optional string source_api_key = 7;
        Specified by:
        getSourceApiKeyBytes in interface TransformationOrBuilder
        Returns:
        The bytes for sourceApiKey.
      • setSourceApiKey

        public Transformation.Builder setSourceApiKey​(String value)
        optional string source_api_key = 7;
        Parameters:
        value - The sourceApiKey to set.
        Returns:
        This builder for chaining.
      • clearSourceApiKey

        public Transformation.Builder clearSourceApiKey()
        optional string source_api_key = 7;
        Returns:
        This builder for chaining.
      • setSourceApiKeyBytes

        public Transformation.Builder setSourceApiKeyBytes​(com.google.protobuf.ByteString value)
        optional string source_api_key = 7;
        Parameters:
        value - The bytes for sourceApiKey to set.
        Returns:
        This builder for chaining.
      • hasDestinationApiKey

        public boolean hasDestinationApiKey()
        optional string destination_api_key = 8;
        Specified by:
        hasDestinationApiKey in interface TransformationOrBuilder
        Returns:
        Whether the destinationApiKey field is set.
      • getDestinationApiKeyBytes

        public com.google.protobuf.ByteString getDestinationApiKeyBytes()
        optional string destination_api_key = 8;
        Specified by:
        getDestinationApiKeyBytes in interface TransformationOrBuilder
        Returns:
        The bytes for destinationApiKey.
      • setDestinationApiKey

        public Transformation.Builder setDestinationApiKey​(String value)
        optional string destination_api_key = 8;
        Parameters:
        value - The destinationApiKey to set.
        Returns:
        This builder for chaining.
      • clearDestinationApiKey

        public Transformation.Builder clearDestinationApiKey()
        optional string destination_api_key = 8;
        Returns:
        This builder for chaining.
      • setDestinationApiKeyBytes

        public Transformation.Builder setDestinationApiKeyBytes​(com.google.protobuf.ByteString value)
        optional string destination_api_key = 8;
        Parameters:
        value - The bytes for destinationApiKey to set.
        Returns:
        This builder for chaining.
      • hasSourceOidcCredentials

        public boolean hasSourceOidcCredentials()
        optional .com.cognite.client.dto.Transformation.FlatOidcCredentials source_oidc_credentials = 9;
        Specified by:
        hasSourceOidcCredentials in interface TransformationOrBuilder
        Returns:
        Whether the sourceOidcCredentials field is set.
      • clearSourceOidcCredentials

        public Transformation.Builder clearSourceOidcCredentials()
        optional .com.cognite.client.dto.Transformation.FlatOidcCredentials source_oidc_credentials = 9;
      • getSourceOidcCredentialsBuilder

        public Transformation.FlatOidcCredentials.Builder getSourceOidcCredentialsBuilder()
        optional .com.cognite.client.dto.Transformation.FlatOidcCredentials source_oidc_credentials = 9;
      • hasDestinationOidcCredentials

        public boolean hasDestinationOidcCredentials()
        optional .com.cognite.client.dto.Transformation.FlatOidcCredentials destination_oidc_credentials = 10;
        Specified by:
        hasDestinationOidcCredentials in interface TransformationOrBuilder
        Returns:
        Whether the destinationOidcCredentials field is set.
      • clearDestinationOidcCredentials

        public Transformation.Builder clearDestinationOidcCredentials()
        optional .com.cognite.client.dto.Transformation.FlatOidcCredentials destination_oidc_credentials = 10;
      • getDestinationOidcCredentialsBuilder

        public Transformation.FlatOidcCredentials.Builder getDestinationOidcCredentialsBuilder()
        optional .com.cognite.client.dto.Transformation.FlatOidcCredentials destination_oidc_credentials = 10;
      • getExternalIdBytes

        public com.google.protobuf.ByteString getExternalIdBytes()
        string external_id = 11;
        Specified by:
        getExternalIdBytes in interface TransformationOrBuilder
        Returns:
        The bytes for externalId.
      • setExternalId

        public Transformation.Builder setExternalId​(String value)
        string external_id = 11;
        Parameters:
        value - The externalId to set.
        Returns:
        This builder for chaining.
      • clearExternalId

        public Transformation.Builder clearExternalId()
        string external_id = 11;
        Returns:
        This builder for chaining.
      • setExternalIdBytes

        public Transformation.Builder setExternalIdBytes​(com.google.protobuf.ByteString value)
        string external_id = 11;
        Parameters:
        value - The bytes for externalId to set.
        Returns:
        This builder for chaining.
      • setIgnoreNullFields

        public Transformation.Builder setIgnoreNullFields​(boolean value)
        bool ignore_null_fields = 12;
        Parameters:
        value - The ignoreNullFields to set.
        Returns:
        This builder for chaining.
      • clearIgnoreNullFields

        public Transformation.Builder clearIgnoreNullFields()
        bool ignore_null_fields = 12;
        Returns:
        This builder for chaining.
      • hasDataSetId

        public boolean hasDataSetId()
        optional int64 data_set_id = 13;
        Specified by:
        hasDataSetId in interface TransformationOrBuilder
        Returns:
        Whether the dataSetId field is set.
      • setDataSetId

        public Transformation.Builder setDataSetId​(long value)
        optional int64 data_set_id = 13;
        Parameters:
        value - The dataSetId to set.
        Returns:
        This builder for chaining.
      • clearDataSetId

        public Transformation.Builder clearDataSetId()
        optional int64 data_set_id = 13;
        Returns:
        This builder for chaining.
      • hasBlocked

        public boolean hasBlocked()
        optional .com.cognite.client.dto.Transformation.TransformBlockedInfo blocked = 14;
        Specified by:
        hasBlocked in interface TransformationOrBuilder
        Returns:
        Whether the blocked field is set.
      • clearBlocked

        public Transformation.Builder clearBlocked()
        optional .com.cognite.client.dto.Transformation.TransformBlockedInfo blocked = 14;
      • hasCreatedTime

        public boolean hasCreatedTime()
        optional int64 created_time = 15;
        Specified by:
        hasCreatedTime in interface TransformationOrBuilder
        Returns:
        Whether the createdTime field is set.
      • setCreatedTime

        public Transformation.Builder setCreatedTime​(long value)
        optional int64 created_time = 15;
        Parameters:
        value - The createdTime to set.
        Returns:
        This builder for chaining.
      • clearCreatedTime

        public Transformation.Builder clearCreatedTime()
        optional int64 created_time = 15;
        Returns:
        This builder for chaining.
      • hasLastUpdatedTime

        public boolean hasLastUpdatedTime()
        optional int64 last_updated_time = 16;
        Specified by:
        hasLastUpdatedTime in interface TransformationOrBuilder
        Returns:
        Whether the lastUpdatedTime field is set.
      • setLastUpdatedTime

        public Transformation.Builder setLastUpdatedTime​(long value)
        optional int64 last_updated_time = 16;
        Parameters:
        value - The lastUpdatedTime to set.
        Returns:
        This builder for chaining.
      • clearLastUpdatedTime

        public Transformation.Builder clearLastUpdatedTime()
        optional int64 last_updated_time = 16;
        Returns:
        This builder for chaining.
      • hasOwner

        public boolean hasOwner()
        optional .com.cognite.client.dto.Transformation.Owner owner = 17;
        Specified by:
        hasOwner in interface TransformationOrBuilder
        Returns:
        Whether the owner field is set.
      • clearOwner

        public Transformation.Builder clearOwner()
        optional .com.cognite.client.dto.Transformation.Owner owner = 17;
      • hasLastFinishedJob

        public boolean hasLastFinishedJob()
        optional .com.cognite.client.dto.Transformation.Job last_finished_job = 18;
        Specified by:
        hasLastFinishedJob in interface TransformationOrBuilder
        Returns:
        Whether the lastFinishedJob field is set.
      • clearLastFinishedJob

        public Transformation.Builder clearLastFinishedJob()
        optional .com.cognite.client.dto.Transformation.Job last_finished_job = 18;
      • getLastFinishedJobBuilder

        public Transformation.Job.Builder getLastFinishedJobBuilder()
        optional .com.cognite.client.dto.Transformation.Job last_finished_job = 18;
      • hasRunningJob

        public boolean hasRunningJob()
        optional .com.cognite.client.dto.Transformation.Job running_job = 19;
        Specified by:
        hasRunningJob in interface TransformationOrBuilder
        Returns:
        Whether the runningJob field is set.
      • clearRunningJob

        public Transformation.Builder clearRunningJob()
        optional .com.cognite.client.dto.Transformation.Job running_job = 19;
      • getRunningJobBuilder

        public Transformation.Job.Builder getRunningJobBuilder()
        optional .com.cognite.client.dto.Transformation.Job running_job = 19;
      • hasSchedule

        public boolean hasSchedule()
        optional .com.cognite.client.dto.Transformation.Schedule schedule = 20;
        Specified by:
        hasSchedule in interface TransformationOrBuilder
        Returns:
        Whether the schedule field is set.
      • clearSchedule

        public Transformation.Builder clearSchedule()
        optional .com.cognite.client.dto.Transformation.Schedule schedule = 20;
      • setUnknownFields

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

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