Package org.opensearch.protobufs
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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearId()string id = 1 [json_name = "id"];optional int64 if_primary_term = 3 [json_name = "ifPrimaryTerm"];optional int64 if_seq_no = 4 [json_name = "ifSeqNo"];string index = 2 [json_name = "index"];clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) optional .Refresh refresh = 5 [json_name = "refresh"];optional string routing = 6 [json_name = "routing"];optional string timeout = 7 [json_name = "timeout"];optional int64 version = 8 [json_name = "version"];optional .VersionType version_type = 9 [json_name = "versionType"];optional .WaitForActiveShards wait_for_active_shards = 10 [json_name = "waitForActiveShards"];clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetId()string id = 1 [json_name = "id"];com.google.protobuf.ByteStringstring id = 1 [json_name = "id"];longoptional int64 if_primary_term = 3 [json_name = "ifPrimaryTerm"];longoptional int64 if_seq_no = 4 [json_name = "ifSeqNo"];getIndex()string index = 2 [json_name = "index"];com.google.protobuf.ByteStringstring index = 2 [json_name = "index"];optional .Refresh refresh = 5 [json_name = "refresh"];intoptional .Refresh refresh = 5 [json_name = "refresh"];optional string routing = 6 [json_name = "routing"];com.google.protobuf.ByteStringoptional string routing = 6 [json_name = "routing"];optional string timeout = 7 [json_name = "timeout"];com.google.protobuf.ByteStringoptional string timeout = 7 [json_name = "timeout"];longoptional int64 version = 8 [json_name = "version"];optional .VersionType version_type = 9 [json_name = "versionType"];intoptional .VersionType version_type = 9 [json_name = "versionType"];optional .WaitForActiveShards wait_for_active_shards = 10 [json_name = "waitForActiveShards"];optional .WaitForActiveShards wait_for_active_shards = 10 [json_name = "waitForActiveShards"];optional .WaitForActiveShards wait_for_active_shards = 10 [json_name = "waitForActiveShards"];booleanoptional int64 if_primary_term = 3 [json_name = "ifPrimaryTerm"];booleanoptional int64 if_seq_no = 4 [json_name = "ifSeqNo"];booleanoptional .Refresh refresh = 5 [json_name = "refresh"];booleanoptional string routing = 6 [json_name = "routing"];booleanoptional string timeout = 7 [json_name = "timeout"];booleanoptional int64 version = 8 [json_name = "version"];booleanoptional .VersionType version_type = 9 [json_name = "versionType"];booleanoptional .WaitForActiveShards wait_for_active_shards = 10 [json_name = "waitForActiveShards"];protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(DeleteDocumentRequest other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) optional .WaitForActiveShards wait_for_active_shards = 10 [json_name = "waitForActiveShards"];string id = 1 [json_name = "id"];setIdBytes(com.google.protobuf.ByteString value) string id = 1 [json_name = "id"];setIfPrimaryTerm(long value) optional int64 if_primary_term = 3 [json_name = "ifPrimaryTerm"];setIfSeqNo(long value) optional int64 if_seq_no = 4 [json_name = "ifSeqNo"];string index = 2 [json_name = "index"];setIndexBytes(com.google.protobuf.ByteString value) string index = 2 [json_name = "index"];setRefresh(Refresh value) optional .Refresh refresh = 5 [json_name = "refresh"];setRefreshValue(int value) optional .Refresh refresh = 5 [json_name = "refresh"];setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRouting(String value) optional string routing = 6 [json_name = "routing"];setRoutingBytes(com.google.protobuf.ByteString value) optional string routing = 6 [json_name = "routing"];setTimeout(String value) optional string timeout = 7 [json_name = "timeout"];setTimeoutBytes(com.google.protobuf.ByteString value) optional string timeout = 7 [json_name = "timeout"];setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setVersion(long value) optional int64 version = 8 [json_name = "version"];setVersionType(VersionType value) optional .VersionType version_type = 9 [json_name = "versionType"];setVersionTypeValue(int value) optional .VersionType version_type = 9 [json_name = "versionType"];optional .WaitForActiveShards wait_for_active_shards = 10 [json_name = "waitForActiveShards"];setWaitForActiveShards(WaitForActiveShards.Builder builderForValue) optional .WaitForActiveShards wait_for_active_shards = 10 [json_name = "waitForActiveShards"];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<DeleteDocumentRequest.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<DeleteDocumentRequest.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<DeleteDocumentRequest.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<DeleteDocumentRequest.Builder>
-
setField
public DeleteDocumentRequest.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<DeleteDocumentRequest.Builder>
-
clearField
public DeleteDocumentRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DeleteDocumentRequest.Builder>
-
clearOneof
public DeleteDocumentRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DeleteDocumentRequest.Builder>
-
setRepeatedField
public DeleteDocumentRequest.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<DeleteDocumentRequest.Builder>
-
addRepeatedField
public DeleteDocumentRequest.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<DeleteDocumentRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DeleteDocumentRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DeleteDocumentRequest.Builder>- Throws:
IOException
-
getId
string id = 1 [json_name = "id"];- Specified by:
getIdin interfaceDeleteDocumentRequestOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()string id = 1 [json_name = "id"];- Specified by:
getIdBytesin interfaceDeleteDocumentRequestOrBuilder- Returns:
- The bytes for id.
-
setId
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
string id = 1 [json_name = "id"];- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
getIndex
string index = 2 [json_name = "index"];- Specified by:
getIndexin interfaceDeleteDocumentRequestOrBuilder- Returns:
- The index.
-
getIndexBytes
public com.google.protobuf.ByteString getIndexBytes()string index = 2 [json_name = "index"];- Specified by:
getIndexBytesin interfaceDeleteDocumentRequestOrBuilder- Returns:
- The bytes for index.
-
setIndex
string index = 2 [json_name = "index"];- Parameters:
value- The index to set.- Returns:
- This builder for chaining.
-
clearIndex
string index = 2 [json_name = "index"];- Returns:
- This builder for chaining.
-
setIndexBytes
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:
hasIfPrimaryTermin interfaceDeleteDocumentRequestOrBuilder- Returns:
- Whether the ifPrimaryTerm field is set.
-
getIfPrimaryTerm
public long getIfPrimaryTerm()optional int64 if_primary_term = 3 [json_name = "ifPrimaryTerm"];- Specified by:
getIfPrimaryTermin interfaceDeleteDocumentRequestOrBuilder- Returns:
- The ifPrimaryTerm.
-
setIfPrimaryTerm
optional int64 if_primary_term = 3 [json_name = "ifPrimaryTerm"];- Parameters:
value- The ifPrimaryTerm to set.- Returns:
- This builder for chaining.
-
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:
hasIfSeqNoin interfaceDeleteDocumentRequestOrBuilder- Returns:
- Whether the ifSeqNo field is set.
-
getIfSeqNo
public long getIfSeqNo()optional int64 if_seq_no = 4 [json_name = "ifSeqNo"];- Specified by:
getIfSeqNoin interfaceDeleteDocumentRequestOrBuilder- Returns:
- The ifSeqNo.
-
setIfSeqNo
optional int64 if_seq_no = 4 [json_name = "ifSeqNo"];- Parameters:
value- The ifSeqNo to set.- Returns:
- This builder for chaining.
-
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:
hasRefreshin interfaceDeleteDocumentRequestOrBuilder- Returns:
- Whether the refresh field is set.
-
getRefreshValue
public int getRefreshValue()optional .Refresh refresh = 5 [json_name = "refresh"];- Specified by:
getRefreshValuein interfaceDeleteDocumentRequestOrBuilder- Returns:
- The enum numeric value on the wire for refresh.
-
setRefreshValue
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
optional .Refresh refresh = 5 [json_name = "refresh"];- Specified by:
getRefreshin interfaceDeleteDocumentRequestOrBuilder- Returns:
- The refresh.
-
setRefresh
optional .Refresh refresh = 5 [json_name = "refresh"];- Parameters:
value- The refresh to set.- Returns:
- This builder for chaining.
-
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:
hasRoutingin interfaceDeleteDocumentRequestOrBuilder- Returns:
- Whether the routing field is set.
-
getRouting
optional string routing = 6 [json_name = "routing"];- Specified by:
getRoutingin interfaceDeleteDocumentRequestOrBuilder- Returns:
- The routing.
-
getRoutingBytes
public com.google.protobuf.ByteString getRoutingBytes()optional string routing = 6 [json_name = "routing"];- Specified by:
getRoutingBytesin interfaceDeleteDocumentRequestOrBuilder- Returns:
- The bytes for routing.
-
setRouting
optional string routing = 6 [json_name = "routing"];- Parameters:
value- The routing to set.- Returns:
- This builder for chaining.
-
clearRouting
optional string routing = 6 [json_name = "routing"];- Returns:
- This builder for chaining.
-
setRoutingBytes
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:
hasTimeoutin interfaceDeleteDocumentRequestOrBuilder- Returns:
- Whether the timeout field is set.
-
getTimeout
optional string timeout = 7 [json_name = "timeout"];- Specified by:
getTimeoutin interfaceDeleteDocumentRequestOrBuilder- Returns:
- The timeout.
-
getTimeoutBytes
public com.google.protobuf.ByteString getTimeoutBytes()optional string timeout = 7 [json_name = "timeout"];- Specified by:
getTimeoutBytesin interfaceDeleteDocumentRequestOrBuilder- Returns:
- The bytes for timeout.
-
setTimeout
optional string timeout = 7 [json_name = "timeout"];- Parameters:
value- The timeout to set.- Returns:
- This builder for chaining.
-
clearTimeout
optional string timeout = 7 [json_name = "timeout"];- Returns:
- This builder for chaining.
-
setTimeoutBytes
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:
hasVersionin interfaceDeleteDocumentRequestOrBuilder- Returns:
- Whether the version field is set.
-
getVersion
public long getVersion()optional int64 version = 8 [json_name = "version"];- Specified by:
getVersionin interfaceDeleteDocumentRequestOrBuilder- Returns:
- The version.
-
setVersion
optional int64 version = 8 [json_name = "version"];- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
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:
hasVersionTypein interfaceDeleteDocumentRequestOrBuilder- Returns:
- Whether the versionType field is set.
-
getVersionTypeValue
public int getVersionTypeValue()optional .VersionType version_type = 9 [json_name = "versionType"];- Specified by:
getVersionTypeValuein interfaceDeleteDocumentRequestOrBuilder- Returns:
- The enum numeric value on the wire for versionType.
-
setVersionTypeValue
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
optional .VersionType version_type = 9 [json_name = "versionType"];- Specified by:
getVersionTypein interfaceDeleteDocumentRequestOrBuilder- Returns:
- The versionType.
-
setVersionType
optional .VersionType version_type = 9 [json_name = "versionType"];- Parameters:
value- The versionType to set.- Returns:
- This builder for chaining.
-
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:
hasWaitForActiveShardsin interfaceDeleteDocumentRequestOrBuilder- Returns:
- Whether the waitForActiveShards field is set.
-
getWaitForActiveShards
optional .WaitForActiveShards wait_for_active_shards = 10 [json_name = "waitForActiveShards"];- Specified by:
getWaitForActiveShardsin interfaceDeleteDocumentRequestOrBuilder- Returns:
- The waitForActiveShards.
-
setWaitForActiveShards
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
optional .WaitForActiveShards wait_for_active_shards = 10 [json_name = "waitForActiveShards"]; -
clearWaitForActiveShards
optional .WaitForActiveShards wait_for_active_shards = 10 [json_name = "waitForActiveShards"]; -
getWaitForActiveShardsBuilder
optional .WaitForActiveShards wait_for_active_shards = 10 [json_name = "waitForActiveShards"]; -
getWaitForActiveShardsOrBuilder
optional .WaitForActiveShards wait_for_active_shards = 10 [json_name = "waitForActiveShards"];- Specified by:
getWaitForActiveShardsOrBuilderin interfaceDeleteDocumentRequestOrBuilder
-
setUnknownFields
public final DeleteDocumentRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DeleteDocumentRequest.Builder>
-
mergeUnknownFields
public final DeleteDocumentRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DeleteDocumentRequest.Builder>
-