public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (homepageTrigger_ == null) { HomepageTrigger = new global::Google.Apps.Script.Type.HomepageExtensionPoint(); } input.ReadMessage(HomepageTrigger); break; } case 18: { if (onFileScopeGrantedTrigger_ == null) { OnFileScopeGrantedTrigger = new global::Google.Apps.Script.Type.Docs.DocsExtensionPoint(); } input.ReadMessage(OnFileScopeGrantedTrigger); break; } } } #endif }
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (homepageTrigger_ == null) { HomepageTrigger = new global::Google.Apps.Script.Type.HomepageExtensionPoint(); } input.ReadMessage(HomepageTrigger); break; } case 18: { if (onFileScopeGrantedTrigger_ == null) { OnFileScopeGrantedTrigger = new global::Google.Apps.Script.Type.Docs.DocsExtensionPoint(); } input.ReadMessage(OnFileScopeGrantedTrigger); break; } } } }
public void MergeFrom(DocsAddOnManifest other) { if (other == null) { return; } if (other.homepageTrigger_ != null) { if (homepageTrigger_ == null) { HomepageTrigger = new global::Google.Apps.Script.Type.HomepageExtensionPoint(); } HomepageTrigger.MergeFrom(other.HomepageTrigger); } if (other.onFileScopeGrantedTrigger_ != null) { if (onFileScopeGrantedTrigger_ == null) { OnFileScopeGrantedTrigger = new global::Google.Apps.Script.Type.Docs.DocsExtensionPoint(); } OnFileScopeGrantedTrigger.MergeFrom(other.OnFileScopeGrantedTrigger); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }