Package com.google.cloud.datastream.v1
Class Stream.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder>
-
- com.google.cloud.datastream.v1.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 typegoogle.cloud.datastream.v1.Stream
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Stream.Builder
addAllErrors(Iterable<? extends Error> values)
Output only.Stream.Builder
addErrors(int index, Error value)
Output only.Stream.Builder
addErrors(int index, Error.Builder builderForValue)
Output only.Stream.Builder
addErrors(Error value)
Output only.Stream.Builder
addErrors(Error.Builder builderForValue)
Output only.Error.Builder
addErrorsBuilder()
Output only.Error.Builder
addErrorsBuilder(int index)
Output only.Stream.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Stream
build()
Stream
buildPartial()
Stream.Builder
clear()
Stream.Builder
clearBackfillAll()
Automatically backfill objects included in the stream source configuration.Stream.Builder
clearBackfillNone()
Do not automatically backfill any objects.Stream.Builder
clearBackfillStrategy()
Stream.Builder
clearCreateTime()
Output only.Stream.Builder
clearCustomerManagedEncryptionKey()
Immutable.Stream.Builder
clearDestinationConfig()
Required.Stream.Builder
clearDisplayName()
Required.Stream.Builder
clearErrors()
Output only.Stream.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Stream.Builder
clearLabels()
Stream.Builder
clearName()
Output only.Stream.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Stream.Builder
clearSourceConfig()
Required.Stream.Builder
clearState()
The state of the stream.Stream.Builder
clearUpdateTime()
Output only.Stream.Builder
clone()
boolean
containsLabels(String key)
Labels.Stream.BackfillAllStrategy
getBackfillAll()
Automatically backfill objects included in the stream source configuration.Stream.BackfillAllStrategy.Builder
getBackfillAllBuilder()
Automatically backfill objects included in the stream source configuration.Stream.BackfillAllStrategyOrBuilder
getBackfillAllOrBuilder()
Automatically backfill objects included in the stream source configuration.Stream.BackfillNoneStrategy
getBackfillNone()
Do not automatically backfill any objects.Stream.BackfillNoneStrategy.Builder
getBackfillNoneBuilder()
Do not automatically backfill any objects.Stream.BackfillNoneStrategyOrBuilder
getBackfillNoneOrBuilder()
Do not automatically backfill any objects.Stream.BackfillStrategyCase
getBackfillStrategyCase()
com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.Timestamp.Builder
getCreateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.String
getCustomerManagedEncryptionKey()
Immutable.com.google.protobuf.ByteString
getCustomerManagedEncryptionKeyBytes()
Immutable.Stream
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
DestinationConfig
getDestinationConfig()
Required.DestinationConfig.Builder
getDestinationConfigBuilder()
Required.DestinationConfigOrBuilder
getDestinationConfigOrBuilder()
Required.String
getDisplayName()
Required.com.google.protobuf.ByteString
getDisplayNameBytes()
Required.Error
getErrors(int index)
Output only.Error.Builder
getErrorsBuilder(int index)
Output only.List<Error.Builder>
getErrorsBuilderList()
Output only.int
getErrorsCount()
Output only.List<Error>
getErrorsList()
Output only.ErrorOrBuilder
getErrorsOrBuilder(int index)
Output only.List<? extends ErrorOrBuilder>
getErrorsOrBuilderList()
Output only.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Labels.Map<String,String>
getLabelsMap()
Labels.String
getLabelsOrDefault(String key, String defaultValue)
Labels.String
getLabelsOrThrow(String key)
Labels.Map<String,String>
getMutableLabels()
Deprecated.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.SourceConfig
getSourceConfig()
Required.SourceConfig.Builder
getSourceConfigBuilder()
Required.SourceConfigOrBuilder
getSourceConfigOrBuilder()
Required.Stream.State
getState()
The state of the stream.int
getStateValue()
The state of the stream.com.google.protobuf.Timestamp
getUpdateTime()
Output only.com.google.protobuf.Timestamp.Builder
getUpdateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getUpdateTimeOrBuilder()
Output only.boolean
hasBackfillAll()
Automatically backfill objects included in the stream source configuration.boolean
hasBackfillNone()
Do not automatically backfill any objects.boolean
hasCreateTime()
Output only.boolean
hasCustomerManagedEncryptionKey()
Immutable.boolean
hasDestinationConfig()
Required.boolean
hasSourceConfig()
Required.boolean
hasUpdateTime()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
Stream.Builder
mergeBackfillAll(Stream.BackfillAllStrategy value)
Automatically backfill objects included in the stream source configuration.Stream.Builder
mergeBackfillNone(Stream.BackfillNoneStrategy value)
Do not automatically backfill any objects.Stream.Builder
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.Stream.Builder
mergeDestinationConfig(DestinationConfig value)
Required.Stream.Builder
mergeFrom(Stream other)
Stream.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Stream.Builder
mergeFrom(com.google.protobuf.Message other)
Stream.Builder
mergeSourceConfig(SourceConfig value)
Required.Stream.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Stream.Builder
mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only.Stream.Builder
putAllLabels(Map<String,String> values)
Labels.Stream.Builder
putLabels(String key, String value)
Labels.Stream.Builder
removeErrors(int index)
Output only.Stream.Builder
removeLabels(String key)
Labels.Stream.Builder
setBackfillAll(Stream.BackfillAllStrategy value)
Automatically backfill objects included in the stream source configuration.Stream.Builder
setBackfillAll(Stream.BackfillAllStrategy.Builder builderForValue)
Automatically backfill objects included in the stream source configuration.Stream.Builder
setBackfillNone(Stream.BackfillNoneStrategy value)
Do not automatically backfill any objects.Stream.Builder
setBackfillNone(Stream.BackfillNoneStrategy.Builder builderForValue)
Do not automatically backfill any objects.Stream.Builder
setCreateTime(com.google.protobuf.Timestamp value)
Output only.Stream.Builder
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.Stream.Builder
setCustomerManagedEncryptionKey(String value)
Immutable.Stream.Builder
setCustomerManagedEncryptionKeyBytes(com.google.protobuf.ByteString value)
Immutable.Stream.Builder
setDestinationConfig(DestinationConfig value)
Required.Stream.Builder
setDestinationConfig(DestinationConfig.Builder builderForValue)
Required.Stream.Builder
setDisplayName(String value)
Required.Stream.Builder
setDisplayNameBytes(com.google.protobuf.ByteString value)
Required.Stream.Builder
setErrors(int index, Error value)
Output only.Stream.Builder
setErrors(int index, Error.Builder builderForValue)
Output only.Stream.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Stream.Builder
setName(String value)
Output only.Stream.Builder
setNameBytes(com.google.protobuf.ByteString value)
Output only.Stream.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Stream.Builder
setSourceConfig(SourceConfig value)
Required.Stream.Builder
setSourceConfig(SourceConfig.Builder builderForValue)
Required.Stream.Builder
setState(Stream.State value)
The state of the stream.Stream.Builder
setStateValue(int value)
The state of the stream.Stream.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Stream.Builder
setUpdateTime(com.google.protobuf.Timestamp value)
Output only.Stream.Builder
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder>
-
clear
public Stream.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder>
-
getDefaultInstanceForType
public Stream getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Stream build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Stream buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Stream.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder>
-
setField
public Stream.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder>
-
clearField
public Stream.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder>
-
clearOneof
public Stream.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder>
-
addRepeatedField
public Stream.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder>
-
mergeFrom
public Stream.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Stream.Builder>
-
mergeFrom
public Stream.Builder mergeFrom(Stream other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Stream.Builder>
- Throws:
IOException
-
getBackfillStrategyCase
public Stream.BackfillStrategyCase getBackfillStrategyCase()
- Specified by:
getBackfillStrategyCase
in interfaceStreamOrBuilder
-
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 interfaceStreamOrBuilder
- 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 interfaceStreamOrBuilder
- 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 interfaceStreamOrBuilder
- 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 interfaceStreamOrBuilder
- 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 interfaceStreamOrBuilder
-
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 interfaceStreamOrBuilder
- 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 interfaceStreamOrBuilder
- 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 interfaceStreamOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:StreamOrBuilder
Labels.
map<string, string> labels = 4;
- Specified by:
getLabelsCount
in interfaceStreamOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels.
map<string, string> labels = 4;
- Specified by:
containsLabels
in interfaceStreamOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceStreamOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels.
map<string, string> labels = 4;
- Specified by:
getLabelsMap
in interfaceStreamOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels.
map<string, string> labels = 4;
- Specified by:
getLabelsOrDefault
in interfaceStreamOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels.
map<string, string> labels = 4;
- Specified by:
getLabelsOrThrow
in interfaceStreamOrBuilder
-
clearLabels
public Stream.Builder clearLabels()
-
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.
-
putLabels
public Stream.Builder putLabels(String key, String value)
Labels.
map<string, string> labels = 4;
-
putAllLabels
public Stream.Builder putAllLabels(Map<String,String> values)
Labels.
map<string, string> labels = 4;
-
getDisplayName
public String getDisplayName()
Required. Display name.
string display_name = 5 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getDisplayName
in interfaceStreamOrBuilder
- 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 interfaceStreamOrBuilder
- 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 interfaceStreamOrBuilder
- 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 interfaceStreamOrBuilder
- 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 interfaceStreamOrBuilder
-
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 interfaceStreamOrBuilder
- 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 interfaceStreamOrBuilder
- 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];
-
getDestinationConfigOrBuilder
public DestinationConfigOrBuilder getDestinationConfigOrBuilder()
Required. Destination connection profile configuration.
.google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getDestinationConfigOrBuilder
in interfaceStreamOrBuilder
-
getStateValue
public int getStateValue()
The state of the stream.
.google.cloud.datastream.v1.Stream.State state = 8;
- Specified by:
getStateValue
in interfaceStreamOrBuilder
- 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 interfaceStreamOrBuilder
- 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 interfaceStreamOrBuilder
- 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 interfaceStreamOrBuilder
- 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;
-
getBackfillAllOrBuilder
public Stream.BackfillAllStrategyOrBuilder getBackfillAllOrBuilder()
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:
getBackfillAllOrBuilder
in interfaceStreamOrBuilder
-
hasBackfillNone
public boolean hasBackfillNone()
Do not automatically backfill any objects.
.google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102;
- Specified by:
hasBackfillNone
in interfaceStreamOrBuilder
- Returns:
- Whether the backfillNone field is set.
-
getBackfillNone
public Stream.BackfillNoneStrategy getBackfillNone()
Do not automatically backfill any objects.
.google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102;
- Specified by:
getBackfillNone
in interfaceStreamOrBuilder
- Returns:
- The backfillNone.
-
setBackfillNone
public Stream.Builder setBackfillNone(Stream.BackfillNoneStrategy value)
Do not automatically backfill any objects.
.google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102;
-
setBackfillNone
public Stream.Builder setBackfillNone(Stream.BackfillNoneStrategy.Builder builderForValue)
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;
-
getBackfillNoneOrBuilder
public Stream.BackfillNoneStrategyOrBuilder getBackfillNoneOrBuilder()
Do not automatically backfill any objects.
.google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102;
- Specified by:
getBackfillNoneOrBuilder
in interfaceStreamOrBuilder
-
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 interfaceStreamOrBuilder
-
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 interfaceStreamOrBuilder
-
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 interfaceStreamOrBuilder
-
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 interfaceStreamOrBuilder
-
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 interfaceStreamOrBuilder
-
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 interfaceStreamOrBuilder
- 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 interfaceStreamOrBuilder
- 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 interfaceStreamOrBuilder
- 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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder>
-
mergeUnknownFields
public final Stream.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder>
-
-