Beispiel #1
0
 public void MergeFrom(AuthenticationRule other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Selector.Length != 0)
     {
         Selector = other.Selector;
     }
     if (other.oauth_ != null)
     {
         if (oauth_ == null)
         {
             oauth_ = new global::Google.Api.OAuthRequirements();
         }
         Oauth.MergeFrom(other.Oauth);
     }
     if (other.AllowWithoutCredential != false)
     {
         AllowWithoutCredential = other.AllowWithoutCredential;
     }
     requirements_.Add(other.requirements_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Beispiel #2
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: {
                    Selector = input.ReadString();
                    break;
                }

                case 18: {
                    if (oauth_ == null)
                    {
                        oauth_ = new global::Google.Api.OAuthRequirements();
                    }
                    input.ReadMessage(oauth_);
                    break;
                }

                case 40: {
                    AllowWithoutCredential = input.ReadBool();
                    break;
                }

                case 58: {
                    requirements_.AddEntriesFrom(input, _repeated_requirements_codec);
                    break;
                }
                }
            }
        }