Class Stream.Builder

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

    public static final class Stream.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder>
    implements StreamOrBuilder
     A resource representing streaming data from a source to a destination.
     
    Protobuf type google.cloud.datastream.v1.Stream
    • 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<Stream.Builder>
      • internalGetMutableMapField

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public Stream.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<Stream.Builder>
        Throws:
        IOException
      • clearBackfillStrategy

        public Stream.Builder clearBackfillStrategy()
      • getName

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

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

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

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

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

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

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

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

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

        public Stream.Builder clearCreateTime()
         Output only. The creation time of the stream.
         
        .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 stream.
         
        .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 stream.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface StreamOrBuilder
      • hasUpdateTime

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

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

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

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

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

        public Stream.Builder clearUpdateTime()
         Output only. The last update time of the stream.
         
        .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 stream.
         
        .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 stream.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface StreamOrBuilder
      • removeLabels

        public Stream.Builder removeLabels​(String key)
         Labels.
         
        map<string, string> labels = 4;
      • 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 StreamOrBuilder
        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 StreamOrBuilder
        Returns:
        The bytes for displayName.
      • setDisplayName

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

        public Stream.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.
      • hasSourceConfig

        public boolean hasSourceConfig()
         Required. Source connection profile configuration.
         
        .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasSourceConfig in interface StreamOrBuilder
        Returns:
        Whether the sourceConfig field is set.
      • getSourceConfig

        public SourceConfig getSourceConfig()
         Required. Source connection profile configuration.
         
        .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getSourceConfig in interface StreamOrBuilder
        Returns:
        The sourceConfig.
      • setSourceConfig

        public Stream.Builder setSourceConfig​(SourceConfig value)
         Required. Source connection profile configuration.
         
        .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED];
      • setSourceConfig

        public Stream.Builder setSourceConfig​(SourceConfig.Builder builderForValue)
         Required. Source connection profile configuration.
         
        .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED];
      • mergeSourceConfig

        public Stream.Builder mergeSourceConfig​(SourceConfig value)
         Required. Source connection profile configuration.
         
        .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED];
      • clearSourceConfig

        public Stream.Builder clearSourceConfig()
         Required. Source connection profile configuration.
         
        .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED];
      • getSourceConfigBuilder

        public SourceConfig.Builder getSourceConfigBuilder()
         Required. Source connection profile configuration.
         
        .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED];
      • getSourceConfigOrBuilder

        public SourceConfigOrBuilder getSourceConfigOrBuilder()
         Required. Source connection profile configuration.
         
        .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getSourceConfigOrBuilder in interface StreamOrBuilder
      • hasDestinationConfig

        public boolean hasDestinationConfig()
         Required. Destination connection profile configuration.
         
        .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasDestinationConfig in interface StreamOrBuilder
        Returns:
        Whether the destinationConfig field is set.
      • getDestinationConfig

        public DestinationConfig getDestinationConfig()
         Required. Destination connection profile configuration.
         
        .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDestinationConfig in interface StreamOrBuilder
        Returns:
        The destinationConfig.
      • setDestinationConfig

        public Stream.Builder setDestinationConfig​(DestinationConfig value)
         Required. Destination connection profile configuration.
         
        .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED];
      • setDestinationConfig

        public Stream.Builder setDestinationConfig​(DestinationConfig.Builder builderForValue)
         Required. Destination connection profile configuration.
         
        .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED];
      • mergeDestinationConfig

        public Stream.Builder mergeDestinationConfig​(DestinationConfig value)
         Required. Destination connection profile configuration.
         
        .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED];
      • clearDestinationConfig

        public Stream.Builder clearDestinationConfig()
         Required. Destination connection profile configuration.
         
        .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED];
      • getDestinationConfigBuilder

        public DestinationConfig.Builder getDestinationConfigBuilder()
         Required. Destination connection profile configuration.
         
        .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED];
      • getStateValue

        public int getStateValue()
         The state of the stream.
         
        .google.cloud.datastream.v1.Stream.State state = 8;
        Specified by:
        getStateValue in interface StreamOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public Stream.Builder setStateValue​(int value)
         The state of the stream.
         
        .google.cloud.datastream.v1.Stream.State state = 8;
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • getState

        public Stream.State getState()
         The state of the stream.
         
        .google.cloud.datastream.v1.Stream.State state = 8;
        Specified by:
        getState in interface StreamOrBuilder
        Returns:
        The state.
      • setState

        public Stream.Builder setState​(Stream.State value)
         The state of the stream.
         
        .google.cloud.datastream.v1.Stream.State state = 8;
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public Stream.Builder clearState()
         The state of the stream.
         
        .google.cloud.datastream.v1.Stream.State state = 8;
        Returns:
        This builder for chaining.
      • hasBackfillAll

        public boolean hasBackfillAll()
         Automatically backfill objects included in the stream source
         configuration. Specific objects can be excluded.
         
        .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101;
        Specified by:
        hasBackfillAll in interface StreamOrBuilder
        Returns:
        Whether the backfillAll field is set.
      • getBackfillAll

        public Stream.BackfillAllStrategy getBackfillAll()
         Automatically backfill objects included in the stream source
         configuration. Specific objects can be excluded.
         
        .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101;
        Specified by:
        getBackfillAll in interface StreamOrBuilder
        Returns:
        The backfillAll.
      • setBackfillAll

        public Stream.Builder setBackfillAll​(Stream.BackfillAllStrategy value)
         Automatically backfill objects included in the stream source
         configuration. Specific objects can be excluded.
         
        .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101;
      • setBackfillAll

        public Stream.Builder setBackfillAll​(Stream.BackfillAllStrategy.Builder builderForValue)
         Automatically backfill objects included in the stream source
         configuration. Specific objects can be excluded.
         
        .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101;
      • mergeBackfillAll

        public Stream.Builder mergeBackfillAll​(Stream.BackfillAllStrategy value)
         Automatically backfill objects included in the stream source
         configuration. Specific objects can be excluded.
         
        .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101;
      • clearBackfillAll

        public Stream.Builder clearBackfillAll()
         Automatically backfill objects included in the stream source
         configuration. Specific objects can be excluded.
         
        .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101;
      • getBackfillAllBuilder

        public Stream.BackfillAllStrategy.Builder getBackfillAllBuilder()
         Automatically backfill objects included in the stream source
         configuration. Specific objects can be excluded.
         
        .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101;
      • hasBackfillNone

        public boolean hasBackfillNone()
         Do not automatically backfill any objects.
         
        .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102;
        Specified by:
        hasBackfillNone in interface StreamOrBuilder
        Returns:
        Whether the backfillNone field is set.
      • setBackfillNone

        public Stream.Builder setBackfillNone​(Stream.BackfillNoneStrategy value)
         Do not automatically backfill any objects.
         
        .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102;
      • mergeBackfillNone

        public Stream.Builder mergeBackfillNone​(Stream.BackfillNoneStrategy value)
         Do not automatically backfill any objects.
         
        .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102;
      • clearBackfillNone

        public Stream.Builder clearBackfillNone()
         Do not automatically backfill any objects.
         
        .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102;
      • getBackfillNoneBuilder

        public Stream.BackfillNoneStrategy.Builder getBackfillNoneBuilder()
         Do not automatically backfill any objects.
         
        .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102;
      • getErrorsList

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

        public int getErrorsCount()
         Output only. Errors on the Stream.
         
        repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getErrorsCount in interface StreamOrBuilder
      • getErrors

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

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

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

        public Stream.Builder addErrors​(Error value)
         Output only. Errors on the Stream.
         
        repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addErrors

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

        public Stream.Builder addErrors​(Error.Builder builderForValue)
         Output only. Errors on the Stream.
         
        repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addErrors

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

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

        public Stream.Builder clearErrors()
         Output only. Errors on the Stream.
         
        repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • removeErrors

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

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

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

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

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

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

        public List<Error.Builder> getErrorsBuilderList()
         Output only. Errors on the Stream.
         
        repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • hasCustomerManagedEncryptionKey

        public boolean hasCustomerManagedEncryptionKey()
         Immutable. A reference to a KMS encryption key.
         If provided, it will be used to encrypt the data.
         If left blank, data will be encrypted using an internal Stream-specific
         encryption key provisioned through KMS.
         
        optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        hasCustomerManagedEncryptionKey in interface StreamOrBuilder
        Returns:
        Whether the customerManagedEncryptionKey field is set.
      • getCustomerManagedEncryptionKey

        public String getCustomerManagedEncryptionKey()
         Immutable. A reference to a KMS encryption key.
         If provided, it will be used to encrypt the data.
         If left blank, data will be encrypted using an internal Stream-specific
         encryption key provisioned through KMS.
         
        optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getCustomerManagedEncryptionKey in interface StreamOrBuilder
        Returns:
        The customerManagedEncryptionKey.
      • getCustomerManagedEncryptionKeyBytes

        public com.google.protobuf.ByteString getCustomerManagedEncryptionKeyBytes()
         Immutable. A reference to a KMS encryption key.
         If provided, it will be used to encrypt the data.
         If left blank, data will be encrypted using an internal Stream-specific
         encryption key provisioned through KMS.
         
        optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getCustomerManagedEncryptionKeyBytes in interface StreamOrBuilder
        Returns:
        The bytes for customerManagedEncryptionKey.
      • setCustomerManagedEncryptionKey

        public Stream.Builder setCustomerManagedEncryptionKey​(String value)
         Immutable. A reference to a KMS encryption key.
         If provided, it will be used to encrypt the data.
         If left blank, data will be encrypted using an internal Stream-specific
         encryption key provisioned through KMS.
         
        optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The customerManagedEncryptionKey to set.
        Returns:
        This builder for chaining.
      • clearCustomerManagedEncryptionKey

        public Stream.Builder clearCustomerManagedEncryptionKey()
         Immutable. A reference to a KMS encryption key.
         If provided, it will be used to encrypt the data.
         If left blank, data will be encrypted using an internal Stream-specific
         encryption key provisioned through KMS.
         
        optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE];
        Returns:
        This builder for chaining.
      • setCustomerManagedEncryptionKeyBytes

        public Stream.Builder setCustomerManagedEncryptionKeyBytes​(com.google.protobuf.ByteString value)
         Immutable. A reference to a KMS encryption key.
         If provided, it will be used to encrypt the data.
         If left blank, data will be encrypted using an internal Stream-specific
         encryption key provisioned through KMS.
         
        optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The bytes for customerManagedEncryptionKey to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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