Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (homepageTrigger_ != null)
            {
                hash ^= HomepageTrigger.GetHashCode();
            }
            hash ^= conferenceSolution_.GetHashCode();
            if (CreateSettingsUrlFunction.Length != 0)
            {
                hash ^= CreateSettingsUrlFunction.GetHashCode();
            }
            if (eventOpenTrigger_ != null)
            {
                hash ^= EventOpenTrigger.GetHashCode();
            }
            if (eventUpdateTrigger_ != null)
            {
                hash ^= EventUpdateTrigger.GetHashCode();
            }
            if (CurrentEventAccess != global::Google.Apps.Script.Type.Calendar.CalendarAddOnManifest.Types.EventAccess.Unspecified)
            {
                hash ^= CurrentEventAccess.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
 public void MergeFrom(CalendarAddOnManifest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.homepageTrigger_ != null)
     {
         if (homepageTrigger_ == null)
         {
             HomepageTrigger = new global::Google.Apps.Script.Type.HomepageExtensionPoint();
         }
         HomepageTrigger.MergeFrom(other.HomepageTrigger);
     }
     conferenceSolution_.Add(other.conferenceSolution_);
     if (other.CreateSettingsUrlFunction.Length != 0)
     {
         CreateSettingsUrlFunction = other.CreateSettingsUrlFunction;
     }
     if (other.eventOpenTrigger_ != null)
     {
         if (eventOpenTrigger_ == null)
         {
             EventOpenTrigger = new global::Google.Apps.Script.Type.Calendar.CalendarExtensionPoint();
         }
         EventOpenTrigger.MergeFrom(other.EventOpenTrigger);
     }
     if (other.eventUpdateTrigger_ != null)
     {
         if (eventUpdateTrigger_ == null)
         {
             EventUpdateTrigger = new global::Google.Apps.Script.Type.Calendar.CalendarExtensionPoint();
         }
         EventUpdateTrigger.MergeFrom(other.EventUpdateTrigger);
     }
     if (other.CurrentEventAccess != global::Google.Apps.Script.Type.Calendar.CalendarAddOnManifest.Types.EventAccess.Unspecified)
     {
         CurrentEventAccess = other.CurrentEventAccess;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }