コード例 #1
0
 public void MergeFrom(BillingSettings other)
 {
     if (other == null)
     {
         return;
     }
     if (other.BillingTier != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingTier.Unspecified)
     {
         BillingTier = other.BillingTier;
     }
     if (other.BillingType != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.BillingType.Unspecified)
     {
         BillingType = other.BillingType;
     }
     if (other.startTime_ != null)
     {
         if (startTime_ == null)
         {
             StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         StartTime.MergeFrom(other.StartTime);
     }
     if (other.expireTime_ != null)
     {
         if (expireTime_ == null)
         {
             ExpireTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         ExpireTime.MergeFrom(other.ExpireTime);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #2
0
 public void MergeFrom(OperationProgress other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ProgressPercent != 0)
     {
         ProgressPercent = other.ProgressPercent;
     }
     if (other.startTime_ != null)
     {
         if (startTime_ == null)
         {
             StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         StartTime.MergeFrom(other.StartTime);
     }
     if (other.endTime_ != null)
     {
         if (endTime_ == null)
         {
             EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         EndTime.MergeFrom(other.EndTime);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #3
0
 public void MergeFrom(DaysOfWeekMaintenanceWindow other)
 {
     if (other == null)
     {
         return;
     }
     days_.Add(other.days_);
     if (other.startTime_ != null)
     {
         if (startTime_ == null)
         {
             StartTime = new global::Google.Type.TimeOfDay();
         }
         StartTime.MergeFrom(other.StartTime);
     }
     if (other.duration_ != null)
     {
         if (duration_ == null)
         {
             Duration = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         Duration.MergeFrom(other.Duration);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #4
0
        public void MergeFrom(MetricValue other)
        {
            if (other == null)
            {
                return;
            }
            labels_.Add(other.labels_);
            if (other.startTime_ != null)
            {
                if (startTime_ == null)
                {
                    StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                }
                StartTime.MergeFrom(other.StartTime);
            }
            if (other.endTime_ != null)
            {
                if (endTime_ == null)
                {
                    EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                }
                EndTime.MergeFrom(other.EndTime);
            }
            switch (other.ValueCase)
            {
            case ValueOneofCase.BoolValue:
                BoolValue = other.BoolValue;
                break;

            case ValueOneofCase.Int64Value:
                Int64Value = other.Int64Value;
                break;

            case ValueOneofCase.DoubleValue:
                DoubleValue = other.DoubleValue;
                break;

            case ValueOneofCase.StringValue:
                StringValue = other.StringValue;
                break;

            case ValueOneofCase.DistributionValue:
                if (DistributionValue == null)
                {
                    DistributionValue = new global::Google.Cloud.ServiceControl.V1.Distribution();
                }
                DistributionValue.MergeFrom(other.DistributionValue);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }
コード例 #5
0
 public void MergeFrom(MitelCallEnded other)
 {
     if (other == null)
     {
         return;
     }
     if (other.startTime_ != null)
     {
         if (startTime_ == null)
         {
             startTime_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         StartTime.MergeFrom(other.StartTime);
     }
     if (other.duration_ != null)
     {
         if (duration_ == null)
         {
             duration_ = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         Duration.MergeFrom(other.Duration);
     }
     if (other.callOrigin_ != null)
     {
         if (callOrigin_ == null)
         {
             callOrigin_ = new global::HOLMS.Types.PBXConnector.MitelPhoneCircuit();
         }
         CallOrigin.MergeFrom(other.CallOrigin);
     }
     if (other.LeadingDigitsDialed.Length != 0)
     {
         LeadingDigitsDialed = other.LeadingDigitsDialed;
     }
     if (other.MainDigitsDialed.Length != 0)
     {
         MainDigitsDialed = other.MainDigitsDialed;
     }
     if (other.callDestination_ != null)
     {
         if (callDestination_ == null)
         {
             callDestination_ = new global::HOLMS.Types.PBXConnector.MitelPhoneCircuit();
         }
         CallDestination.MergeFrom(other.CallDestination);
     }
 }
コード例 #6
0
 public void MergeFrom(Operation other)
 {
     if (other == null)
     {
         return;
     }
     if (other.OperationId.Length != 0)
     {
         OperationId = other.OperationId;
     }
     if (other.OperationName.Length != 0)
     {
         OperationName = other.OperationName;
     }
     if (other.ConsumerId.Length != 0)
     {
         ConsumerId = other.ConsumerId;
     }
     if (other.startTime_ != null)
     {
         if (startTime_ == null)
         {
             StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         StartTime.MergeFrom(other.StartTime);
     }
     if (other.endTime_ != null)
     {
         if (endTime_ == null)
         {
             EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         EndTime.MergeFrom(other.EndTime);
     }
     labels_.Add(other.labels_);
     metricValueSets_.Add(other.metricValueSets_);
     logEntries_.Add(other.logEntries_);
     if (other.Importance != global::Google.Cloud.ServiceControl.V1.Operation.Types.Importance.Low)
     {
         Importance = other.Importance;
     }
     extensions_.Add(other.extensions_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #7
0
 public void MergeFrom(FeatureStatsAnomaly other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Score != 0D)
     {
         Score = other.Score;
     }
     if (other.StatsUri.Length != 0)
     {
         StatsUri = other.StatsUri;
     }
     if (other.AnomalyUri.Length != 0)
     {
         AnomalyUri = other.AnomalyUri;
     }
     if (other.DistributionDeviation != 0D)
     {
         DistributionDeviation = other.DistributionDeviation;
     }
     if (other.AnomalyDetectionThreshold != 0D)
     {
         AnomalyDetectionThreshold = other.AnomalyDetectionThreshold;
     }
     if (other.startTime_ != null)
     {
         if (startTime_ == null)
         {
             StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         StartTime.MergeFrom(other.StartTime);
     }
     if (other.endTime_ != null)
     {
         if (endTime_ == null)
         {
             EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         EndTime.MergeFrom(other.EndTime);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #8
0
ファイル: Type.cs プロジェクト: hipo760/QuoteResearch-Proto
 public void MergeFrom(QuoteSchedule other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ScheduleID.Length != 0)
     {
         ScheduleID = other.ScheduleID;
     }
     if (other.startTime_ != null)
     {
         if (startTime_ == null)
         {
             StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         StartTime.MergeFrom(other.StartTime);
     }
     if (other.endTime_ != null)
     {
         if (endTime_ == null)
         {
             EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         EndTime.MergeFrom(other.EndTime);
     }
     if (other.quote_ != null)
     {
         if (quote_ == null)
         {
             Quote = new global::QuoteResearch.Service.Share.Type.Quote();
         }
         Quote.MergeFrom(other.Quote);
     }
     strategyIDList_.Add(other.strategyIDList_);
     if (other.TimeZone != 0)
     {
         TimeZone = other.TimeZone;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #9
0
 public void MergeFrom(TimeWindow other)
 {
     if (other == null)
     {
         return;
     }
     if (other.startTime_ != null)
     {
         if (startTime_ == null)
         {
             startTime_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         StartTime.MergeFrom(other.StartTime);
     }
     if (other.endTime_ != null)
     {
         if (endTime_ == null)
         {
             endTime_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         EndTime.MergeFrom(other.EndTime);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #10
0
 public void MergeFrom(HyperparameterTuningJob other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.DisplayName.Length != 0)
     {
         DisplayName = other.DisplayName;
     }
     if (other.studySpec_ != null)
     {
         if (studySpec_ == null)
         {
             StudySpec = new global::Google.Cloud.AIPlatform.V1.StudySpec();
         }
         StudySpec.MergeFrom(other.StudySpec);
     }
     if (other.MaxTrialCount != 0)
     {
         MaxTrialCount = other.MaxTrialCount;
     }
     if (other.ParallelTrialCount != 0)
     {
         ParallelTrialCount = other.ParallelTrialCount;
     }
     if (other.MaxFailedTrialCount != 0)
     {
         MaxFailedTrialCount = other.MaxFailedTrialCount;
     }
     if (other.trialJobSpec_ != null)
     {
         if (trialJobSpec_ == null)
         {
             TrialJobSpec = new global::Google.Cloud.AIPlatform.V1.CustomJobSpec();
         }
         TrialJobSpec.MergeFrom(other.TrialJobSpec);
     }
     trials_.Add(other.trials_);
     if (other.State != global::Google.Cloud.AIPlatform.V1.JobState.Unspecified)
     {
         State = other.State;
     }
     if (other.createTime_ != null)
     {
         if (createTime_ == null)
         {
             CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         CreateTime.MergeFrom(other.CreateTime);
     }
     if (other.startTime_ != null)
     {
         if (startTime_ == null)
         {
             StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         StartTime.MergeFrom(other.StartTime);
     }
     if (other.endTime_ != null)
     {
         if (endTime_ == null)
         {
             EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         EndTime.MergeFrom(other.EndTime);
     }
     if (other.updateTime_ != null)
     {
         if (updateTime_ == null)
         {
             UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         UpdateTime.MergeFrom(other.UpdateTime);
     }
     if (other.error_ != null)
     {
         if (error_ == null)
         {
             Error = new global::Google.Rpc.Status();
         }
         Error.MergeFrom(other.Error);
     }
     labels_.Add(other.labels_);
     if (other.encryptionSpec_ != null)
     {
         if (encryptionSpec_ == null)
         {
             EncryptionSpec = new global::Google.Cloud.AIPlatform.V1.EncryptionSpec();
         }
         EncryptionSpec.MergeFrom(other.EncryptionSpec);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #11
0
 public void MergeFrom(Instance other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.AppEngineRelease.Length != 0)
     {
         AppEngineRelease = other.AppEngineRelease;
     }
     if (other.Availability != global::Google.Cloud.AppEngine.V1.Instance.Types.Availability.Unspecified)
     {
         Availability = other.Availability;
     }
     if (other.VmName.Length != 0)
     {
         VmName = other.VmName;
     }
     if (other.VmZoneName.Length != 0)
     {
         VmZoneName = other.VmZoneName;
     }
     if (other.VmId.Length != 0)
     {
         VmId = other.VmId;
     }
     if (other.startTime_ != null)
     {
         if (startTime_ == null)
         {
             StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         StartTime.MergeFrom(other.StartTime);
     }
     if (other.Requests != 0)
     {
         Requests = other.Requests;
     }
     if (other.Errors != 0)
     {
         Errors = other.Errors;
     }
     if (other.Qps != 0F)
     {
         Qps = other.Qps;
     }
     if (other.AverageLatency != 0)
     {
         AverageLatency = other.AverageLatency;
     }
     if (other.MemoryUsage != 0L)
     {
         MemoryUsage = other.MemoryUsage;
     }
     if (other.VmStatus.Length != 0)
     {
         VmStatus = other.VmStatus;
     }
     if (other.VmDebugEnabled != false)
     {
         VmDebugEnabled = other.VmDebugEnabled;
     }
     if (other.VmIp.Length != 0)
     {
         VmIp = other.VmIp;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #12
0
 public void MergeFrom(ScanRun other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.ExecutionState != global::Google.Cloud.WebSecurityScanner.V1.ScanRun.Types.ExecutionState.Unspecified)
     {
         ExecutionState = other.ExecutionState;
     }
     if (other.ResultState != global::Google.Cloud.WebSecurityScanner.V1.ScanRun.Types.ResultState.Unspecified)
     {
         ResultState = other.ResultState;
     }
     if (other.startTime_ != null)
     {
         if (startTime_ == null)
         {
             StartTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         StartTime.MergeFrom(other.StartTime);
     }
     if (other.endTime_ != null)
     {
         if (endTime_ == null)
         {
             EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         EndTime.MergeFrom(other.EndTime);
     }
     if (other.UrlsCrawledCount != 0L)
     {
         UrlsCrawledCount = other.UrlsCrawledCount;
     }
     if (other.UrlsTestedCount != 0L)
     {
         UrlsTestedCount = other.UrlsTestedCount;
     }
     if (other.HasVulnerabilities != false)
     {
         HasVulnerabilities = other.HasVulnerabilities;
     }
     if (other.ProgressPercent != 0)
     {
         ProgressPercent = other.ProgressPercent;
     }
     if (other.errorTrace_ != null)
     {
         if (errorTrace_ == null)
         {
             ErrorTrace = new global::Google.Cloud.WebSecurityScanner.V1.ScanRunErrorTrace();
         }
         ErrorTrace.MergeFrom(other.ErrorTrace);
     }
     warningTraces_.Add(other.warningTraces_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #13
0
 public void MergeFrom(Template other)
 {
     if (other == null)
     {
         return;
     }
     if (other.TraceId.Length != 0)
     {
         TraceId = other.TraceId;
     }
     if (other.SpanId.Length != 0)
     {
         SpanId = other.SpanId;
     }
     if (other.ParentSpanId.Length != 0)
     {
         ParentSpanId = other.ParentSpanId;
     }
     if (other.SpanName.Length != 0)
     {
         SpanName = other.SpanName;
     }
     if (other.startTime_ != null)
     {
         if (startTime_ == null)
         {
             startTime_ = new global::Istio.Policy.V1Beta1.TimeStamp();
         }
         StartTime.MergeFrom(other.StartTime);
     }
     if (other.endTime_ != null)
     {
         if (endTime_ == null)
         {
             endTime_ = new global::Istio.Policy.V1Beta1.TimeStamp();
         }
         EndTime.MergeFrom(other.EndTime);
     }
     spanTags_.Add(other.spanTags_);
     if (other.HttpStatusCode != 0L)
     {
         HttpStatusCode = other.HttpStatusCode;
     }
     if (other.ClientSpan != false)
     {
         ClientSpan = other.ClientSpan;
     }
     if (other.RewriteClientSpanId != false)
     {
         RewriteClientSpanId = other.RewriteClientSpanId;
     }
     if (other.SourceName.Length != 0)
     {
         SourceName = other.SourceName;
     }
     if (other.sourceIp_ != null)
     {
         if (sourceIp_ == null)
         {
             sourceIp_ = new global::Istio.Policy.V1Beta1.IPAddress();
         }
         SourceIp.MergeFrom(other.SourceIp);
     }
     if (other.DestinationName.Length != 0)
     {
         DestinationName = other.DestinationName;
     }
     if (other.destinationIp_ != null)
     {
         if (destinationIp_ == null)
         {
             destinationIp_ = new global::Istio.Policy.V1Beta1.IPAddress();
         }
         DestinationIp.MergeFrom(other.DestinationIp);
     }
     if (other.RequestSize != 0L)
     {
         RequestSize = other.RequestSize;
     }
     if (other.RequestTotalSize != 0L)
     {
         RequestTotalSize = other.RequestTotalSize;
     }
     if (other.ResponseSize != 0L)
     {
         ResponseSize = other.ResponseSize;
     }
     if (other.ResponseTotalSize != 0L)
     {
         ResponseTotalSize = other.ResponseTotalSize;
     }
     if (other.ApiProtocol.Length != 0)
     {
         ApiProtocol = other.ApiProtocol;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #14
0
 public void MergeFrom(Certificate other)
 {
     if (other == null)
     {
         return;
     }
     if (other.certificateUuid_ != null)
     {
         if (certificateUuid_ == null)
         {
             CertificateUuid = new global::VRWorlds.Schemas.Browser.Standards.UUID();
         }
         CertificateUuid.MergeFrom(other.CertificateUuid);
     }
     if (other.rootGuid_ != null)
     {
         if (rootGuid_ == null)
         {
             RootGuid = new global::VRWorlds.Schemas.Browser.Standards.UUID();
         }
         RootGuid.MergeFrom(other.RootGuid);
     }
     if (other.CertType != 0)
     {
         CertType = other.CertType;
     }
     if (other.IsSigner != false)
     {
         IsSigner = other.IsSigner;
     }
     if (other.DistinguisedName.Length != 0)
     {
         DistinguisedName = other.DistinguisedName;
     }
     if (other.signerUuid_ != null)
     {
         if (signerUuid_ == null)
         {
             SignerUuid = new global::VRWorlds.Schemas.Browser.Standards.UUID();
         }
         SignerUuid.MergeFrom(other.SignerUuid);
     }
     if (other.Signature.Length != 0)
     {
         Signature = other.Signature;
     }
     if (other.startTime_ != null)
     {
         if (startTime_ == null)
         {
             StartTime = new global::VRWorlds.Schemas.Browser.Standards.DateTimeOffset();
         }
         StartTime.MergeFrom(other.StartTime);
     }
     if (other.endTime_ != null)
     {
         if (endTime_ == null)
         {
             EndTime = new global::VRWorlds.Schemas.Browser.Standards.DateTimeOffset();
         }
         EndTime.MergeFrom(other.EndTime);
     }
     if (other.CertificateBody.Length != 0)
     {
         CertificateBody = other.CertificateBody;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }