Class IndexDocumentRequest

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

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

    • ID_FIELD_NUMBER

      public static final int ID_FIELD_NUMBER
      See Also:
    • INDEX_FIELD_NUMBER

      public static final int INDEX_FIELD_NUMBER
      See Also:
    • IF_PRIMARY_TERM_FIELD_NUMBER

      public static final int IF_PRIMARY_TERM_FIELD_NUMBER
      See Also:
    • IF_SEQ_NO_FIELD_NUMBER

      public static final int IF_SEQ_NO_FIELD_NUMBER
      See Also:
    • OP_TYPE_FIELD_NUMBER

      public static final int OP_TYPE_FIELD_NUMBER
      See Also:
    • PIPELINE_FIELD_NUMBER

      public static final int PIPELINE_FIELD_NUMBER
      See Also:
    • REFRESH_FIELD_NUMBER

      public static final int REFRESH_FIELD_NUMBER
      See Also:
    • REQUIRE_ALIAS_FIELD_NUMBER

      public static final int REQUIRE_ALIAS_FIELD_NUMBER
      See Also:
    • ROUTING_FIELD_NUMBER

      public static final int ROUTING_FIELD_NUMBER
      See Also:
    • TIMEOUT_FIELD_NUMBER

      public static final int TIMEOUT_FIELD_NUMBER
      See Also:
    • VERSION_FIELD_NUMBER

      public static final int VERSION_FIELD_NUMBER
      See Also:
    • VERSION_TYPE_FIELD_NUMBER

      public static final int VERSION_TYPE_FIELD_NUMBER
      See Also:
    • WAIT_FOR_ACTIVE_SHARDS_FIELD_NUMBER

      public static final int WAIT_FOR_ACTIVE_SHARDS_FIELD_NUMBER
      See Also:
    • REQUEST_BODY_FIELD_NUMBER

      public static final int REQUEST_BODY_FIELD_NUMBER
      See Also:
    • BYTES_REQUEST_BODY_FIELD_NUMBER

      public static final int BYTES_REQUEST_BODY_FIELD_NUMBER
      See Also:
    • SOURCE_TYPE_FIELD_NUMBER

      public static final int SOURCE_TYPE_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
    • getIndexDocumentRequestRequestBodyCase

      public IndexDocumentRequest.IndexDocumentRequestRequestBodyCase getIndexDocumentRequestRequestBodyCase()
      Specified by:
      getIndexDocumentRequestRequestBodyCase in interface IndexDocumentRequestOrBuilder
    • hasId

      public boolean hasId()
      optional string id = 1 [json_name = "id"];
      Specified by:
      hasId in interface IndexDocumentRequestOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public String getId()
      optional string id = 1 [json_name = "id"];
      Specified by:
      getId in interface IndexDocumentRequestOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
      optional string id = 1 [json_name = "id"];
      Specified by:
      getIdBytes in interface IndexDocumentRequestOrBuilder
      Returns:
      The bytes for id.
    • hasIndex

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

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

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

      public boolean hasIfPrimaryTerm()
      optional int64 if_primary_term = 3 [json_name = "ifPrimaryTerm"];
      Specified by:
      hasIfPrimaryTerm in interface IndexDocumentRequestOrBuilder
      Returns:
      Whether the ifPrimaryTerm field is set.
    • getIfPrimaryTerm

      public long getIfPrimaryTerm()
      optional int64 if_primary_term = 3 [json_name = "ifPrimaryTerm"];
      Specified by:
      getIfPrimaryTerm in interface IndexDocumentRequestOrBuilder
      Returns:
      The ifPrimaryTerm.
    • hasIfSeqNo

      public boolean hasIfSeqNo()
      optional int64 if_seq_no = 4 [json_name = "ifSeqNo"];
      Specified by:
      hasIfSeqNo in interface IndexDocumentRequestOrBuilder
      Returns:
      Whether the ifSeqNo field is set.
    • getIfSeqNo

      public long getIfSeqNo()
      optional int64 if_seq_no = 4 [json_name = "ifSeqNo"];
      Specified by:
      getIfSeqNo in interface IndexDocumentRequestOrBuilder
      Returns:
      The ifSeqNo.
    • hasOpType

      public boolean hasOpType()
      optional .OpType op_type = 5 [json_name = "opType"];
      Specified by:
      hasOpType in interface IndexDocumentRequestOrBuilder
      Returns:
      Whether the opType field is set.
    • getOpTypeValue

      public int getOpTypeValue()
      optional .OpType op_type = 5 [json_name = "opType"];
      Specified by:
      getOpTypeValue in interface IndexDocumentRequestOrBuilder
      Returns:
      The enum numeric value on the wire for opType.
    • getOpType

      public OpType getOpType()
      optional .OpType op_type = 5 [json_name = "opType"];
      Specified by:
      getOpType in interface IndexDocumentRequestOrBuilder
      Returns:
      The opType.
    • hasPipeline

      public boolean hasPipeline()
      optional string pipeline = 6 [json_name = "pipeline"];
      Specified by:
      hasPipeline in interface IndexDocumentRequestOrBuilder
      Returns:
      Whether the pipeline field is set.
    • getPipeline

      public String getPipeline()
      optional string pipeline = 6 [json_name = "pipeline"];
      Specified by:
      getPipeline in interface IndexDocumentRequestOrBuilder
      Returns:
      The pipeline.
    • getPipelineBytes

      public com.google.protobuf.ByteString getPipelineBytes()
      optional string pipeline = 6 [json_name = "pipeline"];
      Specified by:
      getPipelineBytes in interface IndexDocumentRequestOrBuilder
      Returns:
      The bytes for pipeline.
    • hasRefresh

      public boolean hasRefresh()
      optional .Refresh refresh = 7 [json_name = "refresh"];
      Specified by:
      hasRefresh in interface IndexDocumentRequestOrBuilder
      Returns:
      Whether the refresh field is set.
    • getRefreshValue

      public int getRefreshValue()
      optional .Refresh refresh = 7 [json_name = "refresh"];
      Specified by:
      getRefreshValue in interface IndexDocumentRequestOrBuilder
      Returns:
      The enum numeric value on the wire for refresh.
    • getRefresh

      public Refresh getRefresh()
      optional .Refresh refresh = 7 [json_name = "refresh"];
      Specified by:
      getRefresh in interface IndexDocumentRequestOrBuilder
      Returns:
      The refresh.
    • hasRequireAlias

      public boolean hasRequireAlias()
      optional bool require_alias = 8 [json_name = "requireAlias"];
      Specified by:
      hasRequireAlias in interface IndexDocumentRequestOrBuilder
      Returns:
      Whether the requireAlias field is set.
    • getRequireAlias

      public boolean getRequireAlias()
      optional bool require_alias = 8 [json_name = "requireAlias"];
      Specified by:
      getRequireAlias in interface IndexDocumentRequestOrBuilder
      Returns:
      The requireAlias.
    • hasRouting

      public boolean hasRouting()
      optional string routing = 9 [json_name = "routing"];
      Specified by:
      hasRouting in interface IndexDocumentRequestOrBuilder
      Returns:
      Whether the routing field is set.
    • getRouting

      public String getRouting()
      optional string routing = 9 [json_name = "routing"];
      Specified by:
      getRouting in interface IndexDocumentRequestOrBuilder
      Returns:
      The routing.
    • getRoutingBytes

      public com.google.protobuf.ByteString getRoutingBytes()
      optional string routing = 9 [json_name = "routing"];
      Specified by:
      getRoutingBytes in interface IndexDocumentRequestOrBuilder
      Returns:
      The bytes for routing.
    • hasTimeout

      public boolean hasTimeout()
      optional string timeout = 10 [json_name = "timeout"];
      Specified by:
      hasTimeout in interface IndexDocumentRequestOrBuilder
      Returns:
      Whether the timeout field is set.
    • getTimeout

      public String getTimeout()
      optional string timeout = 10 [json_name = "timeout"];
      Specified by:
      getTimeout in interface IndexDocumentRequestOrBuilder
      Returns:
      The timeout.
    • getTimeoutBytes

      public com.google.protobuf.ByteString getTimeoutBytes()
      optional string timeout = 10 [json_name = "timeout"];
      Specified by:
      getTimeoutBytes in interface IndexDocumentRequestOrBuilder
      Returns:
      The bytes for timeout.
    • hasVersion

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

      public long getVersion()
      optional int64 version = 11 [json_name = "version"];
      Specified by:
      getVersion in interface IndexDocumentRequestOrBuilder
      Returns:
      The version.
    • hasVersionType

      public boolean hasVersionType()
      optional .VersionType version_type = 12 [json_name = "versionType"];
      Specified by:
      hasVersionType in interface IndexDocumentRequestOrBuilder
      Returns:
      Whether the versionType field is set.
    • getVersionTypeValue

      public int getVersionTypeValue()
      optional .VersionType version_type = 12 [json_name = "versionType"];
      Specified by:
      getVersionTypeValue in interface IndexDocumentRequestOrBuilder
      Returns:
      The enum numeric value on the wire for versionType.
    • getVersionType

      public VersionType getVersionType()
      optional .VersionType version_type = 12 [json_name = "versionType"];
      Specified by:
      getVersionType in interface IndexDocumentRequestOrBuilder
      Returns:
      The versionType.
    • hasWaitForActiveShards

      public boolean hasWaitForActiveShards()
      optional .WaitForActiveShards wait_for_active_shards = 13 [json_name = "waitForActiveShards"];
      Specified by:
      hasWaitForActiveShards in interface IndexDocumentRequestOrBuilder
      Returns:
      Whether the waitForActiveShards field is set.
    • getWaitForActiveShards

      public WaitForActiveShards getWaitForActiveShards()
      optional .WaitForActiveShards wait_for_active_shards = 13 [json_name = "waitForActiveShards"];
      Specified by:
      getWaitForActiveShards in interface IndexDocumentRequestOrBuilder
      Returns:
      The waitForActiveShards.
    • getWaitForActiveShardsOrBuilder

      public WaitForActiveShardsOrBuilder getWaitForActiveShardsOrBuilder()
      optional .WaitForActiveShards wait_for_active_shards = 13 [json_name = "waitForActiveShards"];
      Specified by:
      getWaitForActiveShardsOrBuilder in interface IndexDocumentRequestOrBuilder
    • hasRequestBody

      public boolean hasRequestBody()
      .ObjectMap request_body = 14 [json_name = "requestBody"];
      Specified by:
      hasRequestBody in interface IndexDocumentRequestOrBuilder
      Returns:
      Whether the requestBody field is set.
    • getRequestBody

      public ObjectMap getRequestBody()
      .ObjectMap request_body = 14 [json_name = "requestBody"];
      Specified by:
      getRequestBody in interface IndexDocumentRequestOrBuilder
      Returns:
      The requestBody.
    • getRequestBodyOrBuilder

      public ObjectMapOrBuilder getRequestBodyOrBuilder()
      .ObjectMap request_body = 14 [json_name = "requestBody"];
      Specified by:
      getRequestBodyOrBuilder in interface IndexDocumentRequestOrBuilder
    • hasBytesRequestBody

      public boolean hasBytesRequestBody()
      bytes bytes_request_body = 15 [json_name = "bytesRequestBody"];
      Specified by:
      hasBytesRequestBody in interface IndexDocumentRequestOrBuilder
      Returns:
      Whether the bytesRequestBody field is set.
    • getBytesRequestBody

      public com.google.protobuf.ByteString getBytesRequestBody()
      bytes bytes_request_body = 15 [json_name = "bytesRequestBody"];
      Specified by:
      getBytesRequestBody in interface IndexDocumentRequestOrBuilder
      Returns:
      The bytesRequestBody.
    • hasSourceType

      public boolean hasSourceType()
      optional .SourceType source_type = 16 [json_name = "sourceType"];
      Specified by:
      hasSourceType in interface IndexDocumentRequestOrBuilder
      Returns:
      Whether the sourceType field is set.
    • getSourceTypeValue

      public int getSourceTypeValue()
      optional .SourceType source_type = 16 [json_name = "sourceType"];
      Specified by:
      getSourceTypeValue in interface IndexDocumentRequestOrBuilder
      Returns:
      The enum numeric value on the wire for sourceType.
    • getSourceType

      public SourceType getSourceType()
      optional .SourceType source_type = 16 [json_name = "sourceType"];
      Specified by:
      getSourceType in interface IndexDocumentRequestOrBuilder
      Returns:
      The sourceType.
    • 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 IndexDocumentRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static IndexDocumentRequest.Builder newBuilder()
    • newBuilder

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

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

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

      public static IndexDocumentRequest getDefaultInstance()
    • parser

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

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