Class ClusterShardingMessages.ShardState.Builder

java.lang.Object
org.apache.pekko.protobufv3.internal.AbstractMessageLite.Builder
org.apache.pekko.protobufv3.internal.AbstractMessage.Builder<BuilderT>
org.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<ClusterShardingMessages.ShardState.Builder>
org.apache.pekko.cluster.sharding.protobuf.msg.ClusterShardingMessages.ShardState.Builder
All Implemented Interfaces:
Cloneable, ClusterShardingMessages.ShardStateOrBuilder, org.apache.pekko.protobufv3.internal.Message.Builder, org.apache.pekko.protobufv3.internal.MessageLite.Builder, org.apache.pekko.protobufv3.internal.MessageLiteOrBuilder, org.apache.pekko.protobufv3.internal.MessageOrBuilder
Enclosing class:
ClusterShardingMessages.ShardState

public static final class ClusterShardingMessages.ShardState.Builder extends org.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<ClusterShardingMessages.ShardState.Builder> implements ClusterShardingMessages.ShardStateOrBuilder
Protobuf type ShardState
  • Method Details

    • getDescriptor

      public static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class org.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<ClusterShardingMessages.ShardState.Builder>
    • clear

      Specified by:
      clear in interface org.apache.pekko.protobufv3.internal.Message.Builder
      Specified by:
      clear in interface org.apache.pekko.protobufv3.internal.MessageLite.Builder
      Overrides:
      clear in class org.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<ClusterShardingMessages.ShardState.Builder>
    • getDescriptorForType

      public org.apache.pekko.protobufv3.internal.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface org.apache.pekko.protobufv3.internal.Message.Builder
      Specified by:
      getDescriptorForType in interface org.apache.pekko.protobufv3.internal.MessageOrBuilder
      Overrides:
      getDescriptorForType in class org.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<ClusterShardingMessages.ShardState.Builder>
    • getDefaultInstanceForType

      public ClusterShardingMessages.ShardState getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface org.apache.pekko.protobufv3.internal.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface org.apache.pekko.protobufv3.internal.MessageOrBuilder
    • build

      Specified by:
      build in interface org.apache.pekko.protobufv3.internal.Message.Builder
      Specified by:
      build in interface org.apache.pekko.protobufv3.internal.MessageLite.Builder
    • buildPartial

      public ClusterShardingMessages.ShardState buildPartial()
      Specified by:
      buildPartial in interface org.apache.pekko.protobufv3.internal.Message.Builder
      Specified by:
      buildPartial in interface org.apache.pekko.protobufv3.internal.MessageLite.Builder
    • mergeFrom

      public ClusterShardingMessages.ShardState.Builder mergeFrom(org.apache.pekko.protobufv3.internal.Message other)
      Specified by:
      mergeFrom in interface org.apache.pekko.protobufv3.internal.Message.Builder
      Overrides:
      mergeFrom in class org.apache.pekko.protobufv3.internal.AbstractMessage.Builder<ClusterShardingMessages.ShardState.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface org.apache.pekko.protobufv3.internal.MessageLiteOrBuilder
      Overrides:
      isInitialized in class org.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<ClusterShardingMessages.ShardState.Builder>
    • mergeFrom

      public ClusterShardingMessages.ShardState.Builder mergeFrom(org.apache.pekko.protobufv3.internal.CodedInputStream input, org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface org.apache.pekko.protobufv3.internal.Message.Builder
      Specified by:
      mergeFrom in interface org.apache.pekko.protobufv3.internal.MessageLite.Builder
      Overrides:
      mergeFrom in class org.apache.pekko.protobufv3.internal.AbstractMessage.Builder<ClusterShardingMessages.ShardState.Builder>
      Throws:
      IOException
    • hasShardId

      public boolean hasShardId()
      required string shardId = 1;
      Specified by:
      hasShardId in interface ClusterShardingMessages.ShardStateOrBuilder
      Returns:
      Whether the shardId field is set.
    • getShardId

      public String getShardId()
      required string shardId = 1;
      Specified by:
      getShardId in interface ClusterShardingMessages.ShardStateOrBuilder
      Returns:
      The shardId.
    • getShardIdBytes

      public org.apache.pekko.protobufv3.internal.ByteString getShardIdBytes()
      required string shardId = 1;
      Specified by:
      getShardIdBytes in interface ClusterShardingMessages.ShardStateOrBuilder
      Returns:
      The bytes for shardId.
    • setShardId

      required string shardId = 1;
      Parameters:
      value - The shardId to set.
      Returns:
      This builder for chaining.
    • clearShardId

      required string shardId = 1;
      Returns:
      This builder for chaining.
    • setShardIdBytes

      public ClusterShardingMessages.ShardState.Builder setShardIdBytes(org.apache.pekko.protobufv3.internal.ByteString value)
      required string shardId = 1;
      Parameters:
      value - The bytes for shardId to set.
      Returns:
      This builder for chaining.
    • getEntityIdsList

      public org.apache.pekko.protobufv3.internal.ProtocolStringList getEntityIdsList()
      repeated string entityIds = 2;
      Specified by:
      getEntityIdsList in interface ClusterShardingMessages.ShardStateOrBuilder
      Returns:
      A list containing the entityIds.
    • getEntityIdsCount

      public int getEntityIdsCount()
      repeated string entityIds = 2;
      Specified by:
      getEntityIdsCount in interface ClusterShardingMessages.ShardStateOrBuilder
      Returns:
      The count of entityIds.
    • getEntityIds

      public String getEntityIds(int index)
      repeated string entityIds = 2;
      Specified by:
      getEntityIds in interface ClusterShardingMessages.ShardStateOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The entityIds at the given index.
    • getEntityIdsBytes

      public org.apache.pekko.protobufv3.internal.ByteString getEntityIdsBytes(int index)
      repeated string entityIds = 2;
      Specified by:
      getEntityIdsBytes in interface ClusterShardingMessages.ShardStateOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the entityIds at the given index.
    • setEntityIds

      public ClusterShardingMessages.ShardState.Builder setEntityIds(int index, String value)
      repeated string entityIds = 2;
      Parameters:
      index - The index to set the value at.
      value - The entityIds to set.
      Returns:
      This builder for chaining.
    • addEntityIds

      repeated string entityIds = 2;
      Parameters:
      value - The entityIds to add.
      Returns:
      This builder for chaining.
    • addAllEntityIds

      repeated string entityIds = 2;
      Parameters:
      values - The entityIds to add.
      Returns:
      This builder for chaining.
    • clearEntityIds

      repeated string entityIds = 2;
      Returns:
      This builder for chaining.
    • addEntityIdsBytes

      public ClusterShardingMessages.ShardState.Builder addEntityIdsBytes(org.apache.pekko.protobufv3.internal.ByteString value)
      repeated string entityIds = 2;
      Parameters:
      value - The bytes of the entityIds to add.
      Returns:
      This builder for chaining.