示例#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);
 }
        public void MergeFrom(ReadSession other)
        {
            if (other == null)
            {
                return;
            }
            if (other.Name.Length != 0)
            {
                Name = other.Name;
            }
            if (other.expireTime_ != null)
            {
                if (expireTime_ == null)
                {
                    ExpireTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                }
                ExpireTime.MergeFrom(other.ExpireTime);
            }
            if (other.DataFormat != 0)
            {
                DataFormat = other.DataFormat;
            }
            if (other.Table.Length != 0)
            {
                Table = other.Table;
            }
            if (other.tableModifiers_ != null)
            {
                if (tableModifiers_ == null)
                {
                    TableModifiers = new global::Google.Cloud.BigQuery.Storage.V1.ReadSession.Types.TableModifiers();
                }
                TableModifiers.MergeFrom(other.TableModifiers);
            }
            if (other.readOptions_ != null)
            {
                if (readOptions_ == null)
                {
                    ReadOptions = new global::Google.Cloud.BigQuery.Storage.V1.ReadSession.Types.TableReadOptions();
                }
                ReadOptions.MergeFrom(other.ReadOptions);
            }
            streams_.Add(other.streams_);
            switch (other.SchemaCase)
            {
            case SchemaOneofCase.AvroSchema:
                if (AvroSchema == null)
                {
                    AvroSchema = new global::Google.Cloud.BigQuery.Storage.V1.AvroSchema();
                }
                AvroSchema.MergeFrom(other.AvroSchema);
                break;

            case SchemaOneofCase.ArrowSchema:
                if (ArrowSchema == null)
                {
                    ArrowSchema = new global::Google.Cloud.BigQuery.Storage.V1.ArrowSchema();
                }
                ArrowSchema.MergeFrom(other.ArrowSchema);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }