public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Money.Accounting.TaxFeeIndicator(); } input.ReadMessage(entityId_); break; } case 18: { Description = input.ReadString(); break; } case 26: { if (taxRate_ == null) { taxRate_ = new global::HOLMS.Types.Primitive.FixedPointRatio(); } input.ReadMessage(taxRate_); break; } case 32: { category_ = (global::HOLMS.Types.Money.Accounting.TaxFeeCategory)input.ReadEnum(); break; } case 42: { if (liabilityAccountId_ == null) { liabilityAccountId_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator(); } input.ReadMessage(liabilityAccountId_); break; } } } }
public void MergeFrom(TaxFee other) { if (other == null) { return; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Money.Accounting.TaxFeeIndicator(); } EntityId.MergeFrom(other.EntityId); } if (other.Description.Length != 0) { Description = other.Description; } if (other.taxRate_ != null) { if (taxRate_ == null) { taxRate_ = new global::HOLMS.Types.Primitive.FixedPointRatio(); } TaxRate.MergeFrom(other.TaxRate); } if (other.Category != 0) { Category = other.Category; } if (other.liabilityAccountId_ != null) { if (liabilityAccountId_ == null) { liabilityAccountId_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator(); } LiabilityAccountId.MergeFrom(other.LiabilityAccountId); } }
public virtual global::System.Threading.Tasks.Task <global::HOLMS.Types.Money.Accounting.TaxFee> GetById(global::HOLMS.Types.Money.Accounting.TaxFeeIndicator request, ServerCallContext context) { throw new RpcException(new Status(StatusCode.Unimplemented, "")); }
public virtual AsyncUnaryCall <global::HOLMS.Types.Money.Accounting.TaxFee> GetByIdAsync(global::HOLMS.Types.Money.Accounting.TaxFeeIndicator request, CallOptions options) { return(CallInvoker.AsyncUnaryCall(__Method_GetById, null, options, request)); }
public virtual AsyncUnaryCall <global::HOLMS.Types.Money.Accounting.TaxFee> GetByIdAsync(global::HOLMS.Types.Money.Accounting.TaxFeeIndicator request, Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken)) { return(GetByIdAsync(request, new CallOptions(headers, deadline, cancellationToken))); }