Exemplo n.º 1
0
        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
                    break;

                case 10: {
                    if (commands_ == null)
                    {
                        Commands = new global::Com.Daml.Ledger.Api.V1.Commands();
                    }
                    input.ReadMessage(Commands);
                    break;
                }

                case 8002: {
                    if (traceContext_ == null)
                    {
                        TraceContext = new global::Com.Daml.Ledger.Api.V1.TraceContext();
                    }
                    input.ReadMessage(TraceContext);
                    break;
                }
                }
            }
        }
 public void MergeFrom(GetActiveContractsResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Offset.Length != 0)
     {
         Offset = other.Offset;
     }
     if (other.WorkflowId.Length != 0)
     {
         WorkflowId = other.WorkflowId;
     }
     activeContracts_.Add(other.activeContracts_);
     if (other.traceContext_ != null)
     {
         if (traceContext_ == null)
         {
             TraceContext = new global::Com.Daml.Ledger.Api.V1.TraceContext();
         }
         TraceContext.MergeFrom(other.TraceContext);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Exemplo n.º 3
0
        public void MergeFrom(pb::CodedInputStream input)
        {
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
            input.ReadRawMessage(this);
    #else
            uint tag;
            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    if (commands_ == null)
                    {
                        Commands = new global::Com.Daml.Ledger.Api.V1.Commands();
                    }
                    input.ReadMessage(Commands);
                    break;
                }

                case 8002: {
                    if (traceContext_ == null)
                    {
                        TraceContext = new global::Com.Daml.Ledger.Api.V1.TraceContext();
                    }
                    input.ReadMessage(TraceContext);
                    break;
                }
                }
            }
    #endif
        }
 public void MergeFrom(GetActiveContractsRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.LedgerId.Length != 0)
     {
         LedgerId = other.LedgerId;
     }
     if (other.filter_ != null)
     {
         if (filter_ == null)
         {
             Filter = new global::Com.Daml.Ledger.Api.V1.TransactionFilter();
         }
         Filter.MergeFrom(other.Filter);
     }
     if (other.Verbose != false)
     {
         Verbose = other.Verbose;
     }
     if (other.traceContext_ != null)
     {
         if (traceContext_ == null)
         {
             TraceContext = new global::Com.Daml.Ledger.Api.V1.TraceContext();
         }
         TraceContext.MergeFrom(other.TraceContext);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Exemplo n.º 5
0
 public void MergeFrom(Completion other)
 {
     if (other == null)
     {
         return;
     }
     if (other.CommandId.Length != 0)
     {
         CommandId = other.CommandId;
     }
     if (other.status_ != null)
     {
         if (status_ == null)
         {
             Status = new global::Google.Rpc.Status();
         }
         Status.MergeFrom(other.Status);
     }
     if (other.TransactionId.Length != 0)
     {
         TransactionId = other.TransactionId;
     }
     if (other.traceContext_ != null)
     {
         if (traceContext_ == null)
         {
             TraceContext = new global::Com.Daml.Ledger.Api.V1.TraceContext();
         }
         TraceContext.MergeFrom(other.TraceContext);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Exemplo n.º 6
0
 public void MergeFrom(GetLedgerIdentityRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.traceContext_ != null)
     {
         if (traceContext_ == null)
         {
             TraceContext = new global::Com.Daml.Ledger.Api.V1.TraceContext();
         }
         TraceContext.MergeFrom(other.TraceContext);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
            input.ReadRawMessage(this);
    #else
            uint tag;
            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    LedgerId = input.ReadString();
                    break;
                }

                case 18: {
                    if (filter_ == null)
                    {
                        Filter = new global::Com.Daml.Ledger.Api.V1.TransactionFilter();
                    }
                    input.ReadMessage(Filter);
                    break;
                }

                case 24: {
                    Verbose = input.ReadBool();
                    break;
                }

                case 8002: {
                    if (traceContext_ == null)
                    {
                        TraceContext = new global::Com.Daml.Ledger.Api.V1.TraceContext();
                    }
                    input.ReadMessage(TraceContext);
                    break;
                }
                }
            }
    #endif
        }
        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
                    break;

                case 10: {
                    LedgerId = input.ReadString();
                    break;
                }

                case 18: {
                    if (filter_ == null)
                    {
                        Filter = new global::Com.Daml.Ledger.Api.V1.TransactionFilter();
                    }
                    input.ReadMessage(Filter);
                    break;
                }

                case 24: {
                    Verbose = input.ReadBool();
                    break;
                }

                case 8002: {
                    if (traceContext_ == null)
                    {
                        TraceContext = new global::Com.Daml.Ledger.Api.V1.TraceContext();
                    }
                    input.ReadMessage(TraceContext);
                    break;
                }
                }
            }
        }
Exemplo n.º 9
0
        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
                    break;

                case 10: {
                    CommandId = input.ReadString();
                    break;
                }

                case 18: {
                    if (status_ == null)
                    {
                        Status = new global::Google.Rpc.Status();
                    }
                    input.ReadMessage(Status);
                    break;
                }

                case 26: {
                    TransactionId = input.ReadString();
                    break;
                }

                case 8002: {
                    if (traceContext_ == null)
                    {
                        TraceContext = new global::Com.Daml.Ledger.Api.V1.TraceContext();
                    }
                    input.ReadMessage(TraceContext);
                    break;
                }
                }
            }
        }
        public void MergeFrom(pb::CodedInputStream input)
        {
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
            input.ReadRawMessage(this);
    #else
            uint tag;
            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    Offset = input.ReadString();
                    break;
                }

                case 18: {
                    WorkflowId = input.ReadString();
                    break;
                }

                case 26: {
                    activeContracts_.AddEntriesFrom(input, _repeated_activeContracts_codec);
                    break;
                }

                case 8002: {
                    if (traceContext_ == null)
                    {
                        TraceContext = new global::Com.Daml.Ledger.Api.V1.TraceContext();
                    }
                    input.ReadMessage(TraceContext);
                    break;
                }
                }
            }
    #endif
        }
        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
                    break;

                case 10: {
                    Offset = input.ReadString();
                    break;
                }

                case 18: {
                    WorkflowId = input.ReadString();
                    break;
                }

                case 26: {
                    activeContracts_.AddEntriesFrom(ref input, _repeated_activeContracts_codec);
                    break;
                }

                case 8002: {
                    if (traceContext_ == null)
                    {
                        TraceContext = new global::Com.Daml.Ledger.Api.V1.TraceContext();
                    }
                    input.ReadMessage(TraceContext);
                    break;
                }
                }
            }
        }
Exemplo n.º 12
0
 public void MergeFrom(SubmitAndWaitRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.commands_ != null)
     {
         if (commands_ == null)
         {
             Commands = new global::Com.Daml.Ledger.Api.V1.Commands();
         }
         Commands.MergeFrom(other.Commands);
     }
     if (other.traceContext_ != null)
     {
         if (traceContext_ == null)
         {
             TraceContext = new global::Com.Daml.Ledger.Api.V1.TraceContext();
         }
         TraceContext.MergeFrom(other.TraceContext);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }