Package io.hstream.internal
Class Stream.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder>
-
- io.hstream.internal.Stream.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,StreamOrBuilder
,Cloneable
- Enclosing class:
- Stream
public static final class Stream.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Stream.Builder> implements StreamOrBuilder
Protobuf typehstream.server.Stream
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stream
build()
Stream
buildPartial()
Stream.Builder
clear()
Stream.Builder
clearBacklogDuration()
uint32 backlogDuration = 3;
Stream.Builder
clearCreationTime()
.google.protobuf.Timestamp creationTime = 5;
Stream.Builder
clearReplicationFactor()
uint32 replicationFactor = 2;
Stream.Builder
clearShardCount()
uint32 shardCount = 4;
Stream.Builder
clearStreamName()
string streamName = 1;
int
getBacklogDuration()
uint32 backlogDuration = 3;
com.google.protobuf.Timestamp
getCreationTime()
.google.protobuf.Timestamp creationTime = 5;
com.google.protobuf.Timestamp.Builder
getCreationTimeBuilder()
.google.protobuf.Timestamp creationTime = 5;
com.google.protobuf.TimestampOrBuilder
getCreationTimeOrBuilder()
.google.protobuf.Timestamp creationTime = 5;
Stream
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
int
getReplicationFactor()
uint32 replicationFactor = 2;
int
getShardCount()
uint32 shardCount = 4;
String
getStreamName()
string streamName = 1;
com.google.protobuf.ByteString
getStreamNameBytes()
string streamName = 1;
boolean
hasCreationTime()
.google.protobuf.Timestamp creationTime = 5;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Stream.Builder
mergeCreationTime(com.google.protobuf.Timestamp value)
.google.protobuf.Timestamp creationTime = 5;
Stream.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Stream.Builder
mergeFrom(com.google.protobuf.Message other)
Stream.Builder
mergeFrom(Stream other)
Stream.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Stream.Builder
setBacklogDuration(int value)
uint32 backlogDuration = 3;
Stream.Builder
setCreationTime(com.google.protobuf.Timestamp value)
.google.protobuf.Timestamp creationTime = 5;
Stream.Builder
setCreationTime(com.google.protobuf.Timestamp.Builder builderForValue)
.google.protobuf.Timestamp creationTime = 5;
Stream.Builder
setReplicationFactor(int value)
uint32 replicationFactor = 2;
Stream.Builder
setShardCount(int value)
uint32 shardCount = 4;
Stream.Builder
setStreamName(String value)
string streamName = 1;
Stream.Builder
setStreamNameBytes(com.google.protobuf.ByteString value)
string streamName = 1;
Stream.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, 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()
-
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
-
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
-
getStreamName
public String getStreamName()
string streamName = 1;
- Specified by:
getStreamName
in interfaceStreamOrBuilder
- Returns:
- The streamName.
-
getStreamNameBytes
public com.google.protobuf.ByteString getStreamNameBytes()
string streamName = 1;
- Specified by:
getStreamNameBytes
in interfaceStreamOrBuilder
- Returns:
- The bytes for streamName.
-
setStreamName
public Stream.Builder setStreamName(String value)
string streamName = 1;
- Parameters:
value
- The streamName to set.- Returns:
- This builder for chaining.
-
clearStreamName
public Stream.Builder clearStreamName()
string streamName = 1;
- Returns:
- This builder for chaining.
-
setStreamNameBytes
public Stream.Builder setStreamNameBytes(com.google.protobuf.ByteString value)
string streamName = 1;
- Parameters:
value
- The bytes for streamName to set.- Returns:
- This builder for chaining.
-
getReplicationFactor
public int getReplicationFactor()
uint32 replicationFactor = 2;
- Specified by:
getReplicationFactor
in interfaceStreamOrBuilder
- Returns:
- The replicationFactor.
-
setReplicationFactor
public Stream.Builder setReplicationFactor(int value)
uint32 replicationFactor = 2;
- Parameters:
value
- The replicationFactor to set.- Returns:
- This builder for chaining.
-
clearReplicationFactor
public Stream.Builder clearReplicationFactor()
uint32 replicationFactor = 2;
- Returns:
- This builder for chaining.
-
getBacklogDuration
public int getBacklogDuration()
uint32 backlogDuration = 3;
- Specified by:
getBacklogDuration
in interfaceStreamOrBuilder
- Returns:
- The backlogDuration.
-
setBacklogDuration
public Stream.Builder setBacklogDuration(int value)
uint32 backlogDuration = 3;
- Parameters:
value
- The backlogDuration to set.- Returns:
- This builder for chaining.
-
clearBacklogDuration
public Stream.Builder clearBacklogDuration()
uint32 backlogDuration = 3;
- Returns:
- This builder for chaining.
-
getShardCount
public int getShardCount()
uint32 shardCount = 4;
- Specified by:
getShardCount
in interfaceStreamOrBuilder
- Returns:
- The shardCount.
-
setShardCount
public Stream.Builder setShardCount(int value)
uint32 shardCount = 4;
- Parameters:
value
- The shardCount to set.- Returns:
- This builder for chaining.
-
clearShardCount
public Stream.Builder clearShardCount()
uint32 shardCount = 4;
- Returns:
- This builder for chaining.
-
hasCreationTime
public boolean hasCreationTime()
.google.protobuf.Timestamp creationTime = 5;
- Specified by:
hasCreationTime
in interfaceStreamOrBuilder
- Returns:
- Whether the creationTime field is set.
-
getCreationTime
public com.google.protobuf.Timestamp getCreationTime()
.google.protobuf.Timestamp creationTime = 5;
- Specified by:
getCreationTime
in interfaceStreamOrBuilder
- Returns:
- The creationTime.
-
setCreationTime
public Stream.Builder setCreationTime(com.google.protobuf.Timestamp value)
.google.protobuf.Timestamp creationTime = 5;
-
setCreationTime
public Stream.Builder setCreationTime(com.google.protobuf.Timestamp.Builder builderForValue)
.google.protobuf.Timestamp creationTime = 5;
-
mergeCreationTime
public Stream.Builder mergeCreationTime(com.google.protobuf.Timestamp value)
.google.protobuf.Timestamp creationTime = 5;
-
clearCreationTime
public Stream.Builder clearCreationTime()
.google.protobuf.Timestamp creationTime = 5;
-
getCreationTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreationTimeBuilder()
.google.protobuf.Timestamp creationTime = 5;
-
getCreationTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder()
.google.protobuf.Timestamp creationTime = 5;
- Specified by:
getCreationTimeOrBuilder
in interfaceStreamOrBuilder
-
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>
-
-