Class StreamObject.Builder

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

    public static final class StreamObject.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<StreamObject.Builder>
    implements StreamObjectOrBuilder
     A specific stream object (e.g a specific DB table).
     
    Protobuf type google.cloud.datastream.v1.StreamObject
    • 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<StreamObject.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public StreamObject.Builder setName​(String value)
         Output only. The object 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 StreamObject.Builder clearName()
         Output only. The object resource's name.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public StreamObject.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. The object 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 creation time of the object.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface StreamObjectOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public String getDisplayName()
         Required. Display name.
         
        string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDisplayName in interface StreamObjectOrBuilder
        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 StreamObjectOrBuilder
        Returns:
        The bytes for displayName.
      • setDisplayName

        public StreamObject.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 StreamObject.Builder clearDisplayName()
         Required. Display name.
         
        string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setDisplayNameBytes

        public StreamObject.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.
      • getErrorsList

        public List<Error> getErrorsList()
         Output only. Active errors on the object.
         
        repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getErrorsList in interface StreamObjectOrBuilder
      • getErrorsCount

        public int getErrorsCount()
         Output only. Active errors on the object.
         
        repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getErrorsCount in interface StreamObjectOrBuilder
      • getErrors

        public Error getErrors​(int index)
         Output only. Active errors on the object.
         
        repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getErrors in interface StreamObjectOrBuilder
      • setErrors

        public StreamObject.Builder setErrors​(int index,
                                              Error value)
         Output only. Active errors on the object.
         
        repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setErrors

        public StreamObject.Builder setErrors​(int index,
                                              Error.Builder builderForValue)
         Output only. Active errors on the object.
         
        repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addErrors

        public StreamObject.Builder addErrors​(Error value)
         Output only. Active errors on the object.
         
        repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addErrors

        public StreamObject.Builder addErrors​(int index,
                                              Error value)
         Output only. Active errors on the object.
         
        repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addErrors

        public StreamObject.Builder addErrors​(Error.Builder builderForValue)
         Output only. Active errors on the object.
         
        repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addErrors

        public StreamObject.Builder addErrors​(int index,
                                              Error.Builder builderForValue)
         Output only. Active errors on the object.
         
        repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addAllErrors

        public StreamObject.Builder addAllErrors​(Iterable<? extends Error> values)
         Output only. Active errors on the object.
         
        repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearErrors

        public StreamObject.Builder clearErrors()
         Output only. Active errors on the object.
         
        repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • removeErrors

        public StreamObject.Builder removeErrors​(int index)
         Output only. Active errors on the object.
         
        repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getErrorsBuilder

        public Error.Builder getErrorsBuilder​(int index)
         Output only. Active errors on the object.
         
        repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getErrorsOrBuilder

        public ErrorOrBuilder getErrorsOrBuilder​(int index)
         Output only. Active errors on the object.
         
        repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getErrorsOrBuilder in interface StreamObjectOrBuilder
      • getErrorsOrBuilderList

        public List<? extends ErrorOrBuilder> getErrorsOrBuilderList()
         Output only. Active errors on the object.
         
        repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getErrorsOrBuilderList in interface StreamObjectOrBuilder
      • addErrorsBuilder

        public Error.Builder addErrorsBuilder()
         Output only. Active errors on the object.
         
        repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addErrorsBuilder

        public Error.Builder addErrorsBuilder​(int index)
         Output only. Active errors on the object.
         
        repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getErrorsBuilderList

        public List<Error.Builder> getErrorsBuilderList()
         Output only. Active errors on the object.
         
        repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • hasBackfillJob

        public boolean hasBackfillJob()
         The latest backfill job that was initiated for the stream object.
         
        .google.cloud.datastream.v1.BackfillJob backfill_job = 7;
        Specified by:
        hasBackfillJob in interface StreamObjectOrBuilder
        Returns:
        Whether the backfillJob field is set.
      • getBackfillJob

        public BackfillJob getBackfillJob()
         The latest backfill job that was initiated for the stream object.
         
        .google.cloud.datastream.v1.BackfillJob backfill_job = 7;
        Specified by:
        getBackfillJob in interface StreamObjectOrBuilder
        Returns:
        The backfillJob.
      • setBackfillJob

        public StreamObject.Builder setBackfillJob​(BackfillJob value)
         The latest backfill job that was initiated for the stream object.
         
        .google.cloud.datastream.v1.BackfillJob backfill_job = 7;
      • setBackfillJob

        public StreamObject.Builder setBackfillJob​(BackfillJob.Builder builderForValue)
         The latest backfill job that was initiated for the stream object.
         
        .google.cloud.datastream.v1.BackfillJob backfill_job = 7;
      • mergeBackfillJob

        public StreamObject.Builder mergeBackfillJob​(BackfillJob value)
         The latest backfill job that was initiated for the stream object.
         
        .google.cloud.datastream.v1.BackfillJob backfill_job = 7;
      • clearBackfillJob

        public StreamObject.Builder clearBackfillJob()
         The latest backfill job that was initiated for the stream object.
         
        .google.cloud.datastream.v1.BackfillJob backfill_job = 7;
      • getBackfillJobBuilder

        public BackfillJob.Builder getBackfillJobBuilder()
         The latest backfill job that was initiated for the stream object.
         
        .google.cloud.datastream.v1.BackfillJob backfill_job = 7;
      • hasSourceObject

        public boolean hasSourceObject()
         The object identifier in the data source.
         
        .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8;
        Specified by:
        hasSourceObject in interface StreamObjectOrBuilder
        Returns:
        Whether the sourceObject field is set.
      • mergeSourceObject

        public StreamObject.Builder mergeSourceObject​(SourceObjectIdentifier value)
         The object identifier in the data source.
         
        .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8;
      • clearSourceObject

        public StreamObject.Builder clearSourceObject()
         The object identifier in the data source.
         
        .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8;
      • getSourceObjectBuilder

        public SourceObjectIdentifier.Builder getSourceObjectBuilder()
         The object identifier in the data source.
         
        .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8;
      • setUnknownFields

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

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