Class DeleteOperation.Builder

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

public static final class DeleteOperation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DeleteOperation.Builder> implements DeleteOperationOrBuilder
Protobuf type org.opensearch.protobufs.DeleteOperation
  • 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<DeleteOperation.Builder>
    • clear

      public DeleteOperation.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<DeleteOperation.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<DeleteOperation.Builder>
    • getDefaultInstanceForType

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

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

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

      public DeleteOperation.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<DeleteOperation.Builder>
    • setField

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

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

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

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

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

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

      public DeleteOperation.Builder mergeFrom(DeleteOperation other)
    • isInitialized

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

      public DeleteOperation.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<DeleteOperation.Builder>
      Throws:
      IOException
    • hasXId

      public boolean hasXId()
      optional string x_id = 1 [json_name = "xId"];
      Specified by:
      hasXId in interface DeleteOperationOrBuilder
      Returns:
      Whether the xId field is set.
    • getXId

      public String getXId()
      optional string x_id = 1 [json_name = "xId"];
      Specified by:
      getXId in interface DeleteOperationOrBuilder
      Returns:
      The xId.
    • getXIdBytes

      public com.google.protobuf.ByteString getXIdBytes()
      optional string x_id = 1 [json_name = "xId"];
      Specified by:
      getXIdBytes in interface DeleteOperationOrBuilder
      Returns:
      The bytes for xId.
    • setXId

      public DeleteOperation.Builder setXId(String value)
      optional string x_id = 1 [json_name = "xId"];
      Parameters:
      value - The xId to set.
      Returns:
      This builder for chaining.
    • clearXId

      public DeleteOperation.Builder clearXId()
      optional string x_id = 1 [json_name = "xId"];
      Returns:
      This builder for chaining.
    • setXIdBytes

      public DeleteOperation.Builder setXIdBytes(com.google.protobuf.ByteString value)
      optional string x_id = 1 [json_name = "xId"];
      Parameters:
      value - The bytes for xId to set.
      Returns:
      This builder for chaining.
    • hasXIndex

      public boolean hasXIndex()
      optional string x_index = 2 [json_name = "xIndex"];
      Specified by:
      hasXIndex in interface DeleteOperationOrBuilder
      Returns:
      Whether the xIndex field is set.
    • getXIndex

      public String getXIndex()
      optional string x_index = 2 [json_name = "xIndex"];
      Specified by:
      getXIndex in interface DeleteOperationOrBuilder
      Returns:
      The xIndex.
    • getXIndexBytes

      public com.google.protobuf.ByteString getXIndexBytes()
      optional string x_index = 2 [json_name = "xIndex"];
      Specified by:
      getXIndexBytes in interface DeleteOperationOrBuilder
      Returns:
      The bytes for xIndex.
    • setXIndex

      public DeleteOperation.Builder setXIndex(String value)
      optional string x_index = 2 [json_name = "xIndex"];
      Parameters:
      value - The xIndex to set.
      Returns:
      This builder for chaining.
    • clearXIndex

      public DeleteOperation.Builder clearXIndex()
      optional string x_index = 2 [json_name = "xIndex"];
      Returns:
      This builder for chaining.
    • setXIndexBytes

      public DeleteOperation.Builder setXIndexBytes(com.google.protobuf.ByteString value)
      optional string x_index = 2 [json_name = "xIndex"];
      Parameters:
      value - The bytes for xIndex to set.
      Returns:
      This builder for chaining.
    • hasRouting

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

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

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

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

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

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

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

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

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

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

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

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

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

      public DeleteOperation.Builder clearIfSeqNo()
      optional int64 if_seq_no = 5 [json_name = "ifSeqNo"];
      Returns:
      This builder for chaining.
    • hasVersion

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

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

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

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

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

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

      public DeleteOperation.Builder setVersionTypeValue(int value)
      optional .org.opensearch.protobufs.VersionType version_type = 7 [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 .org.opensearch.protobufs.VersionType version_type = 7 [json_name = "versionType"];
      Specified by:
      getVersionType in interface DeleteOperationOrBuilder
      Returns:
      The versionType.
    • setVersionType

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

      public DeleteOperation.Builder clearVersionType()
      optional .org.opensearch.protobufs.VersionType version_type = 7 [json_name = "versionType"];
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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