Class IndexOperation.Builder

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

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

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

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

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

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

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

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

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

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

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

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

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

      public IndexOperation.Builder mergeFrom(IndexOperation other)
    • isInitialized

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

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

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

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

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

      public IndexOperation.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 IndexOperation.Builder clearXId()
      optional string x_id = 1 [json_name = "xId"];
      Returns:
      This builder for chaining.
    • setXIdBytes

      public IndexOperation.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 IndexOperationOrBuilder
      Returns:
      Whether the xIndex field is set.
    • getXIndex

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

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

      public IndexOperation.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 IndexOperation.Builder clearXIndex()
      optional string x_index = 2 [json_name = "xIndex"];
      Returns:
      This builder for chaining.
    • setXIndexBytes

      public IndexOperation.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 IndexOperationOrBuilder
      Returns:
      Whether the routing field is set.
    • getRouting

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

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

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

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

      public IndexOperation.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 IndexOperationOrBuilder
      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 IndexOperationOrBuilder
      Returns:
      The ifPrimaryTerm.
    • setIfPrimaryTerm

      public IndexOperation.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 IndexOperation.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 IndexOperationOrBuilder
      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 IndexOperationOrBuilder
      Returns:
      The ifSeqNo.
    • setIfSeqNo

      public IndexOperation.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 IndexOperation.Builder clearIfSeqNo()
      optional int64 if_seq_no = 5 [json_name = "ifSeqNo"];
      Returns:
      This builder for chaining.
    • hasOpType

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

      public int getOpTypeValue()
      optional .org.opensearch.protobufs.OpType op_type = 6 [json_name = "opType"];
      Specified by:
      getOpTypeValue in interface IndexOperationOrBuilder
      Returns:
      The enum numeric value on the wire for opType.
    • setOpTypeValue

      public IndexOperation.Builder setOpTypeValue(int value)
      optional .org.opensearch.protobufs.OpType op_type = 6 [json_name = "opType"];
      Parameters:
      value - The enum numeric value on the wire for opType to set.
      Returns:
      This builder for chaining.
    • getOpType

      public OpType getOpType()
      optional .org.opensearch.protobufs.OpType op_type = 6 [json_name = "opType"];
      Specified by:
      getOpType in interface IndexOperationOrBuilder
      Returns:
      The opType.
    • setOpType

      public IndexOperation.Builder setOpType(OpType value)
      optional .org.opensearch.protobufs.OpType op_type = 6 [json_name = "opType"];
      Parameters:
      value - The opType to set.
      Returns:
      This builder for chaining.
    • clearOpType

      public IndexOperation.Builder clearOpType()
      optional .org.opensearch.protobufs.OpType op_type = 6 [json_name = "opType"];
      Returns:
      This builder for chaining.
    • hasVersion

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

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

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

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

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

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

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

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

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

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

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

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

      public IndexOperation.Builder setPipeline(String value)
      optional string pipeline = 9 [json_name = "pipeline"];
      Parameters:
      value - The pipeline to set.
      Returns:
      This builder for chaining.
    • clearPipeline

      public IndexOperation.Builder clearPipeline()
      optional string pipeline = 9 [json_name = "pipeline"];
      Returns:
      This builder for chaining.
    • setPipelineBytes

      public IndexOperation.Builder setPipelineBytes(com.google.protobuf.ByteString value)
      optional string pipeline = 9 [json_name = "pipeline"];
      Parameters:
      value - The bytes for pipeline to set.
      Returns:
      This builder for chaining.
    • hasRequireAlias

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

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

      public IndexOperation.Builder setRequireAlias(boolean value)
      optional bool require_alias = 10 [json_name = "requireAlias"];
      Parameters:
      value - The requireAlias to set.
      Returns:
      This builder for chaining.
    • clearRequireAlias

      public IndexOperation.Builder clearRequireAlias()
      optional bool require_alias = 10 [json_name = "requireAlias"];
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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