コード例 #1
0
 public void MergeFrom(LifecycleRule other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.expirePeriod_ != null)
     {
         if (expirePeriod_ == null)
         {
             ExpirePeriod = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         ExpirePeriod.MergeFrom(other.ExpirePeriod);
     }
     if (other.TagRegexp.Length != 0)
     {
         TagRegexp = other.TagRegexp;
     }
     if (other.Untagged != false)
     {
         Untagged = other.Untagged;
     }
     if (other.RetainedTop != 0L)
     {
         RetainedTop = other.RetainedTop;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #2
0
        public void MergeFrom(FaultDelay other)
        {
            if (other == null)
            {
                return;
            }
            if (other.Type != 0)
            {
                Type = other.Type;
            }
            if (other.Percent != 0)
            {
                Percent = other.Percent;
            }
            switch (other.FaultDelaySecifierCase)
            {
            case FaultDelaySecifierOneofCase.FixedDelay:
                if (FixedDelay == null)
                {
                    FixedDelay = new global::Google.Protobuf.WellKnownTypes.Duration();
                }
                FixedDelay.MergeFrom(other.FixedDelay);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }
コード例 #3
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    clusters_.AddEntriesFrom(input, _repeated_clusters_codec);
                    break;
                }

                case 18: {
                    if (loadReportingInterval_ == null)
                    {
                        LoadReportingInterval = new global::Google.Protobuf.WellKnownTypes.Duration();
                    }
                    input.ReadMessage(LoadReportingInterval);
                    break;
                }

                case 24: {
                    ReportEndpointGranularity = input.ReadBool();
                    break;
                }
                }
            }
        }
コード例 #4
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (httpUri_ == null)
                    {
                        httpUri_ = new global::Envoy.Api.V2.Core.HttpUri();
                    }
                    input.ReadMessage(httpUri_);
                    break;
                }

                case 18: {
                    if (cacheDuration_ == null)
                    {
                        cacheDuration_ = new global::Google.Protobuf.WellKnownTypes.Duration();
                    }
                    input.ReadMessage(cacheDuration_);
                    break;
                }
                }
            }
        }
コード例 #5
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (refreshInterval_ == null)
                    {
                        RefreshInterval = new global::Google.Protobuf.WellKnownTypes.Duration();
                    }
                    input.ReadMessage(RefreshInterval);
                    break;
                }

                case 18: {
                    resourceMonitors_.AddEntriesFrom(input, _repeated_resourceMonitors_codec);
                    break;
                }

                case 26: {
                    actions_.AddEntriesFrom(input, _repeated_actions_codec);
                    break;
                }
                }
            }
        }
コード例 #6
0
        public void MergeFrom(HttpUri other)
        {
            if (other == null)
            {
                return;
            }
            if (other.Uri.Length != 0)
            {
                Uri = other.Uri;
            }
            if (other.timeout_ != null)
            {
                if (timeout_ == null)
                {
                    Timeout = new global::Google.Protobuf.WellKnownTypes.Duration();
                }
                Timeout.MergeFrom(other.Timeout);
            }
            switch (other.HttpUpstreamTypeCase)
            {
            case HttpUpstreamTypeOneofCase.Cluster:
                Cluster = other.Cluster;
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }
コード例 #7
0
 public void MergeFrom(HousekeepingTime other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Operations.Housekeeping.HousekeepingTimeIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.timePastLocalMidnight_ != null)
     {
         if (timePastLocalMidnight_ == null)
         {
             timePastLocalMidnight_ = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         TimePastLocalMidnight.MergeFrom(other.TimePastLocalMidnight);
     }
 }
コード例 #8
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);
 }
コード例 #9
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 8: {
                    State = (global::Google.Cloud.SecurityCenter.V1.RunAssetDiscoveryResponse.Types.State)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (duration_ == null)
                    {
                        Duration = new global::Google.Protobuf.WellKnownTypes.Duration();
                    }
                    input.ReadMessage(Duration);
                    break;
                }
                }
            }
    #endif
        }
コード例 #10
0
 public void MergeFrom(pb::CodedInputStream input) {
   uint tag;
   while ((tag = input.ReadTag()) != 0) {
     switch(tag) {
       default:
         _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
         break;
       case 18: {
         dropOverloads_.AddEntriesFrom(input, _repeated_dropOverloads_codec);
         break;
       }
       case 26: {
         uint? value = _single_overprovisioningFactor_codec.Read(input);
         if (overprovisioningFactor_ == null || value != 0) {
           OverprovisioningFactor = value;
         }
         break;
       }
       case 34: {
         if (endpointStaleAfter_ == null) {
           EndpointStaleAfter = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         input.ReadMessage(EndpointStaleAfter);
         break;
       }
       case 40: {
         DisableOverprovisioning = input.ReadBool();
         break;
       }
     }
   }
 }
コード例 #11
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (startTime_ == null)
                    {
                        StartTime = new global::Google.Type.TimeOfDay();
                    }
                    input.ReadMessage(StartTime);
                    break;
                }

                case 18: {
                    if (duration_ == null)
                    {
                        Duration = new global::Google.Protobuf.WellKnownTypes.Duration();
                    }
                    input.ReadMessage(Duration);
                    break;
                }
                }
            }
        }
コード例 #12
0
 public void MergeFrom(TimeModel other)
 {
     if (other == null)
     {
         return;
     }
     if (other.minTransactionLatency_ != null)
     {
         if (minTransactionLatency_ == null)
         {
             MinTransactionLatency = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         MinTransactionLatency.MergeFrom(other.MinTransactionLatency);
     }
     if (other.maxClockSkew_ != null)
     {
         if (maxClockSkew_ == null)
         {
             MaxClockSkew = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         MaxClockSkew.MergeFrom(other.MaxClockSkew);
     }
     if (other.maxTtl_ != null)
     {
         if (maxTtl_ == null)
         {
             MaxTtl = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         MaxTtl.MergeFrom(other.MaxTtl);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #13
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 26: {
                    if (maxDeduplicationTime_ == null)
                    {
                        MaxDeduplicationTime = new global::Google.Protobuf.WellKnownTypes.Duration();
                    }
                    input.ReadMessage(MaxDeduplicationTime);
                    break;
                }
                }
            }
    #endif
        }
コード例 #14
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10:
                {
                    if (duration_ == null)
                    {
                        Duration = new global::Google.Protobuf.WellKnownTypes.Duration();
                    }
                    input.ReadMessage(Duration);
                    break;
                }

                case 18:
                {
                    if (instant_ == null)
                    {
                        Instant = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(Instant);
                    break;
                }

                case 26:
                {
                    if (localDate_ == null)
                    {
                        LocalDate = new global::Google.Type.Date();
                    }
                    input.ReadMessage(LocalDate);
                    break;
                }

                case 34:
                {
                    if (localTime_ == null)
                    {
                        LocalTime = new global::Google.Type.TimeOfDay();
                    }
                    input.ReadMessage(LocalTime);
                    break;
                }

                case 40:
                {
                    IsoDayOfWeek = (global::Google.Type.DayOfWeek)input.ReadEnum();
                    break;
                }
                }
            }
        }
コード例 #15
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: {
                    Thumbnail = input.ReadBytes();
                    break;
                }

                case 18: {
                    if (timeOffset_ == null)
                    {
                        TimeOffset = new global::Google.Protobuf.WellKnownTypes.Duration();
                    }
                    input.ReadMessage(TimeOffset);
                    break;
                }
                }
            }
    #endif
        }
コード例 #16
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 8: {
                    State = (global::Google.Cloud.SecurityCenter.V1.RunAssetDiscoveryResponse.Types.State)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (duration_ == null)
                    {
                        Duration = new global::Google.Protobuf.WellKnownTypes.Duration();
                    }
                    input.ReadMessage(Duration);
                    break;
                }
                }
            }
        }
コード例 #17
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: {
                    Thumbnail = input.ReadBytes();
                    break;
                }

                case 18: {
                    if (timeOffset_ == null)
                    {
                        TimeOffset = new global::Google.Protobuf.WellKnownTypes.Duration();
                    }
                    input.ReadMessage(TimeOffset);
                    break;
                }
                }
            }
        }
コード例 #18
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 8: {
                Id = input.ReadInt32();
                break;
            }

            case 18: {
                if (time_ == null)
                {
                    Time = new global::Google.Protobuf.WellKnownTypes.Duration();
                }
                input.ReadMessage(Time);
                break;
            }

            case 26: {
                Name = input.ReadString();
                break;
            }
            }
        }
    }
コード例 #19
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

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

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

                case 26: {
                    if (timeout_ == null)
                    {
                        Timeout = new global::Google.Protobuf.WellKnownTypes.Duration();
                    }
                    input.ReadMessage(Timeout);
                    break;
                }
                }
            }
        }
コード例 #20
0
 public void MergeFrom(RateLimit other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Domain.Length != 0)
     {
         Domain = other.Domain;
     }
     if (other.Stage != 0)
     {
         Stage = other.Stage;
     }
     if (other.RequestType.Length != 0)
     {
         RequestType = other.RequestType;
     }
     if (other.timeout_ != null)
     {
         if (timeout_ == null)
         {
             timeout_ = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         Timeout.MergeFrom(other.Timeout);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #21
0
 public void MergeFrom(RateLimit other)
 {
     if (other == null)
     {
         return;
     }
     if (other.StatPrefix.Length != 0)
     {
         StatPrefix = other.StatPrefix;
     }
     if (other.Domain.Length != 0)
     {
         Domain = other.Domain;
     }
     descriptors_.Add(other.descriptors_);
     if (other.timeout_ != null)
     {
         if (timeout_ == null)
         {
             timeout_ = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         Timeout.MergeFrom(other.Timeout);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #22
0
 public void MergeFrom(ConcurrencyLimitCalculationParams other)
 {
     if (other == null)
     {
         return;
     }
     if (other.maxGradient_ != null)
     {
         if (maxGradient_ == null || other.MaxGradient != 0D)
         {
             MaxGradient = other.MaxGradient;
         }
     }
     if (other.maxConcurrencyLimit_ != null)
     {
         if (maxConcurrencyLimit_ == null || other.MaxConcurrencyLimit != 0)
         {
             MaxConcurrencyLimit = other.MaxConcurrencyLimit;
         }
     }
     if (other.concurrencyUpdateInterval_ != null)
     {
         if (concurrencyUpdateInterval_ == null)
         {
             ConcurrencyUpdateInterval = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         ConcurrencyUpdateInterval.MergeFrom(other.ConcurrencyUpdateInterval);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #23
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    State = (global::Google.Cloud.SecurityCenter.V1P1Beta1.RunAssetDiscoveryResponse.Types.State)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (duration_ == null)
                    {
                        Duration = new global::Google.Protobuf.WellKnownTypes.Duration();
                    }
                    input.ReadMessage(Duration);
                    break;
                }
                }
            }
        }
コード例 #24
0
                public void MergeFrom(pb::CodedInputStream input)
                {
                    uint tag;

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

                        case 10: {
                            if (interval_ == null)
                            {
                                Interval = new global::Google.Protobuf.WellKnownTypes.Duration();
                            }
                            input.ReadMessage(Interval);
                            break;
                        }

                        case 18: {
                            uint?value = _single_requestCount_codec.Read(input);
                            if (requestCount_ == null || value != 0)
                            {
                                RequestCount = value;
                            }
                            break;
                        }
                        }
                    }
                }
コード例 #25
0
 public void MergeFrom(ClientSSLAuth other)
 {
     if (other == null)
     {
         return;
     }
     if (other.AuthApiCluster.Length != 0)
     {
         AuthApiCluster = other.AuthApiCluster;
     }
     if (other.StatPrefix.Length != 0)
     {
         StatPrefix = other.StatPrefix;
     }
     if (other.refreshDelay_ != null)
     {
         if (refreshDelay_ == null)
         {
             RefreshDelay = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         RefreshDelay.MergeFrom(other.RefreshDelay);
     }
     ipWhiteList_.Add(other.ipWhiteList_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #26
0
ファイル: Metric.cs プロジェクト: reactxx/rewise
 public void MergeFrom(MetricDescriptorMetadata other)
 {
     if (other == null)
     {
         return;
     }
     if (other.LaunchStage != global::Google.Api.LaunchStage.Unspecified)
     {
         LaunchStage = other.LaunchStage;
     }
     if (other.samplePeriod_ != null)
     {
         if (samplePeriod_ == null)
         {
             SamplePeriod = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         SamplePeriod.MergeFrom(other.SamplePeriod);
     }
     if (other.ingestDelay_ != null)
     {
         if (ingestDelay_ == null)
         {
             IngestDelay = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         IngestDelay.MergeFrom(other.IngestDelay);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #27
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    type_ = (global::Envoy.Config.Filter.Fault.V2.FaultDelay.Types.FaultDelayType)input.ReadEnum();
                    break;
                }

                case 16: {
                    Percent = input.ReadUInt32();
                    break;
                }

                case 26: {
                    global::Google.Protobuf.WellKnownTypes.Duration subBuilder = new global::Google.Protobuf.WellKnownTypes.Duration();
                    if (faultDelaySecifierCase_ == FaultDelaySecifierOneofCase.FixedDelay)
                    {
                        subBuilder.MergeFrom(FixedDelay);
                    }
                    input.ReadMessage(subBuilder);
                    FixedDelay = subBuilder;
                    break;
                }
                }
            }
        }
コード例 #28
0
 public void MergeFrom(CommonGrpcAccessLogConfig other)
 {
     if (other == null)
     {
         return;
     }
     if (other.LogName.Length != 0)
     {
         LogName = other.LogName;
     }
     if (other.grpcService_ != null)
     {
         if (grpcService_ == null)
         {
             GrpcService = new global::Envoy.Api.V2.Core.GrpcService();
         }
         GrpcService.MergeFrom(other.GrpcService);
     }
     if (other.bufferFlushInterval_ != null)
     {
         if (bufferFlushInterval_ == null)
         {
             BufferFlushInterval = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         BufferFlushInterval.MergeFrom(other.BufferFlushInterval);
     }
     if (other.bufferSizeBytes_ != null)
     {
         if (bufferSizeBytes_ == null || other.BufferSizeBytes != 0)
         {
             BufferSizeBytes = other.BufferSizeBytes;
         }
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #29
0
 public void MergeFrom(HealthCheck other)
 {
     if (other == null)
     {
         return;
     }
     if (other.passThroughMode_ != null)
     {
         if (passThroughMode_ == null || other.PassThroughMode != false)
         {
             PassThroughMode = other.PassThroughMode;
         }
     }
     if (other.cacheTime_ != null)
     {
         if (cacheTime_ == null)
         {
             CacheTime = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         CacheTime.MergeFrom(other.CacheTime);
     }
     clusterMinHealthyPercentages_.Add(other.clusterMinHealthyPercentages_);
     headers_.Add(other.headers_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #30
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    InstrumentId = input.ReadInt32();
                    break;
                }

                case 18: {
                    if (timeFrame_ == null)
                    {
                        TimeFrame = new global::Google.Protobuf.WellKnownTypes.Duration();
                    }
                    input.ReadMessage(TimeFrame);
                    break;
                }
                }
            }
        }