Class Collections.LocalShardInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Collections.LocalShardInfo.Builder>
io.qdrant.client.grpc.Collections.LocalShardInfo.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Collections.LocalShardInfoOrBuilder, Cloneable
Enclosing class:
Collections.LocalShardInfo

public static final class Collections.LocalShardInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Collections.LocalShardInfo.Builder> implements Collections.LocalShardInfoOrBuilder
Protobuf type qdrant.LocalShardInfo
  • Method Details

    • 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<Collections.LocalShardInfo.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<Collections.LocalShardInfo.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<Collections.LocalShardInfo.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Collections.LocalShardInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<Collections.LocalShardInfo.Builder>
    • setField

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

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

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

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

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

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

    • isInitialized

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

      public Collections.LocalShardInfo.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<Collections.LocalShardInfo.Builder>
      Throws:
      IOException
    • getShardId

      public int getShardId()
       Local shard id
       
      uint32 shard_id = 1;
      Specified by:
      getShardId in interface Collections.LocalShardInfoOrBuilder
      Returns:
      The shardId.
    • setShardId

      public Collections.LocalShardInfo.Builder setShardId(int value)
       Local shard id
       
      uint32 shard_id = 1;
      Parameters:
      value - The shardId to set.
      Returns:
      This builder for chaining.
    • clearShardId

      public Collections.LocalShardInfo.Builder clearShardId()
       Local shard id
       
      uint32 shard_id = 1;
      Returns:
      This builder for chaining.
    • getPointsCount

      public long getPointsCount()
       Number of points in the shard
       
      uint64 points_count = 2;
      Specified by:
      getPointsCount in interface Collections.LocalShardInfoOrBuilder
      Returns:
      The pointsCount.
    • setPointsCount

      public Collections.LocalShardInfo.Builder setPointsCount(long value)
       Number of points in the shard
       
      uint64 points_count = 2;
      Parameters:
      value - The pointsCount to set.
      Returns:
      This builder for chaining.
    • clearPointsCount

      public Collections.LocalShardInfo.Builder clearPointsCount()
       Number of points in the shard
       
      uint64 points_count = 2;
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Is replica active
       
      .qdrant.ReplicaState state = 3;
      Specified by:
      getStateValue in interface Collections.LocalShardInfoOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Collections.LocalShardInfo.Builder setStateValue(int value)
       Is replica active
       
      .qdrant.ReplicaState state = 3;
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public Collections.ReplicaState getState()
       Is replica active
       
      .qdrant.ReplicaState state = 3;
      Specified by:
      getState in interface Collections.LocalShardInfoOrBuilder
      Returns:
      The state.
    • setState

       Is replica active
       
      .qdrant.ReplicaState state = 3;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

       Is replica active
       
      .qdrant.ReplicaState state = 3;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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