Package org.opensearch.protobufs
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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) optional int64 if_primary_term = 4 [json_name = "ifPrimaryTerm"];optional int64 if_seq_no = 5 [json_name = "ifSeqNo"];clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) optional .org.opensearch.protobufs.OpType op_type = 6 [json_name = "opType"];optional string pipeline = 9 [json_name = "pipeline"];optional bool require_alias = 10 [json_name = "requireAlias"];optional string routing = 3 [json_name = "routing"];optional int64 version = 7 [json_name = "version"];optional .org.opensearch.protobufs.VersionType version_type = 8 [json_name = "versionType"];clearXId()optional string x_id = 1 [json_name = "xId"];optional string x_index = 2 [json_name = "xIndex"];clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorlongoptional int64 if_primary_term = 4 [json_name = "ifPrimaryTerm"];longoptional int64 if_seq_no = 5 [json_name = "ifSeqNo"];optional .org.opensearch.protobufs.OpType op_type = 6 [json_name = "opType"];intoptional .org.opensearch.protobufs.OpType op_type = 6 [json_name = "opType"];optional string pipeline = 9 [json_name = "pipeline"];com.google.protobuf.ByteStringoptional string pipeline = 9 [json_name = "pipeline"];booleanoptional bool require_alias = 10 [json_name = "requireAlias"];optional string routing = 3 [json_name = "routing"];com.google.protobuf.ByteStringoptional string routing = 3 [json_name = "routing"];longoptional int64 version = 7 [json_name = "version"];optional .org.opensearch.protobufs.VersionType version_type = 8 [json_name = "versionType"];intoptional .org.opensearch.protobufs.VersionType version_type = 8 [json_name = "versionType"];getXId()optional string x_id = 1 [json_name = "xId"];com.google.protobuf.ByteStringoptional string x_id = 1 [json_name = "xId"];optional string x_index = 2 [json_name = "xIndex"];com.google.protobuf.ByteStringoptional string x_index = 2 [json_name = "xIndex"];booleanoptional int64 if_primary_term = 4 [json_name = "ifPrimaryTerm"];booleanoptional int64 if_seq_no = 5 [json_name = "ifSeqNo"];booleanoptional .org.opensearch.protobufs.OpType op_type = 6 [json_name = "opType"];booleanoptional string pipeline = 9 [json_name = "pipeline"];booleanoptional bool require_alias = 10 [json_name = "requireAlias"];booleanoptional string routing = 3 [json_name = "routing"];booleanoptional int64 version = 7 [json_name = "version"];booleanoptional .org.opensearch.protobufs.VersionType version_type = 8 [json_name = "versionType"];booleanhasXId()optional string x_id = 1 [json_name = "xId"];booleanoptional string x_index = 2 [json_name = "xIndex"];protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(IndexOperation other) final IndexOperation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setIfPrimaryTerm(long value) optional int64 if_primary_term = 4 [json_name = "ifPrimaryTerm"];setIfSeqNo(long value) optional int64 if_seq_no = 5 [json_name = "ifSeqNo"];optional .org.opensearch.protobufs.OpType op_type = 6 [json_name = "opType"];setOpTypeValue(int value) optional .org.opensearch.protobufs.OpType op_type = 6 [json_name = "opType"];setPipeline(String value) optional string pipeline = 9 [json_name = "pipeline"];setPipelineBytes(com.google.protobuf.ByteString value) optional string pipeline = 9 [json_name = "pipeline"];setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRequireAlias(boolean value) optional bool require_alias = 10 [json_name = "requireAlias"];setRouting(String value) optional string routing = 3 [json_name = "routing"];setRoutingBytes(com.google.protobuf.ByteString value) optional string routing = 3 [json_name = "routing"];final IndexOperation.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setVersion(long value) optional int64 version = 7 [json_name = "version"];setVersionType(VersionType value) optional .org.opensearch.protobufs.VersionType version_type = 8 [json_name = "versionType"];setVersionTypeValue(int value) optional .org.opensearch.protobufs.VersionType version_type = 8 [json_name = "versionType"];optional string x_id = 1 [json_name = "xId"];setXIdBytes(com.google.protobuf.ByteString value) optional string x_id = 1 [json_name = "xId"];optional string x_index = 2 [json_name = "xIndex"];setXIndexBytes(com.google.protobuf.ByteString value) optional string x_index = 2 [json_name = "xIndex"];Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<IndexOperation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<IndexOperation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<IndexOperation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<IndexOperation.Builder>
-
setField
public IndexOperation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IndexOperation.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IndexOperation.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<IndexOperation.Builder>
-
setRepeatedField
public IndexOperation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IndexOperation.Builder>
-
addRepeatedField
public IndexOperation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IndexOperation.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<IndexOperation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<IndexOperation.Builder>- Throws:
IOException
-
hasXId
public boolean hasXId()optional string x_id = 1 [json_name = "xId"];- Specified by:
hasXIdin interfaceIndexOperationOrBuilder- Returns:
- Whether the xId field is set.
-
getXId
optional string x_id = 1 [json_name = "xId"];- Specified by:
getXIdin interfaceIndexOperationOrBuilder- Returns:
- The xId.
-
getXIdBytes
public com.google.protobuf.ByteString getXIdBytes()optional string x_id = 1 [json_name = "xId"];- Specified by:
getXIdBytesin interfaceIndexOperationOrBuilder- Returns:
- The bytes for xId.
-
setXId
optional string x_id = 1 [json_name = "xId"];- Parameters:
value- The xId to set.- Returns:
- This builder for chaining.
-
clearXId
optional string x_id = 1 [json_name = "xId"];- Returns:
- This builder for chaining.
-
setXIdBytes
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:
hasXIndexin interfaceIndexOperationOrBuilder- Returns:
- Whether the xIndex field is set.
-
getXIndex
optional string x_index = 2 [json_name = "xIndex"];- Specified by:
getXIndexin interfaceIndexOperationOrBuilder- Returns:
- The xIndex.
-
getXIndexBytes
public com.google.protobuf.ByteString getXIndexBytes()optional string x_index = 2 [json_name = "xIndex"];- Specified by:
getXIndexBytesin interfaceIndexOperationOrBuilder- Returns:
- The bytes for xIndex.
-
setXIndex
optional string x_index = 2 [json_name = "xIndex"];- Parameters:
value- The xIndex to set.- Returns:
- This builder for chaining.
-
clearXIndex
optional string x_index = 2 [json_name = "xIndex"];- Returns:
- This builder for chaining.
-
setXIndexBytes
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:
hasRoutingin interfaceIndexOperationOrBuilder- Returns:
- Whether the routing field is set.
-
getRouting
optional string routing = 3 [json_name = "routing"];- Specified by:
getRoutingin interfaceIndexOperationOrBuilder- Returns:
- The routing.
-
getRoutingBytes
public com.google.protobuf.ByteString getRoutingBytes()optional string routing = 3 [json_name = "routing"];- Specified by:
getRoutingBytesin interfaceIndexOperationOrBuilder- Returns:
- The bytes for routing.
-
setRouting
optional string routing = 3 [json_name = "routing"];- Parameters:
value- The routing to set.- Returns:
- This builder for chaining.
-
clearRouting
optional string routing = 3 [json_name = "routing"];- Returns:
- This builder for chaining.
-
setRoutingBytes
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:
hasIfPrimaryTermin interfaceIndexOperationOrBuilder- Returns:
- Whether the ifPrimaryTerm field is set.
-
getIfPrimaryTerm
public long getIfPrimaryTerm()optional int64 if_primary_term = 4 [json_name = "ifPrimaryTerm"];- Specified by:
getIfPrimaryTermin interfaceIndexOperationOrBuilder- Returns:
- The ifPrimaryTerm.
-
setIfPrimaryTerm
optional int64 if_primary_term = 4 [json_name = "ifPrimaryTerm"];- Parameters:
value- The ifPrimaryTerm to set.- Returns:
- This builder for chaining.
-
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:
hasIfSeqNoin interfaceIndexOperationOrBuilder- Returns:
- Whether the ifSeqNo field is set.
-
getIfSeqNo
public long getIfSeqNo()optional int64 if_seq_no = 5 [json_name = "ifSeqNo"];- Specified by:
getIfSeqNoin interfaceIndexOperationOrBuilder- Returns:
- The ifSeqNo.
-
setIfSeqNo
optional int64 if_seq_no = 5 [json_name = "ifSeqNo"];- Parameters:
value- The ifSeqNo to set.- Returns:
- This builder for chaining.
-
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:
hasOpTypein interfaceIndexOperationOrBuilder- Returns:
- Whether the opType field is set.
-
getOpTypeValue
public int getOpTypeValue()optional .org.opensearch.protobufs.OpType op_type = 6 [json_name = "opType"];- Specified by:
getOpTypeValuein interfaceIndexOperationOrBuilder- Returns:
- The enum numeric value on the wire for opType.
-
setOpTypeValue
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
optional .org.opensearch.protobufs.OpType op_type = 6 [json_name = "opType"];- Specified by:
getOpTypein interfaceIndexOperationOrBuilder- Returns:
- The opType.
-
setOpType
optional .org.opensearch.protobufs.OpType op_type = 6 [json_name = "opType"];- Parameters:
value- The opType to set.- Returns:
- This builder for chaining.
-
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:
hasVersionin interfaceIndexOperationOrBuilder- Returns:
- Whether the version field is set.
-
getVersion
public long getVersion()optional int64 version = 7 [json_name = "version"];- Specified by:
getVersionin interfaceIndexOperationOrBuilder- Returns:
- The version.
-
setVersion
optional int64 version = 7 [json_name = "version"];- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
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:
hasVersionTypein interfaceIndexOperationOrBuilder- Returns:
- Whether the versionType field is set.
-
getVersionTypeValue
public int getVersionTypeValue()optional .org.opensearch.protobufs.VersionType version_type = 8 [json_name = "versionType"];- Specified by:
getVersionTypeValuein interfaceIndexOperationOrBuilder- Returns:
- The enum numeric value on the wire for versionType.
-
setVersionTypeValue
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
optional .org.opensearch.protobufs.VersionType version_type = 8 [json_name = "versionType"];- Specified by:
getVersionTypein interfaceIndexOperationOrBuilder- Returns:
- The versionType.
-
setVersionType
optional .org.opensearch.protobufs.VersionType version_type = 8 [json_name = "versionType"];- Parameters:
value- The versionType to set.- Returns:
- This builder for chaining.
-
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:
hasPipelinein interfaceIndexOperationOrBuilder- Returns:
- Whether the pipeline field is set.
-
getPipeline
optional string pipeline = 9 [json_name = "pipeline"];- Specified by:
getPipelinein interfaceIndexOperationOrBuilder- Returns:
- The pipeline.
-
getPipelineBytes
public com.google.protobuf.ByteString getPipelineBytes()optional string pipeline = 9 [json_name = "pipeline"];- Specified by:
getPipelineBytesin interfaceIndexOperationOrBuilder- Returns:
- The bytes for pipeline.
-
setPipeline
optional string pipeline = 9 [json_name = "pipeline"];- Parameters:
value- The pipeline to set.- Returns:
- This builder for chaining.
-
clearPipeline
optional string pipeline = 9 [json_name = "pipeline"];- Returns:
- This builder for chaining.
-
setPipelineBytes
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:
hasRequireAliasin interfaceIndexOperationOrBuilder- Returns:
- Whether the requireAlias field is set.
-
getRequireAlias
public boolean getRequireAlias()optional bool require_alias = 10 [json_name = "requireAlias"];- Specified by:
getRequireAliasin interfaceIndexOperationOrBuilder- Returns:
- The requireAlias.
-
setRequireAlias
optional bool require_alias = 10 [json_name = "requireAlias"];- Parameters:
value- The requireAlias to set.- Returns:
- This builder for chaining.
-
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<IndexOperation.Builder>
-
mergeUnknownFields
public final IndexOperation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<IndexOperation.Builder>
-