Class AppendRequest.Builder

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

    public static final class AppendRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<AppendRequest.Builder>
    implements AppendRequestOrBuilder
    Protobuf type hstream.server.AppendRequest
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

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

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

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

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

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

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

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

        public AppendRequest.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<AppendRequest.Builder>
        Throws:
        IOException
      • getStreamNameBytes

        public com.google.protobuf.ByteString getStreamNameBytes()
        string streamName = 1;
        Specified by:
        getStreamNameBytes in interface AppendRequestOrBuilder
        Returns:
        The bytes for streamName.
      • setStreamName

        public AppendRequest.Builder setStreamName​(String value)
        string streamName = 1;
        Parameters:
        value - The streamName to set.
        Returns:
        This builder for chaining.
      • clearStreamName

        public AppendRequest.Builder clearStreamName()
        string streamName = 1;
        Returns:
        This builder for chaining.
      • setStreamNameBytes

        public AppendRequest.Builder setStreamNameBytes​(com.google.protobuf.ByteString value)
        string streamName = 1;
        Parameters:
        value - The bytes for streamName to set.
        Returns:
        This builder for chaining.
      • setShardId

        public AppendRequest.Builder setShardId​(long value)
        uint64 shardId = 2;
        Parameters:
        value - The shardId to set.
        Returns:
        This builder for chaining.
      • clearShardId

        public AppendRequest.Builder clearShardId()
        uint64 shardId = 2;
        Returns:
        This builder for chaining.
      • hasRecords

        public boolean hasRecords()
        .hstream.server.BatchedRecord records = 3;
        Specified by:
        hasRecords in interface AppendRequestOrBuilder
        Returns:
        Whether the records field is set.
      • getRecordsBuilder

        public BatchedRecord.Builder getRecordsBuilder()
        .hstream.server.BatchedRecord records = 3;
      • setUnknownFields

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

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