Class UpdateDocumentRequest

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

public final class UpdateDocumentRequest extends com.google.protobuf.GeneratedMessageV3 implements UpdateDocumentRequestOrBuilder
Protobuf type UpdateDocumentRequest
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:
    • X_SOURCE_FIELD_NUMBER

      public static final int X_SOURCE_FIELD_NUMBER
      See Also:
    • X_SOURCE_EXCLUDES_FIELD_NUMBER

      public static final int X_SOURCE_EXCLUDES_FIELD_NUMBER
      See Also:
    • X_SOURCE_INCLUDES_FIELD_NUMBER

      public static final int X_SOURCE_INCLUDES_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:
    • LANG_FIELD_NUMBER

      public static final int LANG_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:
    • RETRY_ON_CONFLICT_FIELD_NUMBER

      public static final int RETRY_ON_CONFLICT_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:
    • 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:
    • 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
    • hasId

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

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

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

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

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

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

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

      public SourceConfigParam getXSource()
      optional .SourceConfigParam x_source = 3 [json_name = "xSource"];
      Specified by:
      getXSource in interface UpdateDocumentRequestOrBuilder
      Returns:
      The xSource.
    • getXSourceOrBuilder

      public SourceConfigParamOrBuilder getXSourceOrBuilder()
      optional .SourceConfigParam x_source = 3 [json_name = "xSource"];
      Specified by:
      getXSourceOrBuilder in interface UpdateDocumentRequestOrBuilder
    • getXSourceExcludesList

      public com.google.protobuf.ProtocolStringList getXSourceExcludesList()
      repeated string x_source_excludes = 4 [json_name = "xSourceExcludes"];
      Specified by:
      getXSourceExcludesList in interface UpdateDocumentRequestOrBuilder
      Returns:
      A list containing the xSourceExcludes.
    • getXSourceExcludesCount

      public int getXSourceExcludesCount()
      repeated string x_source_excludes = 4 [json_name = "xSourceExcludes"];
      Specified by:
      getXSourceExcludesCount in interface UpdateDocumentRequestOrBuilder
      Returns:
      The count of xSourceExcludes.
    • getXSourceExcludes

      public String getXSourceExcludes(int index)
      repeated string x_source_excludes = 4 [json_name = "xSourceExcludes"];
      Specified by:
      getXSourceExcludes in interface UpdateDocumentRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The xSourceExcludes at the given index.
    • getXSourceExcludesBytes

      public com.google.protobuf.ByteString getXSourceExcludesBytes(int index)
      repeated string x_source_excludes = 4 [json_name = "xSourceExcludes"];
      Specified by:
      getXSourceExcludesBytes in interface UpdateDocumentRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the xSourceExcludes at the given index.
    • getXSourceIncludesList

      public com.google.protobuf.ProtocolStringList getXSourceIncludesList()
      repeated string x_source_includes = 5 [json_name = "xSourceIncludes"];
      Specified by:
      getXSourceIncludesList in interface UpdateDocumentRequestOrBuilder
      Returns:
      A list containing the xSourceIncludes.
    • getXSourceIncludesCount

      public int getXSourceIncludesCount()
      repeated string x_source_includes = 5 [json_name = "xSourceIncludes"];
      Specified by:
      getXSourceIncludesCount in interface UpdateDocumentRequestOrBuilder
      Returns:
      The count of xSourceIncludes.
    • getXSourceIncludes

      public String getXSourceIncludes(int index)
      repeated string x_source_includes = 5 [json_name = "xSourceIncludes"];
      Specified by:
      getXSourceIncludes in interface UpdateDocumentRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The xSourceIncludes at the given index.
    • getXSourceIncludesBytes

      public com.google.protobuf.ByteString getXSourceIncludesBytes(int index)
      repeated string x_source_includes = 5 [json_name = "xSourceIncludes"];
      Specified by:
      getXSourceIncludesBytes in interface UpdateDocumentRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the xSourceIncludes at the given index.
    • hasIfPrimaryTerm

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

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

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

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

      public boolean hasLang()
      optional string lang = 8 [json_name = "lang"];
      Specified by:
      hasLang in interface UpdateDocumentRequestOrBuilder
      Returns:
      Whether the lang field is set.
    • getLang

      public String getLang()
      optional string lang = 8 [json_name = "lang"];
      Specified by:
      getLang in interface UpdateDocumentRequestOrBuilder
      Returns:
      The lang.
    • getLangBytes

      public com.google.protobuf.ByteString getLangBytes()
      optional string lang = 8 [json_name = "lang"];
      Specified by:
      getLangBytes in interface UpdateDocumentRequestOrBuilder
      Returns:
      The bytes for lang.
    • hasRefresh

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

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

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

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

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

      public boolean hasRetryOnConflict()
      optional int32 retry_on_conflict = 11 [json_name = "retryOnConflict"];
      Specified by:
      hasRetryOnConflict in interface UpdateDocumentRequestOrBuilder
      Returns:
      Whether the retryOnConflict field is set.
    • getRetryOnConflict

      public int getRetryOnConflict()
      optional int32 retry_on_conflict = 11 [json_name = "retryOnConflict"];
      Specified by:
      getRetryOnConflict in interface UpdateDocumentRequestOrBuilder
      Returns:
      The retryOnConflict.
    • hasRouting

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

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

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

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

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

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

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

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

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

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

      public UpdateDocumentRequestBody getRequestBody()
      .UpdateDocumentRequestBody request_body = 15 [json_name = "requestBody"];
      Specified by:
      getRequestBody in interface UpdateDocumentRequestOrBuilder
      Returns:
      The requestBody.
    • getRequestBodyOrBuilder

      public UpdateDocumentRequestBodyOrBuilder getRequestBodyOrBuilder()
      .UpdateDocumentRequestBody request_body = 15 [json_name = "requestBody"];
      Specified by:
      getRequestBodyOrBuilder in interface UpdateDocumentRequestOrBuilder
    • hasSourceType

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static UpdateDocumentRequest.Builder newBuilder()
    • newBuilder

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

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

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

      public static UpdateDocumentRequest getDefaultInstance()
    • parser

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

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