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);
 }
        public void MergeFrom(ExtAuthz other)
        {
            if (other == null)
            {
                return;
            }
            if (other.FailureModeAllow != false)
            {
                FailureModeAllow = other.FailureModeAllow;
            }
            switch (other.ServicesCase)
            {
            case ServicesOneofCase.GrpcService:
                if (GrpcService == null)
                {
                    GrpcService = new global::Envoy.Api.V2.Core.GrpcService();
                }
                GrpcService.MergeFrom(other.GrpcService);
                break;

            case ServicesOneofCase.HttpService:
                if (HttpService == null)
                {
                    HttpService = new global::Envoy.Config.Filter.Http.ExtAuthz.V2Alpha.HttpService();
                }
                HttpService.MergeFrom(other.HttpService);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }
        public void MergeFrom(RateLimitServiceConfig other)
        {
            if (other == null)
            {
                return;
            }
            switch (other.ServiceSpecifierCase)
            {
            case ServiceSpecifierOneofCase.ClusterName:
                ClusterName = other.ClusterName;
                break;

            case ServiceSpecifierOneofCase.GrpcService:
                if (GrpcService == null)
                {
                    GrpcService = new global::Envoy.Api.V2.Core.GrpcService();
                }
                GrpcService.MergeFrom(other.GrpcService);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }
Example #4
0
 public void MergeFrom(ExtAuthz other)
 {
     if (other == null)
     {
         return;
     }
     if (other.StatPrefix.Length != 0)
     {
         StatPrefix = other.StatPrefix;
     }
     if (other.grpcService_ != null)
     {
         if (grpcService_ == null)
         {
             GrpcService = new global::Envoy.Api.V3Alpha.Core.GrpcService();
         }
         GrpcService.MergeFrom(other.GrpcService);
     }
     if (other.FailureModeAllow != false)
     {
         FailureModeAllow = other.FailureModeAllow;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }