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: {
                    global::Google.Ads.GoogleAds.V5.Resources.Asset subBuilder = new global::Google.Ads.GoogleAds.V5.Resources.Asset();
                    if (operationCase_ == OperationOneofCase.Create)
                    {
                        subBuilder.MergeFrom(Create);
                    }
                    input.ReadMessage(subBuilder);
                    Create = subBuilder;
                    break;
                }
                }
            }
        }
Exemplo n.º 2
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: {
                    global::Google.Ads.GoogleAds.V5.Resources.Asset subBuilder = new global::Google.Ads.GoogleAds.V5.Resources.Asset();
                    if (operationCase_ == OperationOneofCase.Create)
                    {
                        subBuilder.MergeFrom(Create);
                    }
                    input.ReadMessage(subBuilder);
                    Create = subBuilder;
                    break;
                }
                }
            }
    #endif
        }
Exemplo n.º 3
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: {
                    ResourceName = input.ReadString();
                    break;
                }

                case 18: {
                    if (asset_ == null)
                    {
                        Asset = new global::Google.Ads.GoogleAds.V5.Resources.Asset();
                    }
                    input.ReadMessage(Asset);
                    break;
                }
                }
            }
        }
Exemplo n.º 4
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: {
                    ResourceName = input.ReadString();
                    break;
                }

                case 18: {
                    if (asset_ == null)
                    {
                        Asset = new global::Google.Ads.GoogleAds.V5.Resources.Asset();
                    }
                    input.ReadMessage(Asset);
                    break;
                }
                }
            }
    #endif
        }
Exemplo n.º 5
0
        public void MergeFrom(AssetOperation other)
        {
            if (other == null)
            {
                return;
            }
            switch (other.OperationCase)
            {
            case OperationOneofCase.Create:
                if (Create == null)
                {
                    Create = new global::Google.Ads.GoogleAds.V5.Resources.Asset();
                }
                Create.MergeFrom(other.Create);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }
Exemplo n.º 6
0
 public void MergeFrom(MutateAssetResult other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ResourceName.Length != 0)
     {
         ResourceName = other.ResourceName;
     }
     if (other.asset_ != null)
     {
         if (asset_ == null)
         {
             Asset = new global::Google.Ads.GoogleAds.V5.Resources.Asset();
         }
         Asset.MergeFrom(other.Asset);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }