Class ShardFailure.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ShardFailure.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<ShardFailure.Builder>
org.opensearch.protobufs.ShardFailure.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, ShardFailureOrBuilder
Enclosing class:
ShardFailure

public static final class ShardFailure.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ShardFailure.Builder> implements ShardFailureOrBuilder
Protobuf type org.opensearch.protobufs.ShardFailure
  • 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<ShardFailure.Builder>
    • clear

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

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

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

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

      public ShardFailure.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<ShardFailure.Builder>
    • setField

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

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

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

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

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

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

      public ShardFailure.Builder mergeFrom(ShardFailure other)
    • isInitialized

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

      public ShardFailure.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<ShardFailure.Builder>
      Throws:
      IOException
    • hasIndex

      public boolean hasIndex()
      optional string index = 1 [json_name = "index"];
      Specified by:
      hasIndex in interface ShardFailureOrBuilder
      Returns:
      Whether the index field is set.
    • getIndex

      public String getIndex()
      optional string index = 1 [json_name = "index"];
      Specified by:
      getIndex in interface ShardFailureOrBuilder
      Returns:
      The index.
    • getIndexBytes

      public com.google.protobuf.ByteString getIndexBytes()
      optional string index = 1 [json_name = "index"];
      Specified by:
      getIndexBytes in interface ShardFailureOrBuilder
      Returns:
      The bytes for index.
    • setIndex

      public ShardFailure.Builder setIndex(String value)
      optional string index = 1 [json_name = "index"];
      Parameters:
      value - The index to set.
      Returns:
      This builder for chaining.
    • clearIndex

      public ShardFailure.Builder clearIndex()
      optional string index = 1 [json_name = "index"];
      Returns:
      This builder for chaining.
    • setIndexBytes

      public ShardFailure.Builder setIndexBytes(com.google.protobuf.ByteString value)
      optional string index = 1 [json_name = "index"];
      Parameters:
      value - The bytes for index to set.
      Returns:
      This builder for chaining.
    • hasNode

      public boolean hasNode()
      optional string node = 2 [json_name = "node"];
      Specified by:
      hasNode in interface ShardFailureOrBuilder
      Returns:
      Whether the node field is set.
    • getNode

      public String getNode()
      optional string node = 2 [json_name = "node"];
      Specified by:
      getNode in interface ShardFailureOrBuilder
      Returns:
      The node.
    • getNodeBytes

      public com.google.protobuf.ByteString getNodeBytes()
      optional string node = 2 [json_name = "node"];
      Specified by:
      getNodeBytes in interface ShardFailureOrBuilder
      Returns:
      The bytes for node.
    • setNode

      public ShardFailure.Builder setNode(String value)
      optional string node = 2 [json_name = "node"];
      Parameters:
      value - The node to set.
      Returns:
      This builder for chaining.
    • clearNode

      public ShardFailure.Builder clearNode()
      optional string node = 2 [json_name = "node"];
      Returns:
      This builder for chaining.
    • setNodeBytes

      public ShardFailure.Builder setNodeBytes(com.google.protobuf.ByteString value)
      optional string node = 2 [json_name = "node"];
      Parameters:
      value - The bytes for node to set.
      Returns:
      This builder for chaining.
    • hasReason

      public boolean hasReason()
      .org.opensearch.protobufs.ErrorCause reason = 3 [json_name = "reason"];
      Specified by:
      hasReason in interface ShardFailureOrBuilder
      Returns:
      Whether the reason field is set.
    • getReason

      public ErrorCause getReason()
      .org.opensearch.protobufs.ErrorCause reason = 3 [json_name = "reason"];
      Specified by:
      getReason in interface ShardFailureOrBuilder
      Returns:
      The reason.
    • setReason

      public ShardFailure.Builder setReason(ErrorCause value)
      .org.opensearch.protobufs.ErrorCause reason = 3 [json_name = "reason"];
    • setReason

      public ShardFailure.Builder setReason(ErrorCause.Builder builderForValue)
      .org.opensearch.protobufs.ErrorCause reason = 3 [json_name = "reason"];
    • mergeReason

      public ShardFailure.Builder mergeReason(ErrorCause value)
      .org.opensearch.protobufs.ErrorCause reason = 3 [json_name = "reason"];
    • clearReason

      public ShardFailure.Builder clearReason()
      .org.opensearch.protobufs.ErrorCause reason = 3 [json_name = "reason"];
    • getReasonBuilder

      public ErrorCause.Builder getReasonBuilder()
      .org.opensearch.protobufs.ErrorCause reason = 3 [json_name = "reason"];
    • getReasonOrBuilder

      public ErrorCauseOrBuilder getReasonOrBuilder()
      .org.opensearch.protobufs.ErrorCause reason = 3 [json_name = "reason"];
      Specified by:
      getReasonOrBuilder in interface ShardFailureOrBuilder
    • getShard

      public int getShard()
      int32 shard = 4 [json_name = "shard"];
      Specified by:
      getShard in interface ShardFailureOrBuilder
      Returns:
      The shard.
    • setShard

      public ShardFailure.Builder setShard(int value)
      int32 shard = 4 [json_name = "shard"];
      Parameters:
      value - The shard to set.
      Returns:
      This builder for chaining.
    • clearShard

      public ShardFailure.Builder clearShard()
      int32 shard = 4 [json_name = "shard"];
      Returns:
      This builder for chaining.
    • hasStatus

      public boolean hasStatus()
      optional string status = 5 [json_name = "status"];
      Specified by:
      hasStatus in interface ShardFailureOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public String getStatus()
      optional string status = 5 [json_name = "status"];
      Specified by:
      getStatus in interface ShardFailureOrBuilder
      Returns:
      The status.
    • getStatusBytes

      public com.google.protobuf.ByteString getStatusBytes()
      optional string status = 5 [json_name = "status"];
      Specified by:
      getStatusBytes in interface ShardFailureOrBuilder
      Returns:
      The bytes for status.
    • setStatus

      public ShardFailure.Builder setStatus(String value)
      optional string status = 5 [json_name = "status"];
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public ShardFailure.Builder clearStatus()
      optional string status = 5 [json_name = "status"];
      Returns:
      This builder for chaining.
    • setStatusBytes

      public ShardFailure.Builder setStatusBytes(com.google.protobuf.ByteString value)
      optional string status = 5 [json_name = "status"];
      Parameters:
      value - The bytes for status to set.
      Returns:
      This builder for chaining.
    • getPrimary

      public boolean getPrimary()
      bool primary = 6 [json_name = "primary"];
      Specified by:
      getPrimary in interface ShardFailureOrBuilder
      Returns:
      The primary.
    • setPrimary

      public ShardFailure.Builder setPrimary(boolean value)
      bool primary = 6 [json_name = "primary"];
      Parameters:
      value - The primary to set.
      Returns:
      This builder for chaining.
    • clearPrimary

      public ShardFailure.Builder clearPrimary()
      bool primary = 6 [json_name = "primary"];
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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