Class InnerHits

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

public final class InnerHits extends com.google.protobuf.GeneratedMessageV3 implements InnerHitsOrBuilder
Protobuf type InnerHits
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
    • hasName

      public boolean hasName()
      optional string name = 1 [json_name = "name"];
      Specified by:
      hasName in interface InnerHitsOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
      optional string name = 1 [json_name = "name"];
      Specified by:
      getName in interface InnerHitsOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
      optional string name = 1 [json_name = "name"];
      Specified by:
      getNameBytes in interface InnerHitsOrBuilder
      Returns:
      The bytes for name.
    • hasSize

      public boolean hasSize()
      optional int32 size = 2 [json_name = "size"];
      Specified by:
      hasSize in interface InnerHitsOrBuilder
      Returns:
      Whether the size field is set.
    • getSize

      public int getSize()
      optional int32 size = 2 [json_name = "size"];
      Specified by:
      getSize in interface InnerHitsOrBuilder
      Returns:
      The size.
    • hasFrom

      public boolean hasFrom()
      optional int32 from = 3 [json_name = "from"];
      Specified by:
      hasFrom in interface InnerHitsOrBuilder
      Returns:
      Whether the from field is set.
    • getFrom

      public int getFrom()
      optional int32 from = 3 [json_name = "from"];
      Specified by:
      getFrom in interface InnerHitsOrBuilder
      Returns:
      The from.
    • hasCollapse

      public boolean hasCollapse()
      optional .FieldCollapse collapse = 4 [json_name = "collapse"];
      Specified by:
      hasCollapse in interface InnerHitsOrBuilder
      Returns:
      Whether the collapse field is set.
    • getCollapse

      public FieldCollapse getCollapse()
      optional .FieldCollapse collapse = 4 [json_name = "collapse"];
      Specified by:
      getCollapse in interface InnerHitsOrBuilder
      Returns:
      The collapse.
    • getCollapseOrBuilder

      public FieldCollapseOrBuilder getCollapseOrBuilder()
      optional .FieldCollapse collapse = 4 [json_name = "collapse"];
      Specified by:
      getCollapseOrBuilder in interface InnerHitsOrBuilder
    • getDocvalueFieldsList

      public List<FieldAndFormat> getDocvalueFieldsList()
      repeated .FieldAndFormat docvalue_fields = 5 [json_name = "docvalueFields"];
      Specified by:
      getDocvalueFieldsList in interface InnerHitsOrBuilder
    • getDocvalueFieldsOrBuilderList

      public List<? extends FieldAndFormatOrBuilder> getDocvalueFieldsOrBuilderList()
      repeated .FieldAndFormat docvalue_fields = 5 [json_name = "docvalueFields"];
      Specified by:
      getDocvalueFieldsOrBuilderList in interface InnerHitsOrBuilder
    • getDocvalueFieldsCount

      public int getDocvalueFieldsCount()
      repeated .FieldAndFormat docvalue_fields = 5 [json_name = "docvalueFields"];
      Specified by:
      getDocvalueFieldsCount in interface InnerHitsOrBuilder
    • getDocvalueFields

      public FieldAndFormat getDocvalueFields(int index)
      repeated .FieldAndFormat docvalue_fields = 5 [json_name = "docvalueFields"];
      Specified by:
      getDocvalueFields in interface InnerHitsOrBuilder
    • getDocvalueFieldsOrBuilder

      public FieldAndFormatOrBuilder getDocvalueFieldsOrBuilder(int index)
      repeated .FieldAndFormat docvalue_fields = 5 [json_name = "docvalueFields"];
      Specified by:
      getDocvalueFieldsOrBuilder in interface InnerHitsOrBuilder
    • hasExplain

      public boolean hasExplain()
      optional bool explain = 6 [json_name = "explain"];
      Specified by:
      hasExplain in interface InnerHitsOrBuilder
      Returns:
      Whether the explain field is set.
    • getExplain

      public boolean getExplain()
      optional bool explain = 6 [json_name = "explain"];
      Specified by:
      getExplain in interface InnerHitsOrBuilder
      Returns:
      The explain.
    • hasHighlight

      public boolean hasHighlight()
      optional .Highlight highlight = 7 [json_name = "highlight"];
      Specified by:
      hasHighlight in interface InnerHitsOrBuilder
      Returns:
      Whether the highlight field is set.
    • getHighlight

      public Highlight getHighlight()
      optional .Highlight highlight = 7 [json_name = "highlight"];
      Specified by:
      getHighlight in interface InnerHitsOrBuilder
      Returns:
      The highlight.
    • getHighlightOrBuilder

      public HighlightOrBuilder getHighlightOrBuilder()
      optional .Highlight highlight = 7 [json_name = "highlight"];
      Specified by:
      getHighlightOrBuilder in interface InnerHitsOrBuilder
    • hasIgnoreUnmapped

      public boolean hasIgnoreUnmapped()
      optional bool ignore_unmapped = 8 [json_name = "ignoreUnmapped"];
      Specified by:
      hasIgnoreUnmapped in interface InnerHitsOrBuilder
      Returns:
      Whether the ignoreUnmapped field is set.
    • getIgnoreUnmapped

      public boolean getIgnoreUnmapped()
      optional bool ignore_unmapped = 8 [json_name = "ignoreUnmapped"];
      Specified by:
      getIgnoreUnmapped in interface InnerHitsOrBuilder
      Returns:
      The ignoreUnmapped.
    • getScriptFieldsCount

      public int getScriptFieldsCount()
      Description copied from interface: InnerHitsOrBuilder
      map<string, .ScriptField> script_fields = 9 [json_name = "scriptFields"];
      Specified by:
      getScriptFieldsCount in interface InnerHitsOrBuilder
    • containsScriptFields

      public boolean containsScriptFields(String key)
      map<string, .ScriptField> script_fields = 9 [json_name = "scriptFields"];
      Specified by:
      containsScriptFields in interface InnerHitsOrBuilder
    • getScriptFields

      @Deprecated public Map<String,ScriptField> getScriptFields()
      Deprecated.
      Specified by:
      getScriptFields in interface InnerHitsOrBuilder
    • getScriptFieldsMap

      public Map<String,ScriptField> getScriptFieldsMap()
      map<string, .ScriptField> script_fields = 9 [json_name = "scriptFields"];
      Specified by:
      getScriptFieldsMap in interface InnerHitsOrBuilder
    • getScriptFieldsOrDefault

      public ScriptField getScriptFieldsOrDefault(String key, ScriptField defaultValue)
      map<string, .ScriptField> script_fields = 9 [json_name = "scriptFields"];
      Specified by:
      getScriptFieldsOrDefault in interface InnerHitsOrBuilder
    • getScriptFieldsOrThrow

      public ScriptField getScriptFieldsOrThrow(String key)
      map<string, .ScriptField> script_fields = 9 [json_name = "scriptFields"];
      Specified by:
      getScriptFieldsOrThrow in interface InnerHitsOrBuilder
    • hasSeqNoPrimaryTerm

      public boolean hasSeqNoPrimaryTerm()
      optional bool seq_no_primary_term = 10 [json_name = "seqNoPrimaryTerm"];
      Specified by:
      hasSeqNoPrimaryTerm in interface InnerHitsOrBuilder
      Returns:
      Whether the seqNoPrimaryTerm field is set.
    • getSeqNoPrimaryTerm

      public boolean getSeqNoPrimaryTerm()
      optional bool seq_no_primary_term = 10 [json_name = "seqNoPrimaryTerm"];
      Specified by:
      getSeqNoPrimaryTerm in interface InnerHitsOrBuilder
      Returns:
      The seqNoPrimaryTerm.
    • getFieldsList

      public List<FieldAndFormat> getFieldsList()
      repeated .FieldAndFormat fields = 11 [json_name = "fields"];
      Specified by:
      getFieldsList in interface InnerHitsOrBuilder
    • getFieldsOrBuilderList

      public List<? extends FieldAndFormatOrBuilder> getFieldsOrBuilderList()
      repeated .FieldAndFormat fields = 11 [json_name = "fields"];
      Specified by:
      getFieldsOrBuilderList in interface InnerHitsOrBuilder
    • getFieldsCount

      public int getFieldsCount()
      repeated .FieldAndFormat fields = 11 [json_name = "fields"];
      Specified by:
      getFieldsCount in interface InnerHitsOrBuilder
    • getFields

      public FieldAndFormat getFields(int index)
      repeated .FieldAndFormat fields = 11 [json_name = "fields"];
      Specified by:
      getFields in interface InnerHitsOrBuilder
    • getFieldsOrBuilder

      public FieldAndFormatOrBuilder getFieldsOrBuilder(int index)
      repeated .FieldAndFormat fields = 11 [json_name = "fields"];
      Specified by:
      getFieldsOrBuilder in interface InnerHitsOrBuilder
    • getSortList

      public List<SortCombinations> getSortList()
      repeated .SortCombinations sort = 12 [json_name = "sort"];
      Specified by:
      getSortList in interface InnerHitsOrBuilder
    • getSortOrBuilderList

      public List<? extends SortCombinationsOrBuilder> getSortOrBuilderList()
      repeated .SortCombinations sort = 12 [json_name = "sort"];
      Specified by:
      getSortOrBuilderList in interface InnerHitsOrBuilder
    • getSortCount

      public int getSortCount()
      repeated .SortCombinations sort = 12 [json_name = "sort"];
      Specified by:
      getSortCount in interface InnerHitsOrBuilder
    • getSort

      public SortCombinations getSort(int index)
      repeated .SortCombinations sort = 12 [json_name = "sort"];
      Specified by:
      getSort in interface InnerHitsOrBuilder
    • getSortOrBuilder

      public SortCombinationsOrBuilder getSortOrBuilder(int index)
      repeated .SortCombinations sort = 12 [json_name = "sort"];
      Specified by:
      getSortOrBuilder in interface InnerHitsOrBuilder
    • hasXSource

      public boolean hasXSource()
      optional .SourceConfig x_source = 13 [json_name = "xSource"];
      Specified by:
      hasXSource in interface InnerHitsOrBuilder
      Returns:
      Whether the xSource field is set.
    • getXSource

      public SourceConfig getXSource()
      optional .SourceConfig x_source = 13 [json_name = "xSource"];
      Specified by:
      getXSource in interface InnerHitsOrBuilder
      Returns:
      The xSource.
    • getXSourceOrBuilder

      public SourceConfigOrBuilder getXSourceOrBuilder()
      optional .SourceConfig x_source = 13 [json_name = "xSource"];
      Specified by:
      getXSourceOrBuilder in interface InnerHitsOrBuilder
    • getStoredFieldsList

      public com.google.protobuf.ProtocolStringList getStoredFieldsList()
      repeated string stored_fields = 14 [json_name = "storedFields"];
      Specified by:
      getStoredFieldsList in interface InnerHitsOrBuilder
      Returns:
      A list containing the storedFields.
    • getStoredFieldsCount

      public int getStoredFieldsCount()
      repeated string stored_fields = 14 [json_name = "storedFields"];
      Specified by:
      getStoredFieldsCount in interface InnerHitsOrBuilder
      Returns:
      The count of storedFields.
    • getStoredFields

      public String getStoredFields(int index)
      repeated string stored_fields = 14 [json_name = "storedFields"];
      Specified by:
      getStoredFields in interface InnerHitsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The storedFields at the given index.
    • getStoredFieldsBytes

      public com.google.protobuf.ByteString getStoredFieldsBytes(int index)
      repeated string stored_fields = 14 [json_name = "storedFields"];
      Specified by:
      getStoredFieldsBytes in interface InnerHitsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the storedFields at the given index.
    • hasTrackScores

      public boolean hasTrackScores()
      optional bool track_scores = 15 [json_name = "trackScores"];
      Specified by:
      hasTrackScores in interface InnerHitsOrBuilder
      Returns:
      Whether the trackScores field is set.
    • getTrackScores

      public boolean getTrackScores()
      optional bool track_scores = 15 [json_name = "trackScores"];
      Specified by:
      getTrackScores in interface InnerHitsOrBuilder
      Returns:
      The trackScores.
    • hasVersion

      public boolean hasVersion()
      optional bool version = 16 [json_name = "version"];
      Specified by:
      hasVersion in interface InnerHitsOrBuilder
      Returns:
      Whether the version field is set.
    • getVersion

      public boolean getVersion()
      optional bool version = 16 [json_name = "version"];
      Specified by:
      getVersion in interface InnerHitsOrBuilder
      Returns:
      The version.
    • 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 InnerHits parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static InnerHits.Builder newBuilder()
    • newBuilder

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

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

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

      public static InnerHits getDefaultInstance()
    • parser

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

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