/// <summary> /// Modifies a row atomically. The method reads the latest existing timestamp /// and value from the specified columns and writes a new entry based on /// pre-defined read/modify/write rules. The new value for the timestamp is the /// greater of the existing timestamp or the current server time. The method /// returns the new contents of all modified cells. /// </summary> /// <param name="request"> /// The request object containing all of the parameters for the API call. /// </param> /// <param name="callSettings"> /// If not null, applies overrides to this RPC call. /// </param> /// <returns> /// The RPC response. /// </returns> public override ReadModifyWriteRowResponse ReadModifyWriteRow( ReadModifyWriteRowRequest request, CallSettings callSettings = null) { Modify_ReadModifyWriteRowRequest(ref request, ref callSettings); return(_callReadModifyWriteRow.Sync(request, callSettings)); }
/// <inheritdoc/> public override ReadModifyWriteRowResponse ReadModifyWriteRow( ReadModifyWriteRowRequest request, gaxgrpc::CallSettings callSettings = null) { if (request.AppProfileId == null) { request.AppProfileId = _appProfileId; } return(GetUnderlyingClient().ReadModifyWriteRow(request, callSettings)); }
/// <inheritdoc/> public override ReadModifyWriteRowResponse ReadModifyWriteRow( ReadModifyWriteRowRequest request, gaxgrpc::CallSettings callSettings = null) { if (_appProfileId != null && request.AppProfileId.Length == 0) { request.AppProfileId = _appProfileId; } return(_client.ReadModifyWriteRow(request, callSettings)); }
/// <inheritdoc/> public override Task <ReadModifyWriteRowResponse> ReadModifyWriteRowAsync( ReadModifyWriteRowRequest request, CallSettings callSettings = null) { if (request.AppProfileId == null) { request.AppProfileId = _appProfileId; } return(GetUnderlyingClient().ReadModifyWriteRowAsync(request, callSettings)); }
private static ReadModifyWriteRowRequest CreateReadModifyWriteRowRequest( TableName tableName, BigtableByteString rowKey, IEnumerable <ReadModifyWriteRule> rules) { GaxPreconditions.CheckNotNull(tableName, nameof(tableName)); GaxPreconditions.CheckArgument(rowKey.Length != 0, nameof(rowKey), "The row key must not empty"); var request = new ReadModifyWriteRowRequest { TableNameAsTableName = tableName, RowKey = rowKey.Value, Rules = { Utilities.ValidateCollection(rules, nameof(rules)) } }; GaxPreconditions.CheckArgument( request.Rules.Count != 0, nameof(rules), "There must be at least one entry."); return(request); }
/// <summary> /// Modifies a row atomically on the server. The method reads the latest /// existing timestamp and value from the specified columns and writes a new /// entry based on pre-defined read/modify/write rules. The new value for the /// timestamp is the greater of the existing timestamp or the current server /// time. The method returns the new contents of all modified cells. /// </summary> /// <param name="request"> /// The request object containing all of the parameters for the API call. /// If the <see cref="ReadModifyWriteRowRequest.AppProfileId"/> has not been specified, it will be initialized from the value stored in the client. /// </param> /// <param name="callSettings"> /// If not null, applies overrides to this RPC call. /// </param> /// <returns> /// The RPC response. /// </returns> public virtual ReadModifyWriteRowResponse ReadModifyWriteRow( ReadModifyWriteRowRequest request, gaxgrpc::CallSettings callSettings = null) { throw new sys::NotImplementedException(); }
/// <summary> /// Modifies a row atomically on the server. The method reads the latest /// existing timestamp and value from the specified columns and writes a new /// entry based on pre-defined read/modify/write rules. The new value for the /// timestamp is the greater of the existing timestamp or the current server /// time. The method returns the new contents of all modified cells. /// </summary> /// <param name="request"> /// The request object containing all of the parameters for the API call. /// If the <see cref="ReadModifyWriteRowRequest.AppProfileId"/> has not been specified, it will be initialized from the value stored in the client. /// </param> /// <param name="cancellationToken"> /// A <see cref="st::CancellationToken"/> to use for this RPC. /// </param> /// <returns> /// A Task containing the RPC response. /// </returns> public virtual stt::Task <ReadModifyWriteRowResponse> ReadModifyWriteRowAsync( ReadModifyWriteRowRequest request, st::CancellationToken cancellationToken) => ReadModifyWriteRowAsync( request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
partial void Modify_ReadModifyWriteRowRequest(ref ReadModifyWriteRowRequest request, ref CallSettings settings) => TryApplyAppProfileId(request, r => r.AppProfileId, (r, a) => r.AppProfileId = a);
partial void Modify_ReadModifyWriteRowRequest(ref ReadModifyWriteRowRequest request, ref CallSettings settings) => ApplyResourcePrefixHeader(ref settings, request.TableName);
/// <inheritdoc/> public override stt::Task <ReadModifyWriteRowResponse> ReadModifyWriteRowAsync(ReadModifyWriteRowRequest request, gaxgrpc::CallSettings callSettings = null) => _client.ReadModifyWriteRowAsync(request, callSettings);
/// <inheritdoc/> public override ReadModifyWriteRowResponse ReadModifyWriteRow(ReadModifyWriteRowRequest request, gaxgrpc::CallSettings callSettings = null) => _client.ReadModifyWriteRow(request, callSettings);
/// <summary> /// Modifies a row atomically on the server. The method reads the latest /// existing timestamp and value from the specified columns and writes a new /// entry based on pre-defined read/modify/write rules. The new value for the /// timestamp is the greater of the existing timestamp or the current server /// time. The method returns the new contents of all modified cells. /// </summary> /// <param name="request">The request object containing all of the parameters for the API call. If the <see cref="ReadModifyWriteRowRequest.AppProfileId"/> has not been specified, it will be initialized from the value stored in the client.</param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task <ReadModifyWriteRowResponse> ReadModifyWriteRowAsync(ReadModifyWriteRowRequest request, gaxgrpc::CallSettings callSettings = null) => throw new sys::NotImplementedException();
/// <summary> /// Modifies a row atomically on the server. The method reads the latest /// existing timestamp and value from the specified columns and writes a new /// entry based on pre-defined read/modify/write rules. The new value for the /// timestamp is the greater of the existing timestamp or the current server /// time. The method returns the new contents of all modified cells. /// </summary> /// <param name="request"> /// The request object containing all of the parameters for the API call. /// If the <see cref="ReadModifyWriteRowRequest.AppProfileId"/> has not been specified, it will be initialized from the value stored in the client. /// </param> /// <param name="callSettings"> /// If not null, applies overrides to this RPC call. /// </param> /// <returns> /// A Task containing the RPC response. /// </returns> public virtual Task <ReadModifyWriteRowResponse> ReadModifyWriteRowAsync( ReadModifyWriteRowRequest request, CallSettings callSettings = null) { throw new NotImplementedException(); }
partial void Modify_ReadModifyWriteRowRequest(ref ReadModifyWriteRowRequest request, ref CallSettings settings);