public static final class MysqlxCrud.Insert extends com.google.protobuf.GeneratedMessageV3 implements MysqlxCrud.InsertOrBuilder
Insert documents/rows into a collection/table :param collection: collection to insert into :param data_model: datamodel that the operations refer to :param projection: name of the columns to insert data into (empty if data_model is DOCUMENT) :param row: set of rows to insert into the collection/table (a single expression with a JSON document literal or an OBJECT expression) :param args: values for parameters used in row expressions :param upsert: true if this should be treated as an Upsert (that is, update on duplicate key) :Returns: :protobuf:msg:`Mysqlx.Resultset::`Protobuf type
Mysqlx.Crud.Insert| Modifier and Type | Class and Description |
|---|---|
static class |
MysqlxCrud.Insert.Builder
Insert documents/rows into a collection/table
:param collection: collection to insert into
:param data_model: datamodel that the operations refer to
:param projection: name of the columns to insert data into (empty if data_model is DOCUMENT)
:param row: set of rows to insert into the collection/table (a single expression with a JSON document literal or an OBJECT expression)
:param args: values for parameters used in row expressions
:param upsert: true if this should be treated as an Upsert (that is, update on duplicate key)
:Returns: :protobuf:msg:`Mysqlx.Resultset::`
|
static class |
MysqlxCrud.Insert.TypedRow
Protobuf type
Mysqlx.Crud.Insert.TypedRow |
static interface |
MysqlxCrud.Insert.TypedRowOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ARGS_FIELD_NUMBER |
static int |
COLLECTION_FIELD_NUMBER |
static int |
DATA_MODEL_FIELD_NUMBER |
static com.google.protobuf.Parser<MysqlxCrud.Insert> |
PARSER
Deprecated.
|
static int |
PROJECTION_FIELD_NUMBER |
static int |
ROW_FIELD_NUMBER |
static int |
UPSERT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
MysqlxDatatypes.Scalar |
getArgs(int index)
repeated .Mysqlx.Datatypes.Scalar args = 5; |
int |
getArgsCount()
repeated .Mysqlx.Datatypes.Scalar args = 5; |
java.util.List<MysqlxDatatypes.Scalar> |
getArgsList()
repeated .Mysqlx.Datatypes.Scalar args = 5; |
MysqlxDatatypes.ScalarOrBuilder |
getArgsOrBuilder(int index)
repeated .Mysqlx.Datatypes.Scalar args = 5; |
java.util.List<? extends MysqlxDatatypes.ScalarOrBuilder> |
getArgsOrBuilderList()
repeated .Mysqlx.Datatypes.Scalar args = 5; |
MysqlxCrud.Collection |
getCollection()
required .Mysqlx.Crud.Collection collection = 1; |
MysqlxCrud.CollectionOrBuilder |
getCollectionOrBuilder()
required .Mysqlx.Crud.Collection collection = 1; |
MysqlxCrud.DataModel |
getDataModel()
optional .Mysqlx.Crud.DataModel data_model = 2; |
static MysqlxCrud.Insert |
getDefaultInstance() |
MysqlxCrud.Insert |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<MysqlxCrud.Insert> |
getParserForType() |
MysqlxCrud.Column |
getProjection(int index)
repeated .Mysqlx.Crud.Column projection = 3; |
int |
getProjectionCount()
repeated .Mysqlx.Crud.Column projection = 3; |
java.util.List<MysqlxCrud.Column> |
getProjectionList()
repeated .Mysqlx.Crud.Column projection = 3; |
MysqlxCrud.ColumnOrBuilder |
getProjectionOrBuilder(int index)
repeated .Mysqlx.Crud.Column projection = 3; |
java.util.List<? extends MysqlxCrud.ColumnOrBuilder> |
getProjectionOrBuilderList()
repeated .Mysqlx.Crud.Column projection = 3; |
MysqlxCrud.Insert.TypedRow |
getRow(int index)
repeated .Mysqlx.Crud.Insert.TypedRow row = 4; |
int |
getRowCount()
repeated .Mysqlx.Crud.Insert.TypedRow row = 4; |
java.util.List<MysqlxCrud.Insert.TypedRow> |
getRowList()
repeated .Mysqlx.Crud.Insert.TypedRow row = 4; |
MysqlxCrud.Insert.TypedRowOrBuilder |
getRowOrBuilder(int index)
repeated .Mysqlx.Crud.Insert.TypedRow row = 4; |
java.util.List<? extends MysqlxCrud.Insert.TypedRowOrBuilder> |
getRowOrBuilderList()
repeated .Mysqlx.Crud.Insert.TypedRow row = 4; |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
getUpsert()
optional bool upsert = 6 [default = false]; |
boolean |
hasCollection()
required .Mysqlx.Crud.Collection collection = 1; |
boolean |
hasDataModel()
optional .Mysqlx.Crud.DataModel data_model = 2; |
int |
hashCode() |
boolean |
hasUpsert()
optional bool upsert = 6 [default = false]; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static MysqlxCrud.Insert.Builder |
newBuilder() |
static MysqlxCrud.Insert.Builder |
newBuilder(MysqlxCrud.Insert prototype) |
MysqlxCrud.Insert.Builder |
newBuilderForType() |
protected MysqlxCrud.Insert.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static MysqlxCrud.Insert |
parseDelimitedFrom(java.io.InputStream input) |
static MysqlxCrud.Insert |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MysqlxCrud.Insert |
parseFrom(byte[] data) |
static MysqlxCrud.Insert |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MysqlxCrud.Insert |
parseFrom(java.nio.ByteBuffer data) |
static MysqlxCrud.Insert |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MysqlxCrud.Insert |
parseFrom(com.google.protobuf.ByteString data) |
static MysqlxCrud.Insert |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MysqlxCrud.Insert |
parseFrom(com.google.protobuf.CodedInputStream input) |
static MysqlxCrud.Insert |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MysqlxCrud.Insert |
parseFrom(java.io.InputStream input) |
static MysqlxCrud.Insert |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<MysqlxCrud.Insert> |
parser() |
MysqlxCrud.Insert.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int COLLECTION_FIELD_NUMBER
public static final int DATA_MODEL_FIELD_NUMBER
public static final int PROJECTION_FIELD_NUMBER
public static final int ROW_FIELD_NUMBER
public static final int ARGS_FIELD_NUMBER
public static final int UPSERT_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<MysqlxCrud.Insert> PARSER
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasCollection()
required .Mysqlx.Crud.Collection collection = 1;hasCollection in interface MysqlxCrud.InsertOrBuilderpublic MysqlxCrud.Collection getCollection()
required .Mysqlx.Crud.Collection collection = 1;getCollection in interface MysqlxCrud.InsertOrBuilderpublic MysqlxCrud.CollectionOrBuilder getCollectionOrBuilder()
required .Mysqlx.Crud.Collection collection = 1;getCollectionOrBuilder in interface MysqlxCrud.InsertOrBuilderpublic boolean hasDataModel()
optional .Mysqlx.Crud.DataModel data_model = 2;hasDataModel in interface MysqlxCrud.InsertOrBuilderpublic MysqlxCrud.DataModel getDataModel()
optional .Mysqlx.Crud.DataModel data_model = 2;getDataModel in interface MysqlxCrud.InsertOrBuilderpublic java.util.List<MysqlxCrud.Column> getProjectionList()
repeated .Mysqlx.Crud.Column projection = 3;getProjectionList in interface MysqlxCrud.InsertOrBuilderpublic java.util.List<? extends MysqlxCrud.ColumnOrBuilder> getProjectionOrBuilderList()
repeated .Mysqlx.Crud.Column projection = 3;getProjectionOrBuilderList in interface MysqlxCrud.InsertOrBuilderpublic int getProjectionCount()
repeated .Mysqlx.Crud.Column projection = 3;getProjectionCount in interface MysqlxCrud.InsertOrBuilderpublic MysqlxCrud.Column getProjection(int index)
repeated .Mysqlx.Crud.Column projection = 3;getProjection in interface MysqlxCrud.InsertOrBuilderpublic MysqlxCrud.ColumnOrBuilder getProjectionOrBuilder(int index)
repeated .Mysqlx.Crud.Column projection = 3;getProjectionOrBuilder in interface MysqlxCrud.InsertOrBuilderpublic java.util.List<MysqlxCrud.Insert.TypedRow> getRowList()
repeated .Mysqlx.Crud.Insert.TypedRow row = 4;getRowList in interface MysqlxCrud.InsertOrBuilderpublic java.util.List<? extends MysqlxCrud.Insert.TypedRowOrBuilder> getRowOrBuilderList()
repeated .Mysqlx.Crud.Insert.TypedRow row = 4;getRowOrBuilderList in interface MysqlxCrud.InsertOrBuilderpublic int getRowCount()
repeated .Mysqlx.Crud.Insert.TypedRow row = 4;getRowCount in interface MysqlxCrud.InsertOrBuilderpublic MysqlxCrud.Insert.TypedRow getRow(int index)
repeated .Mysqlx.Crud.Insert.TypedRow row = 4;getRow in interface MysqlxCrud.InsertOrBuilderpublic MysqlxCrud.Insert.TypedRowOrBuilder getRowOrBuilder(int index)
repeated .Mysqlx.Crud.Insert.TypedRow row = 4;getRowOrBuilder in interface MysqlxCrud.InsertOrBuilderpublic java.util.List<MysqlxDatatypes.Scalar> getArgsList()
repeated .Mysqlx.Datatypes.Scalar args = 5;getArgsList in interface MysqlxCrud.InsertOrBuilderpublic java.util.List<? extends MysqlxDatatypes.ScalarOrBuilder> getArgsOrBuilderList()
repeated .Mysqlx.Datatypes.Scalar args = 5;getArgsOrBuilderList in interface MysqlxCrud.InsertOrBuilderpublic int getArgsCount()
repeated .Mysqlx.Datatypes.Scalar args = 5;getArgsCount in interface MysqlxCrud.InsertOrBuilderpublic MysqlxDatatypes.Scalar getArgs(int index)
repeated .Mysqlx.Datatypes.Scalar args = 5;getArgs in interface MysqlxCrud.InsertOrBuilderpublic MysqlxDatatypes.ScalarOrBuilder getArgsOrBuilder(int index)
repeated .Mysqlx.Datatypes.Scalar args = 5;getArgsOrBuilder in interface MysqlxCrud.InsertOrBuilderpublic boolean hasUpsert()
optional bool upsert = 6 [default = false];hasUpsert in interface MysqlxCrud.InsertOrBuilderpublic boolean getUpsert()
optional bool upsert = 6 [default = false];getUpsert in interface MysqlxCrud.InsertOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static MysqlxCrud.Insert parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MysqlxCrud.Insert parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MysqlxCrud.Insert parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MysqlxCrud.Insert parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MysqlxCrud.Insert parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MysqlxCrud.Insert parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MysqlxCrud.Insert parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static MysqlxCrud.Insert parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static MysqlxCrud.Insert parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static MysqlxCrud.Insert parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static MysqlxCrud.Insert parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static MysqlxCrud.Insert parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic MysqlxCrud.Insert.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static MysqlxCrud.Insert.Builder newBuilder()
public static MysqlxCrud.Insert.Builder newBuilder(MysqlxCrud.Insert prototype)
public MysqlxCrud.Insert.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected MysqlxCrud.Insert.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static MysqlxCrud.Insert getDefaultInstance()
public static com.google.protobuf.Parser<MysqlxCrud.Insert> parser()
public com.google.protobuf.Parser<MysqlxCrud.Insert> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public MysqlxCrud.Insert getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder