Class NamespaceShardsAssignment

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.streamnative.oxia.proto.NamespaceShardsAssignment
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, NamespaceShardsAssignmentOrBuilder, Serializable

public final class NamespaceShardsAssignment extends com.google.protobuf.GeneratedMessageV3 implements NamespaceShardsAssignmentOrBuilder

 The shards assignments for a given namespace
 
Protobuf type io.streamnative.oxia.proto.NamespaceShardsAssignment
See Also:
  • Field Details

    • ASSIGNMENTS_FIELD_NUMBER

      public static final int ASSIGNMENTS_FIELD_NUMBER
      See Also:
    • SHARD_KEY_ROUTER_FIELD_NUMBER

      public static final int SHARD_KEY_ROUTER_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • 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
    • getAssignmentsList

      public List<ShardAssignment> getAssignmentsList()
       All assignments in the response stream will contain all the
       assignments to bring the client up to date. For example, if a shard is
       split, the stream will return a single response containing all the new
       shard assignments as opposed to multiple stream responses, each containing
       a single shard assignment.
       
      repeated .io.streamnative.oxia.proto.ShardAssignment assignments = 1;
      Specified by:
      getAssignmentsList in interface NamespaceShardsAssignmentOrBuilder
    • getAssignmentsOrBuilderList

      public List<? extends ShardAssignmentOrBuilder> getAssignmentsOrBuilderList()
       All assignments in the response stream will contain all the
       assignments to bring the client up to date. For example, if a shard is
       split, the stream will return a single response containing all the new
       shard assignments as opposed to multiple stream responses, each containing
       a single shard assignment.
       
      repeated .io.streamnative.oxia.proto.ShardAssignment assignments = 1;
      Specified by:
      getAssignmentsOrBuilderList in interface NamespaceShardsAssignmentOrBuilder
    • getAssignmentsCount

      public int getAssignmentsCount()
       All assignments in the response stream will contain all the
       assignments to bring the client up to date. For example, if a shard is
       split, the stream will return a single response containing all the new
       shard assignments as opposed to multiple stream responses, each containing
       a single shard assignment.
       
      repeated .io.streamnative.oxia.proto.ShardAssignment assignments = 1;
      Specified by:
      getAssignmentsCount in interface NamespaceShardsAssignmentOrBuilder
    • getAssignments

      public ShardAssignment getAssignments(int index)
       All assignments in the response stream will contain all the
       assignments to bring the client up to date. For example, if a shard is
       split, the stream will return a single response containing all the new
       shard assignments as opposed to multiple stream responses, each containing
       a single shard assignment.
       
      repeated .io.streamnative.oxia.proto.ShardAssignment assignments = 1;
      Specified by:
      getAssignments in interface NamespaceShardsAssignmentOrBuilder
    • getAssignmentsOrBuilder

      public ShardAssignmentOrBuilder getAssignmentsOrBuilder(int index)
       All assignments in the response stream will contain all the
       assignments to bring the client up to date. For example, if a shard is
       split, the stream will return a single response containing all the new
       shard assignments as opposed to multiple stream responses, each containing
       a single shard assignment.
       
      repeated .io.streamnative.oxia.proto.ShardAssignment assignments = 1;
      Specified by:
      getAssignmentsOrBuilder in interface NamespaceShardsAssignmentOrBuilder
    • getShardKeyRouterValue

      public int getShardKeyRouterValue()
       Indicates the mechanism by which the keys are assigned to the individual
       shards.
       
      .io.streamnative.oxia.proto.ShardKeyRouter shard_key_router = 2;
      Specified by:
      getShardKeyRouterValue in interface NamespaceShardsAssignmentOrBuilder
      Returns:
      The enum numeric value on the wire for shardKeyRouter.
    • getShardKeyRouter

      public ShardKeyRouter getShardKeyRouter()
       Indicates the mechanism by which the keys are assigned to the individual
       shards.
       
      .io.streamnative.oxia.proto.ShardKeyRouter shard_key_router = 2;
      Specified by:
      getShardKeyRouter in interface NamespaceShardsAssignmentOrBuilder
      Returns:
      The shardKeyRouter.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static NamespaceShardsAssignment parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NamespaceShardsAssignment parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NamespaceShardsAssignment parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NamespaceShardsAssignment parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NamespaceShardsAssignment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NamespaceShardsAssignment parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NamespaceShardsAssignment parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static NamespaceShardsAssignment parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static NamespaceShardsAssignment parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static NamespaceShardsAssignment parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static NamespaceShardsAssignment parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static NamespaceShardsAssignment parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public NamespaceShardsAssignment.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static NamespaceShardsAssignment.Builder newBuilder()
    • newBuilder

      public static NamespaceShardsAssignment.Builder newBuilder(NamespaceShardsAssignment prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected NamespaceShardsAssignment.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static NamespaceShardsAssignment getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<NamespaceShardsAssignment> parser()
    • getParserForType

      public com.google.protobuf.Parser<NamespaceShardsAssignment> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public NamespaceShardsAssignment getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder