All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.datastore.v1.CommitRequestOrBuilder Maven / Gradle / Ivy

There is a newer version: 2.0.31
Show newest version
/*
 * Copyright 2023 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/datastore/v1/datastore.proto

package com.google.datastore.v1;

public interface CommitRequestOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.datastore.v1.CommitRequest)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * 
   * Required. The ID of the project against which to make the request.
   * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; * * @return The projectId. */ java.lang.String getProjectId(); /** * * *
   * Required. The ID of the project against which to make the request.
   * 
* * string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for projectId. */ com.google.protobuf.ByteString getProjectIdBytes(); /** * * *
   * The ID of the database against which to make the request.
   *
   * '(default)' is not allowed; please use empty string '' to refer the default
   * database.
   * 
* * string database_id = 9; * * @return The databaseId. */ java.lang.String getDatabaseId(); /** * * *
   * The ID of the database against which to make the request.
   *
   * '(default)' is not allowed; please use empty string '' to refer the default
   * database.
   * 
* * string database_id = 9; * * @return The bytes for databaseId. */ com.google.protobuf.ByteString getDatabaseIdBytes(); /** * * *
   * The type of commit to perform. Defaults to `TRANSACTIONAL`.
   * 
* * .google.datastore.v1.CommitRequest.Mode mode = 5; * * @return The enum numeric value on the wire for mode. */ int getModeValue(); /** * * *
   * The type of commit to perform. Defaults to `TRANSACTIONAL`.
   * 
* * .google.datastore.v1.CommitRequest.Mode mode = 5; * * @return The mode. */ com.google.datastore.v1.CommitRequest.Mode getMode(); /** * * *
   * The identifier of the transaction associated with the commit. A
   * transaction identifier is returned by a call to
   * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
   * 
* * bytes transaction = 1; * * @return Whether the transaction field is set. */ boolean hasTransaction(); /** * * *
   * The identifier of the transaction associated with the commit. A
   * transaction identifier is returned by a call to
   * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
   * 
* * bytes transaction = 1; * * @return The transaction. */ com.google.protobuf.ByteString getTransaction(); /** * * *
   * Options for beginning a new transaction for this request.
   * The transaction is committed when the request completes. If specified,
   * [TransactionOptions.mode][google.datastore.v1.TransactionOptions] must be
   * [TransactionOptions.ReadWrite][google.datastore.v1.TransactionOptions.ReadWrite].
   * 
* * .google.datastore.v1.TransactionOptions single_use_transaction = 10; * * @return Whether the singleUseTransaction field is set. */ boolean hasSingleUseTransaction(); /** * * *
   * Options for beginning a new transaction for this request.
   * The transaction is committed when the request completes. If specified,
   * [TransactionOptions.mode][google.datastore.v1.TransactionOptions] must be
   * [TransactionOptions.ReadWrite][google.datastore.v1.TransactionOptions.ReadWrite].
   * 
* * .google.datastore.v1.TransactionOptions single_use_transaction = 10; * * @return The singleUseTransaction. */ com.google.datastore.v1.TransactionOptions getSingleUseTransaction(); /** * * *
   * Options for beginning a new transaction for this request.
   * The transaction is committed when the request completes. If specified,
   * [TransactionOptions.mode][google.datastore.v1.TransactionOptions] must be
   * [TransactionOptions.ReadWrite][google.datastore.v1.TransactionOptions.ReadWrite].
   * 
* * .google.datastore.v1.TransactionOptions single_use_transaction = 10; */ com.google.datastore.v1.TransactionOptionsOrBuilder getSingleUseTransactionOrBuilder(); /** * * *
   * The mutations to perform.
   *
   * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
   * applied in order. The following sequences of mutations affecting a single
   * entity are not permitted in a single `Commit` request:
   *
   * - `insert` followed by `insert`
   * - `update` followed by `insert`
   * - `upsert` followed by `insert`
   * - `delete` followed by `update`
   *
   * When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
   * entity.
   * 
* * repeated .google.datastore.v1.Mutation mutations = 6; */ java.util.List getMutationsList(); /** * * *
   * The mutations to perform.
   *
   * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
   * applied in order. The following sequences of mutations affecting a single
   * entity are not permitted in a single `Commit` request:
   *
   * - `insert` followed by `insert`
   * - `update` followed by `insert`
   * - `upsert` followed by `insert`
   * - `delete` followed by `update`
   *
   * When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
   * entity.
   * 
* * repeated .google.datastore.v1.Mutation mutations = 6; */ com.google.datastore.v1.Mutation getMutations(int index); /** * * *
   * The mutations to perform.
   *
   * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
   * applied in order. The following sequences of mutations affecting a single
   * entity are not permitted in a single `Commit` request:
   *
   * - `insert` followed by `insert`
   * - `update` followed by `insert`
   * - `upsert` followed by `insert`
   * - `delete` followed by `update`
   *
   * When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
   * entity.
   * 
* * repeated .google.datastore.v1.Mutation mutations = 6; */ int getMutationsCount(); /** * * *
   * The mutations to perform.
   *
   * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
   * applied in order. The following sequences of mutations affecting a single
   * entity are not permitted in a single `Commit` request:
   *
   * - `insert` followed by `insert`
   * - `update` followed by `insert`
   * - `upsert` followed by `insert`
   * - `delete` followed by `update`
   *
   * When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
   * entity.
   * 
* * repeated .google.datastore.v1.Mutation mutations = 6; */ java.util.List getMutationsOrBuilderList(); /** * * *
   * The mutations to perform.
   *
   * When mode is `TRANSACTIONAL`, mutations affecting a single entity are
   * applied in order. The following sequences of mutations affecting a single
   * entity are not permitted in a single `Commit` request:
   *
   * - `insert` followed by `insert`
   * - `update` followed by `insert`
   * - `upsert` followed by `insert`
   * - `delete` followed by `update`
   *
   * When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
   * entity.
   * 
* * repeated .google.datastore.v1.Mutation mutations = 6; */ com.google.datastore.v1.MutationOrBuilder getMutationsOrBuilder(int index); com.google.datastore.v1.CommitRequest.TransactionSelectorCase getTransactionSelectorCase(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy