コード例 #1
0
 public void MergeFrom(AuthorizedCertificate other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.DisplayName.Length != 0)
     {
         DisplayName = other.DisplayName;
     }
     domainNames_.Add(other.domainNames_);
     if (other.expireTime_ != null)
     {
         if (expireTime_ == null)
         {
             ExpireTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         ExpireTime.MergeFrom(other.ExpireTime);
     }
     if (other.certificateRawData_ != null)
     {
         if (certificateRawData_ == null)
         {
             CertificateRawData = new global::Google.Cloud.AppEngine.V1.CertificateRawData();
         }
         CertificateRawData.MergeFrom(other.CertificateRawData);
     }
     if (other.managedCertificate_ != null)
     {
         if (managedCertificate_ == null)
         {
             ManagedCertificate = new global::Google.Cloud.AppEngine.V1.ManagedCertificate();
         }
         ManagedCertificate.MergeFrom(other.ManagedCertificate);
     }
     visibleDomainMappings_.Add(other.visibleDomainMappings_);
     if (other.DomainMappingsCount != 0)
     {
         DomainMappingsCount = other.DomainMappingsCount;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #2
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: {
                    Name = input.ReadString();
                    break;
                }

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

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

                case 34: {
                    domainNames_.AddEntriesFrom(ref input, _repeated_domainNames_codec);
                    break;
                }

                case 42: {
                    if (expireTime_ == null)
                    {
                        ExpireTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(ExpireTime);
                    break;
                }

                case 50: {
                    if (certificateRawData_ == null)
                    {
                        CertificateRawData = new global::Google.Cloud.AppEngine.V1.CertificateRawData();
                    }
                    input.ReadMessage(CertificateRawData);
                    break;
                }

                case 58: {
                    if (managedCertificate_ == null)
                    {
                        ManagedCertificate = new global::Google.Cloud.AppEngine.V1.ManagedCertificate();
                    }
                    input.ReadMessage(ManagedCertificate);
                    break;
                }

                case 66: {
                    visibleDomainMappings_.AddEntriesFrom(ref input, _repeated_visibleDomainMappings_codec);
                    break;
                }

                case 72: {
                    DomainMappingsCount = input.ReadInt32();
                    break;
                }
                }
            }
        }
コード例 #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: {
                    Name = input.ReadString();
                    break;
                }

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

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

                case 34: {
                    domainNames_.AddEntriesFrom(input, _repeated_domainNames_codec);
                    break;
                }

                case 42: {
                    if (expireTime_ == null)
                    {
                        ExpireTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(ExpireTime);
                    break;
                }

                case 50: {
                    if (certificateRawData_ == null)
                    {
                        CertificateRawData = new global::Google.Cloud.AppEngine.V1.CertificateRawData();
                    }
                    input.ReadMessage(CertificateRawData);
                    break;
                }

                case 58: {
                    if (managedCertificate_ == null)
                    {
                        ManagedCertificate = new global::Google.Cloud.AppEngine.V1.ManagedCertificate();
                    }
                    input.ReadMessage(ManagedCertificate);
                    break;
                }

                case 66: {
                    visibleDomainMappings_.AddEntriesFrom(input, _repeated_visibleDomainMappings_codec);
                    break;
                }

                case 72: {
                    DomainMappingsCount = input.ReadInt32();
                    break;
                }
                }
            }
    #endif
        }