Example #1
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 (rules_ == null)
                    {
                        rules_ = new global::Envoy.Config.Rbac.V2Alpha.RBAC();
                    }
                    input.ReadMessage(rules_);
                    break;
                }

                case 18: {
                    if (shadowRules_ == null)
                    {
                        shadowRules_ = new global::Envoy.Config.Rbac.V2Alpha.RBAC();
                    }
                    input.ReadMessage(shadowRules_);
                    break;
                }
                }
            }
        }
Example #2
0
 public void MergeFrom(RBAC other)
 {
     if (other == null)
     {
         return;
     }
     if (other.rules_ != null)
     {
         if (rules_ == null)
         {
             rules_ = new global::Envoy.Config.Rbac.V2Alpha.RBAC();
         }
         Rules.MergeFrom(other.Rules);
     }
     if (other.shadowRules_ != null)
     {
         if (shadowRules_ == null)
         {
             shadowRules_ = new global::Envoy.Config.Rbac.V2Alpha.RBAC();
         }
         ShadowRules.MergeFrom(other.ShadowRules);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }