Package io.hstream.internal
Class Subscription.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>
-
- io.hstream.internal.Subscription.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,SubscriptionOrBuilder
,Cloneable
- Enclosing class:
- Subscription
public static final class Subscription.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder> implements SubscriptionOrBuilder
Protobuf typehstream.server.Subscription
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Subscription
build()
Subscription
buildPartial()
Subscription.Builder
clear()
Subscription.Builder
clearAckTimeoutSeconds()
int32 ackTimeoutSeconds = 3;
Subscription.Builder
clearCreationTime()
.google.protobuf.Timestamp creationTime = 6;
Subscription.Builder
clearMaxUnackedRecords()
int32 maxUnackedRecords = 4;
Subscription.Builder
clearOffset()
.hstream.server.SpecialOffset offset = 5;
Subscription.Builder
clearStreamName()
string streamName = 2;
Subscription.Builder
clearSubscriptionId()
string subscriptionId = 1;
int
getAckTimeoutSeconds()
int32 ackTimeoutSeconds = 3;
com.google.protobuf.Timestamp
getCreationTime()
.google.protobuf.Timestamp creationTime = 6;
com.google.protobuf.Timestamp.Builder
getCreationTimeBuilder()
.google.protobuf.Timestamp creationTime = 6;
com.google.protobuf.TimestampOrBuilder
getCreationTimeOrBuilder()
.google.protobuf.Timestamp creationTime = 6;
Subscription
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
int
getMaxUnackedRecords()
int32 maxUnackedRecords = 4;
SpecialOffset
getOffset()
.hstream.server.SpecialOffset offset = 5;
int
getOffsetValue()
.hstream.server.SpecialOffset offset = 5;
String
getStreamName()
string streamName = 2;
com.google.protobuf.ByteString
getStreamNameBytes()
string streamName = 2;
String
getSubscriptionId()
string subscriptionId = 1;
com.google.protobuf.ByteString
getSubscriptionIdBytes()
string subscriptionId = 1;
boolean
hasCreationTime()
.google.protobuf.Timestamp creationTime = 6;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Subscription.Builder
mergeCreationTime(com.google.protobuf.Timestamp value)
.google.protobuf.Timestamp creationTime = 6;
Subscription.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Subscription.Builder
mergeFrom(com.google.protobuf.Message other)
Subscription.Builder
mergeFrom(Subscription other)
Subscription.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Subscription.Builder
setAckTimeoutSeconds(int value)
int32 ackTimeoutSeconds = 3;
Subscription.Builder
setCreationTime(com.google.protobuf.Timestamp value)
.google.protobuf.Timestamp creationTime = 6;
Subscription.Builder
setCreationTime(com.google.protobuf.Timestamp.Builder builderForValue)
.google.protobuf.Timestamp creationTime = 6;
Subscription.Builder
setMaxUnackedRecords(int value)
int32 maxUnackedRecords = 4;
Subscription.Builder
setOffset(SpecialOffset value)
.hstream.server.SpecialOffset offset = 5;
Subscription.Builder
setOffsetValue(int value)
.hstream.server.SpecialOffset offset = 5;
Subscription.Builder
setStreamName(String value)
string streamName = 2;
Subscription.Builder
setStreamNameBytes(com.google.protobuf.ByteString value)
string streamName = 2;
Subscription.Builder
setSubscriptionId(String value)
string subscriptionId = 1;
Subscription.Builder
setSubscriptionIdBytes(com.google.protobuf.ByteString value)
string subscriptionId = 1;
Subscription.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<Subscription.Builder>
-
clear
public Subscription.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<Subscription.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<Subscription.Builder>
-
getDefaultInstanceForType
public Subscription getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Subscription build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Subscription buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public Subscription.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Subscription.Builder>
-
mergeFrom
public Subscription.Builder mergeFrom(Subscription other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>
-
mergeFrom
public Subscription.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<Subscription.Builder>
- Throws:
IOException
-
getSubscriptionId
public String getSubscriptionId()
string subscriptionId = 1;
- Specified by:
getSubscriptionId
in interfaceSubscriptionOrBuilder
- Returns:
- The subscriptionId.
-
getSubscriptionIdBytes
public com.google.protobuf.ByteString getSubscriptionIdBytes()
string subscriptionId = 1;
- Specified by:
getSubscriptionIdBytes
in interfaceSubscriptionOrBuilder
- Returns:
- The bytes for subscriptionId.
-
setSubscriptionId
public Subscription.Builder setSubscriptionId(String value)
string subscriptionId = 1;
- Parameters:
value
- The subscriptionId to set.- Returns:
- This builder for chaining.
-
clearSubscriptionId
public Subscription.Builder clearSubscriptionId()
string subscriptionId = 1;
- Returns:
- This builder for chaining.
-
setSubscriptionIdBytes
public Subscription.Builder setSubscriptionIdBytes(com.google.protobuf.ByteString value)
string subscriptionId = 1;
- Parameters:
value
- The bytes for subscriptionId to set.- Returns:
- This builder for chaining.
-
getStreamName
public String getStreamName()
string streamName = 2;
- Specified by:
getStreamName
in interfaceSubscriptionOrBuilder
- Returns:
- The streamName.
-
getStreamNameBytes
public com.google.protobuf.ByteString getStreamNameBytes()
string streamName = 2;
- Specified by:
getStreamNameBytes
in interfaceSubscriptionOrBuilder
- Returns:
- The bytes for streamName.
-
setStreamName
public Subscription.Builder setStreamName(String value)
string streamName = 2;
- Parameters:
value
- The streamName to set.- Returns:
- This builder for chaining.
-
clearStreamName
public Subscription.Builder clearStreamName()
string streamName = 2;
- Returns:
- This builder for chaining.
-
setStreamNameBytes
public Subscription.Builder setStreamNameBytes(com.google.protobuf.ByteString value)
string streamName = 2;
- Parameters:
value
- The bytes for streamName to set.- Returns:
- This builder for chaining.
-
getAckTimeoutSeconds
public int getAckTimeoutSeconds()
int32 ackTimeoutSeconds = 3;
- Specified by:
getAckTimeoutSeconds
in interfaceSubscriptionOrBuilder
- Returns:
- The ackTimeoutSeconds.
-
setAckTimeoutSeconds
public Subscription.Builder setAckTimeoutSeconds(int value)
int32 ackTimeoutSeconds = 3;
- Parameters:
value
- The ackTimeoutSeconds to set.- Returns:
- This builder for chaining.
-
clearAckTimeoutSeconds
public Subscription.Builder clearAckTimeoutSeconds()
int32 ackTimeoutSeconds = 3;
- Returns:
- This builder for chaining.
-
getMaxUnackedRecords
public int getMaxUnackedRecords()
int32 maxUnackedRecords = 4;
- Specified by:
getMaxUnackedRecords
in interfaceSubscriptionOrBuilder
- Returns:
- The maxUnackedRecords.
-
setMaxUnackedRecords
public Subscription.Builder setMaxUnackedRecords(int value)
int32 maxUnackedRecords = 4;
- Parameters:
value
- The maxUnackedRecords to set.- Returns:
- This builder for chaining.
-
clearMaxUnackedRecords
public Subscription.Builder clearMaxUnackedRecords()
int32 maxUnackedRecords = 4;
- Returns:
- This builder for chaining.
-
getOffsetValue
public int getOffsetValue()
.hstream.server.SpecialOffset offset = 5;
- Specified by:
getOffsetValue
in interfaceSubscriptionOrBuilder
- Returns:
- The enum numeric value on the wire for offset.
-
setOffsetValue
public Subscription.Builder setOffsetValue(int value)
.hstream.server.SpecialOffset offset = 5;
- Parameters:
value
- The enum numeric value on the wire for offset to set.- Returns:
- This builder for chaining.
-
getOffset
public SpecialOffset getOffset()
.hstream.server.SpecialOffset offset = 5;
- Specified by:
getOffset
in interfaceSubscriptionOrBuilder
- Returns:
- The offset.
-
setOffset
public Subscription.Builder setOffset(SpecialOffset value)
.hstream.server.SpecialOffset offset = 5;
- Parameters:
value
- The offset to set.- Returns:
- This builder for chaining.
-
clearOffset
public Subscription.Builder clearOffset()
.hstream.server.SpecialOffset offset = 5;
- Returns:
- This builder for chaining.
-
hasCreationTime
public boolean hasCreationTime()
.google.protobuf.Timestamp creationTime = 6;
- Specified by:
hasCreationTime
in interfaceSubscriptionOrBuilder
- Returns:
- Whether the creationTime field is set.
-
getCreationTime
public com.google.protobuf.Timestamp getCreationTime()
.google.protobuf.Timestamp creationTime = 6;
- Specified by:
getCreationTime
in interfaceSubscriptionOrBuilder
- Returns:
- The creationTime.
-
setCreationTime
public Subscription.Builder setCreationTime(com.google.protobuf.Timestamp value)
.google.protobuf.Timestamp creationTime = 6;
-
setCreationTime
public Subscription.Builder setCreationTime(com.google.protobuf.Timestamp.Builder builderForValue)
.google.protobuf.Timestamp creationTime = 6;
-
mergeCreationTime
public Subscription.Builder mergeCreationTime(com.google.protobuf.Timestamp value)
.google.protobuf.Timestamp creationTime = 6;
-
clearCreationTime
public Subscription.Builder clearCreationTime()
.google.protobuf.Timestamp creationTime = 6;
-
getCreationTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreationTimeBuilder()
.google.protobuf.Timestamp creationTime = 6;
-
getCreationTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder()
.google.protobuf.Timestamp creationTime = 6;
- Specified by:
getCreationTimeOrBuilder
in interfaceSubscriptionOrBuilder
-
setUnknownFields
public final Subscription.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>
-
mergeUnknownFields
public final Subscription.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Subscription.Builder>
-
-