/// <summary> /// Mutates a row atomically. Cells already present in the row are left /// unchanged unless explicitly changed by `mutation`. /// </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 MutateRowResponse MutateRow( MutateRowRequest request, CallSettings callSettings = null) { Modify_MutateRowRequest(ref request, ref callSettings); return(_callMutateRow.Sync(request, callSettings)); }
partial void Modify_MutateRowRequest(ref MutateRowRequest request, ref CallSettings settings) { GaxPreconditions.CheckState( request.IsIdempotent(), "Non-idempotent MutateRow requests are not allowed. Specify a version with all SetCell mutations."); TryApplyAppProfileId(request, r => r.AppProfileId, (r, a) => r.AppProfileId = a); }
partial void Modify_MutateRowRequest(ref MutateRowRequest request, ref CallSettings settings) { if (request.IsIdempotent()) { settings = _idempotentMutateRowSettings.MergedWith(settings); } ApplyResourcePrefixHeader(ref settings, request.TableName); }
/// <inheritdoc/> public override MutateRowResponse MutateRow( MutateRowRequest request, gaxgrpc::CallSettings callSettings = null) { if (_appProfileId != null && request.AppProfileId.Length == 0) { request.AppProfileId = _appProfileId; } return(_client.MutateRow(request, callSettings)); }
/// <inheritdoc/> public override Task <MutateRowResponse> MutateRowAsync( MutateRowRequest request, CallSettings callSettings = null) { if (request.AppProfileId == null) { request.AppProfileId = _appProfileId; } return(GetUnderlyingClient().MutateRowAsync(request, callSettings)); }
/// <inheritdoc/> public override MutateRowResponse MutateRow( MutateRowRequest request, gaxgrpc::CallSettings callSettings = null) { if (request.AppProfileId == null) { request.AppProfileId = _appProfileId; } return(GetUnderlyingClient().MutateRow(request, callSettings)); }
private static MutateRowRequest CreateMutateRowRequest( TableName tableName, BigtableByteString rowKey, IEnumerable <Mutation> mutations) { GaxPreconditions.CheckNotNull(tableName, nameof(tableName)); GaxPreconditions.CheckArgument(rowKey.Length != 0, nameof(rowKey), "The row key must not empty"); var request = new MutateRowRequest { TableNameAsTableName = tableName, RowKey = rowKey.Value, Mutations = { Utilities.ValidateCollection(mutations, nameof(mutations)) } }; GaxPreconditions.CheckArgument( request.Mutations.Count != 0, nameof(mutations), "There must be at least one entry."); return(request); }
/// <summary> /// Mutates a row atomically. Cells already present in the row are left /// unchanged unless explicitly changed by `mutation`. /// </summary> /// <param name="request"> /// The request object containing all of the parameters for the API call. /// If the <see cref="MutateRowRequest.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 MutateRowResponse MutateRow( MutateRowRequest request, gaxgrpc::CallSettings callSettings = null) { throw new sys::NotImplementedException(); }
/// <summary> /// Mutates a row atomically. Cells already present in the row are left /// unchanged unless explicitly changed by `mutation`. /// </summary> /// <param name="request"> /// The request object containing all of the parameters for the API call. /// If the <see cref="MutateRowRequest.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 <MutateRowResponse> MutateRowAsync( MutateRowRequest request, st::CancellationToken cancellationToken) => MutateRowAsync( request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
internal static bool IsIdempotent(this MutateRowRequest request) => request.Mutations.All(IsIdempotent);
partial void Modify_MutateRowRequest(ref MutateRowRequest request, ref CallSettings settings) { GaxPreconditions.CheckState(request.IsIdempotent(), "Non-idempotent MutateRow requests are not allowed. Specify a version with all SetCell mutations."); ApplyResourcePrefixHeader(ref settings, request.TableName); }
/// <inheritdoc/> public override stt::Task <MutateRowResponse> MutateRowAsync(MutateRowRequest request, gaxgrpc::CallSettings callSettings = null) => _client.MutateRowAsync(request, callSettings);
/// <inheritdoc/> public override MutateRowResponse MutateRow(MutateRowRequest request, gaxgrpc::CallSettings callSettings = null) => _client.MutateRow(request, callSettings);
/// <summary> /// Mutates a row atomically. Cells already present in the row are left /// unchanged unless explicitly changed by `mutation`. /// </summary> /// <param name="request"> /// The request object containing all of the parameters for the API call. /// If the <see cref="MutateRowRequest.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 <MutateRowResponse> MutateRowAsync( MutateRowRequest request, CallSettings callSettings = null) { throw new NotImplementedException(); }
partial void Modify_MutateRowRequest(ref MutateRowRequest request, ref CallSettings settings) => ApplyResourcePrefixHeader(ref settings, request.TableName);
partial void Modify_MutateRowRequest(ref MutateRowRequest request, ref CallSettings settings) => GaxPreconditions.CheckState( request.IsIdempotent(), "Non-idempotent MutateRow requests are not allowed. Specify a version with all SetCell mutations.");
/// <summary> /// Mutates a row atomically. Cells already present in the row are left /// unchanged unless explicitly changed by `mutation`. /// </summary> /// <param name="request"> /// The request object containing all of the parameters for the API call. /// If the <see cref="MutateRowRequest.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 <MutateRowResponse> MutateRowAsync( MutateRowRequest request, gaxgrpc::CallSettings callSettings = null) { throw new sys::NotImplementedException(); }
// Partial modifier methods contain '_' to ensure no name conflicts with RPC methods. partial void Modify_MutateRowRequest(ref MutateRowRequest request, ref CallSettings settings);