public void MergeFrom(WebhookResponse other) { if (other == null) { return; } if (other.FulfillmentText.Length != 0) { FulfillmentText = other.FulfillmentText; } fulfillmentMessages_.Add(other.fulfillmentMessages_); if (other.Source.Length != 0) { Source = other.Source; } if (other.payload_ != null) { if (payload_ == null) { Payload = new global::Google.Protobuf.WellKnownTypes.Struct(); } Payload.MergeFrom(other.Payload); } outputContexts_.Add(other.outputContexts_); if (other.followupEventInput_ != null) { if (followupEventInput_ == null) { FollowupEventInput = new global::Google.Cloud.Dialogflow.V2.EventInput(); } FollowupEventInput.MergeFrom(other.FollowupEventInput); } sessionEntityTypes_.Add(other.sessionEntityTypes_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (FulfillmentText.Length != 0) { hash ^= FulfillmentText.GetHashCode(); } hash ^= fulfillmentMessages_.GetHashCode(); if (Source.Length != 0) { hash ^= Source.GetHashCode(); } if (payload_ != null) { hash ^= Payload.GetHashCode(); } hash ^= outputContexts_.GetHashCode(); if (followupEventInput_ != null) { hash ^= FollowupEventInput.GetHashCode(); } hash ^= sessionEntityTypes_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }