Class ErrorCause

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.opensearch.protobufs.ErrorCause
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, ErrorCauseOrBuilder

public final class ErrorCause extends com.google.protobuf.GeneratedMessageV3 implements ErrorCauseOrBuilder
Protobuf type ErrorCause
See Also:
  • Field Details

  • 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()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getType

      public String getType()
      string type = 1 [json_name = "type"];
      Specified by:
      getType in interface ErrorCauseOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
      string type = 1 [json_name = "type"];
      Specified by:
      getTypeBytes in interface ErrorCauseOrBuilder
      Returns:
      The bytes for type.
    • hasReason

      public boolean hasReason()
      optional string reason = 2 [json_name = "reason"];
      Specified by:
      hasReason in interface ErrorCauseOrBuilder
      Returns:
      Whether the reason field is set.
    • getReason

      public String getReason()
      optional string reason = 2 [json_name = "reason"];
      Specified by:
      getReason in interface ErrorCauseOrBuilder
      Returns:
      The reason.
    • getReasonBytes

      public com.google.protobuf.ByteString getReasonBytes()
      optional string reason = 2 [json_name = "reason"];
      Specified by:
      getReasonBytes in interface ErrorCauseOrBuilder
      Returns:
      The bytes for reason.
    • hasStackTrace

      public boolean hasStackTrace()
      optional string stack_trace = 3 [json_name = "stackTrace"];
      Specified by:
      hasStackTrace in interface ErrorCauseOrBuilder
      Returns:
      Whether the stackTrace field is set.
    • getStackTrace

      public String getStackTrace()
      optional string stack_trace = 3 [json_name = "stackTrace"];
      Specified by:
      getStackTrace in interface ErrorCauseOrBuilder
      Returns:
      The stackTrace.
    • getStackTraceBytes

      public com.google.protobuf.ByteString getStackTraceBytes()
      optional string stack_trace = 3 [json_name = "stackTrace"];
      Specified by:
      getStackTraceBytes in interface ErrorCauseOrBuilder
      Returns:
      The bytes for stackTrace.
    • hasCausedBy

      public boolean hasCausedBy()
      optional .ErrorCause caused_by = 4 [json_name = "causedBy"];
      Specified by:
      hasCausedBy in interface ErrorCauseOrBuilder
      Returns:
      Whether the causedBy field is set.
    • getCausedBy

      public ErrorCause getCausedBy()
      optional .ErrorCause caused_by = 4 [json_name = "causedBy"];
      Specified by:
      getCausedBy in interface ErrorCauseOrBuilder
      Returns:
      The causedBy.
    • getCausedByOrBuilder

      public ErrorCauseOrBuilder getCausedByOrBuilder()
      optional .ErrorCause caused_by = 4 [json_name = "causedBy"];
      Specified by:
      getCausedByOrBuilder in interface ErrorCauseOrBuilder
    • getRootCauseList

      public List<ErrorCause> getRootCauseList()
      repeated .ErrorCause root_cause = 5 [json_name = "rootCause"];
      Specified by:
      getRootCauseList in interface ErrorCauseOrBuilder
    • getRootCauseOrBuilderList

      public List<? extends ErrorCauseOrBuilder> getRootCauseOrBuilderList()
      repeated .ErrorCause root_cause = 5 [json_name = "rootCause"];
      Specified by:
      getRootCauseOrBuilderList in interface ErrorCauseOrBuilder
    • getRootCauseCount

      public int getRootCauseCount()
      repeated .ErrorCause root_cause = 5 [json_name = "rootCause"];
      Specified by:
      getRootCauseCount in interface ErrorCauseOrBuilder
    • getRootCause

      public ErrorCause getRootCause(int index)
      repeated .ErrorCause root_cause = 5 [json_name = "rootCause"];
      Specified by:
      getRootCause in interface ErrorCauseOrBuilder
    • getRootCauseOrBuilder

      public ErrorCauseOrBuilder getRootCauseOrBuilder(int index)
      repeated .ErrorCause root_cause = 5 [json_name = "rootCause"];
      Specified by:
      getRootCauseOrBuilder in interface ErrorCauseOrBuilder
    • getSuppressedList

      public List<ErrorCause> getSuppressedList()
      repeated .ErrorCause suppressed = 6 [json_name = "suppressed"];
      Specified by:
      getSuppressedList in interface ErrorCauseOrBuilder
    • getSuppressedOrBuilderList

      public List<? extends ErrorCauseOrBuilder> getSuppressedOrBuilderList()
      repeated .ErrorCause suppressed = 6 [json_name = "suppressed"];
      Specified by:
      getSuppressedOrBuilderList in interface ErrorCauseOrBuilder
    • getSuppressedCount

      public int getSuppressedCount()
      repeated .ErrorCause suppressed = 6 [json_name = "suppressed"];
      Specified by:
      getSuppressedCount in interface ErrorCauseOrBuilder
    • getSuppressed

      public ErrorCause getSuppressed(int index)
      repeated .ErrorCause suppressed = 6 [json_name = "suppressed"];
      Specified by:
      getSuppressed in interface ErrorCauseOrBuilder
    • getSuppressedOrBuilder

      public ErrorCauseOrBuilder getSuppressedOrBuilder(int index)
      repeated .ErrorCause suppressed = 6 [json_name = "suppressed"];
      Specified by:
      getSuppressedOrBuilder in interface ErrorCauseOrBuilder
    • hasIndex

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

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

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

      public boolean hasShard()
      optional string shard = 8 [json_name = "shard"];
      Specified by:
      hasShard in interface ErrorCauseOrBuilder
      Returns:
      Whether the shard field is set.
    • getShard

      public String getShard()
      optional string shard = 8 [json_name = "shard"];
      Specified by:
      getShard in interface ErrorCauseOrBuilder
      Returns:
      The shard.
    • getShardBytes

      public com.google.protobuf.ByteString getShardBytes()
      optional string shard = 8 [json_name = "shard"];
      Specified by:
      getShardBytes in interface ErrorCauseOrBuilder
      Returns:
      The bytes for shard.
    • hasIndexUuid

      public boolean hasIndexUuid()
      optional string index_uuid = 9 [json_name = "indexUuid"];
      Specified by:
      hasIndexUuid in interface ErrorCauseOrBuilder
      Returns:
      Whether the indexUuid field is set.
    • getIndexUuid

      public String getIndexUuid()
      optional string index_uuid = 9 [json_name = "indexUuid"];
      Specified by:
      getIndexUuid in interface ErrorCauseOrBuilder
      Returns:
      The indexUuid.
    • getIndexUuidBytes

      public com.google.protobuf.ByteString getIndexUuidBytes()
      optional string index_uuid = 9 [json_name = "indexUuid"];
      Specified by:
      getIndexUuidBytes in interface ErrorCauseOrBuilder
      Returns:
      The bytes for indexUuid.
    • getMetadataCount

      public int getMetadataCount()
      Description copied from interface: ErrorCauseOrBuilder
      map<string, .ObjectMap.Value> metadata = 10 [json_name = "metadata"];
      Specified by:
      getMetadataCount in interface ErrorCauseOrBuilder
    • containsMetadata

      public boolean containsMetadata(String key)
      map<string, .ObjectMap.Value> metadata = 10 [json_name = "metadata"];
      Specified by:
      containsMetadata in interface ErrorCauseOrBuilder
    • getMetadata

      @Deprecated public Map<String,ObjectMap.Value> getMetadata()
      Deprecated.
      Use getMetadataMap() instead.
      Specified by:
      getMetadata in interface ErrorCauseOrBuilder
    • getMetadataMap

      public Map<String,ObjectMap.Value> getMetadataMap()
      map<string, .ObjectMap.Value> metadata = 10 [json_name = "metadata"];
      Specified by:
      getMetadataMap in interface ErrorCauseOrBuilder
    • getMetadataOrDefault

      public ObjectMap.Value getMetadataOrDefault(String key, ObjectMap.Value defaultValue)
      map<string, .ObjectMap.Value> metadata = 10 [json_name = "metadata"];
      Specified by:
      getMetadataOrDefault in interface ErrorCauseOrBuilder
    • getMetadataOrThrow

      public ObjectMap.Value getMetadataOrThrow(String key)
      map<string, .ObjectMap.Value> metadata = 10 [json_name = "metadata"];
      Specified by:
      getMetadataOrThrow in interface ErrorCauseOrBuilder
    • getHeaderCount

      public int getHeaderCount()
      Description copied from interface: ErrorCauseOrBuilder
      map<string, .StringOrStringArray> header = 11 [json_name = "header"];
      Specified by:
      getHeaderCount in interface ErrorCauseOrBuilder
    • containsHeader

      public boolean containsHeader(String key)
      map<string, .StringOrStringArray> header = 11 [json_name = "header"];
      Specified by:
      containsHeader in interface ErrorCauseOrBuilder
    • getHeader

      Deprecated.
      Use getHeaderMap() instead.
      Specified by:
      getHeader in interface ErrorCauseOrBuilder
    • getHeaderMap

      public Map<String,StringOrStringArray> getHeaderMap()
      map<string, .StringOrStringArray> header = 11 [json_name = "header"];
      Specified by:
      getHeaderMap in interface ErrorCauseOrBuilder
    • getHeaderOrDefault

      public StringOrStringArray getHeaderOrDefault(String key, StringOrStringArray defaultValue)
      map<string, .StringOrStringArray> header = 11 [json_name = "header"];
      Specified by:
      getHeaderOrDefault in interface ErrorCauseOrBuilder
    • getHeaderOrThrow

      public StringOrStringArray getHeaderOrThrow(String key)
      map<string, .StringOrStringArray> header = 11 [json_name = "header"];
      Specified by:
      getHeaderOrThrow in interface ErrorCauseOrBuilder
    • 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 ErrorCause parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static ErrorCause.Builder newBuilder()
    • newBuilder

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

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

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

      public static ErrorCause getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<ErrorCause> 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 ErrorCause getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder