Class DeleteDocumentRequest.Builder

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

public static final class DeleteDocumentRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DeleteDocumentRequest.Builder> implements DeleteDocumentRequestOrBuilder
Protobuf type DeleteDocumentRequest
  • 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<DeleteDocumentRequest.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<DeleteDocumentRequest.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<DeleteDocumentRequest.Builder>
    • getDefaultInstanceForType

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

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

      public DeleteDocumentRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<DeleteDocumentRequest.Builder>
    • setField

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

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

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

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

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

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

    • isInitialized

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

      public DeleteDocumentRequest.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<DeleteDocumentRequest.Builder>
      Throws:
      IOException
    • getId

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

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

      public DeleteDocumentRequest.Builder setId(String value)
      string id = 1 [json_name = "id"];
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      string id = 1 [json_name = "id"];
      Returns:
      This builder for chaining.
    • setIdBytes

      public DeleteDocumentRequest.Builder setIdBytes(com.google.protobuf.ByteString value)
      string id = 1 [json_name = "id"];
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getIndex

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

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

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

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

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

      public boolean hasIfPrimaryTerm()
      optional int64 if_primary_term = 3 [json_name = "ifPrimaryTerm"];
      Specified by:
      hasIfPrimaryTerm in interface DeleteDocumentRequestOrBuilder
      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 DeleteDocumentRequestOrBuilder
      Returns:
      The ifPrimaryTerm.
    • setIfPrimaryTerm

      public DeleteDocumentRequest.Builder setIfPrimaryTerm(long value)
      optional int64 if_primary_term = 3 [json_name = "ifPrimaryTerm"];
      Parameters:
      value - The ifPrimaryTerm to set.
      Returns:
      This builder for chaining.
    • clearIfPrimaryTerm

      public DeleteDocumentRequest.Builder clearIfPrimaryTerm()
      optional int64 if_primary_term = 3 [json_name = "ifPrimaryTerm"];
      Returns:
      This builder for chaining.
    • hasIfSeqNo

      public boolean hasIfSeqNo()
      optional int64 if_seq_no = 4 [json_name = "ifSeqNo"];
      Specified by:
      hasIfSeqNo in interface DeleteDocumentRequestOrBuilder
      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 DeleteDocumentRequestOrBuilder
      Returns:
      The ifSeqNo.
    • setIfSeqNo

      public DeleteDocumentRequest.Builder setIfSeqNo(long value)
      optional int64 if_seq_no = 4 [json_name = "ifSeqNo"];
      Parameters:
      value - The ifSeqNo to set.
      Returns:
      This builder for chaining.
    • clearIfSeqNo

      public DeleteDocumentRequest.Builder clearIfSeqNo()
      optional int64 if_seq_no = 4 [json_name = "ifSeqNo"];
      Returns:
      This builder for chaining.
    • hasRefresh

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

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

      public DeleteDocumentRequest.Builder setRefreshValue(int value)
      optional .Refresh refresh = 5 [json_name = "refresh"];
      Parameters:
      value - The enum numeric value on the wire for refresh to set.
      Returns:
      This builder for chaining.
    • getRefresh

      public Refresh getRefresh()
      optional .Refresh refresh = 5 [json_name = "refresh"];
      Specified by:
      getRefresh in interface DeleteDocumentRequestOrBuilder
      Returns:
      The refresh.
    • setRefresh

      public DeleteDocumentRequest.Builder setRefresh(Refresh value)
      optional .Refresh refresh = 5 [json_name = "refresh"];
      Parameters:
      value - The refresh to set.
      Returns:
      This builder for chaining.
    • clearRefresh

      public DeleteDocumentRequest.Builder clearRefresh()
      optional .Refresh refresh = 5 [json_name = "refresh"];
      Returns:
      This builder for chaining.
    • hasRouting

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

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

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

      public DeleteDocumentRequest.Builder setRouting(String value)
      optional string routing = 6 [json_name = "routing"];
      Parameters:
      value - The routing to set.
      Returns:
      This builder for chaining.
    • clearRouting

      public DeleteDocumentRequest.Builder clearRouting()
      optional string routing = 6 [json_name = "routing"];
      Returns:
      This builder for chaining.
    • setRoutingBytes

      public DeleteDocumentRequest.Builder setRoutingBytes(com.google.protobuf.ByteString value)
      optional string routing = 6 [json_name = "routing"];
      Parameters:
      value - The bytes for routing to set.
      Returns:
      This builder for chaining.
    • hasTimeout

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

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

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

      public DeleteDocumentRequest.Builder setTimeout(String value)
      optional string timeout = 7 [json_name = "timeout"];
      Parameters:
      value - The timeout to set.
      Returns:
      This builder for chaining.
    • clearTimeout

      public DeleteDocumentRequest.Builder clearTimeout()
      optional string timeout = 7 [json_name = "timeout"];
      Returns:
      This builder for chaining.
    • setTimeoutBytes

      public DeleteDocumentRequest.Builder setTimeoutBytes(com.google.protobuf.ByteString value)
      optional string timeout = 7 [json_name = "timeout"];
      Parameters:
      value - The bytes for timeout to set.
      Returns:
      This builder for chaining.
    • hasVersion

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

      public long getVersion()
      optional int64 version = 8 [json_name = "version"];
      Specified by:
      getVersion in interface DeleteDocumentRequestOrBuilder
      Returns:
      The version.
    • setVersion

      public DeleteDocumentRequest.Builder setVersion(long value)
      optional int64 version = 8 [json_name = "version"];
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

      public DeleteDocumentRequest.Builder clearVersion()
      optional int64 version = 8 [json_name = "version"];
      Returns:
      This builder for chaining.
    • hasVersionType

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

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

      public DeleteDocumentRequest.Builder setVersionTypeValue(int value)
      optional .VersionType version_type = 9 [json_name = "versionType"];
      Parameters:
      value - The enum numeric value on the wire for versionType to set.
      Returns:
      This builder for chaining.
    • getVersionType

      public VersionType getVersionType()
      optional .VersionType version_type = 9 [json_name = "versionType"];
      Specified by:
      getVersionType in interface DeleteDocumentRequestOrBuilder
      Returns:
      The versionType.
    • setVersionType

      public DeleteDocumentRequest.Builder setVersionType(VersionType value)
      optional .VersionType version_type = 9 [json_name = "versionType"];
      Parameters:
      value - The versionType to set.
      Returns:
      This builder for chaining.
    • clearVersionType

      public DeleteDocumentRequest.Builder clearVersionType()
      optional .VersionType version_type = 9 [json_name = "versionType"];
      Returns:
      This builder for chaining.
    • hasWaitForActiveShards

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

      public WaitForActiveShards getWaitForActiveShards()
      optional .WaitForActiveShards wait_for_active_shards = 10 [json_name = "waitForActiveShards"];
      Specified by:
      getWaitForActiveShards in interface DeleteDocumentRequestOrBuilder
      Returns:
      The waitForActiveShards.
    • setWaitForActiveShards

      public DeleteDocumentRequest.Builder setWaitForActiveShards(WaitForActiveShards value)
      optional .WaitForActiveShards wait_for_active_shards = 10 [json_name = "waitForActiveShards"];
    • setWaitForActiveShards

      public DeleteDocumentRequest.Builder setWaitForActiveShards(WaitForActiveShards.Builder builderForValue)
      optional .WaitForActiveShards wait_for_active_shards = 10 [json_name = "waitForActiveShards"];
    • mergeWaitForActiveShards

      public DeleteDocumentRequest.Builder mergeWaitForActiveShards(WaitForActiveShards value)
      optional .WaitForActiveShards wait_for_active_shards = 10 [json_name = "waitForActiveShards"];
    • clearWaitForActiveShards

      public DeleteDocumentRequest.Builder clearWaitForActiveShards()
      optional .WaitForActiveShards wait_for_active_shards = 10 [json_name = "waitForActiveShards"];
    • getWaitForActiveShardsBuilder

      public WaitForActiveShards.Builder getWaitForActiveShardsBuilder()
      optional .WaitForActiveShards wait_for_active_shards = 10 [json_name = "waitForActiveShards"];
    • getWaitForActiveShardsOrBuilder

      public WaitForActiveShardsOrBuilder getWaitForActiveShardsOrBuilder()
      optional .WaitForActiveShards wait_for_active_shards = 10 [json_name = "waitForActiveShards"];
      Specified by:
      getWaitForActiveShardsOrBuilder in interface DeleteDocumentRequestOrBuilder
    • setUnknownFields

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

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