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: { Type = input.ReadString(); break; } case 18: { subject_.AddEntriesFrom(input, _repeated_subject_codec); break; } case 26: { PredicateType = input.ReadString(); break; } case 34: { global::Grafeas.V1.InTotoProvenance subBuilder = new global::Grafeas.V1.InTotoProvenance(); if (predicateCase_ == PredicateOneofCase.Provenance) { subBuilder.MergeFrom(Provenance); } input.ReadMessage(subBuilder); Provenance = subBuilder; break; } case 42: { global::Grafeas.V1.SlsaProvenance subBuilder = new global::Grafeas.V1.SlsaProvenance(); if (predicateCase_ == PredicateOneofCase.SlsaProvenance) { subBuilder.MergeFrom(SlsaProvenance); } input.ReadMessage(subBuilder); SlsaProvenance = subBuilder; 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: { Type = input.ReadString(); break; } case 18: { subject_.AddEntriesFrom(ref input, _repeated_subject_codec); break; } case 26: { PredicateType = input.ReadString(); break; } case 34: { global::Grafeas.V1.InTotoProvenance subBuilder = new global::Grafeas.V1.InTotoProvenance(); if (predicateCase_ == PredicateOneofCase.Provenance) { subBuilder.MergeFrom(Provenance); } input.ReadMessage(subBuilder); Provenance = subBuilder; break; } case 42: { global::Grafeas.V1.SlsaProvenance subBuilder = new global::Grafeas.V1.SlsaProvenance(); if (predicateCase_ == PredicateOneofCase.SlsaProvenance) { subBuilder.MergeFrom(SlsaProvenance); } input.ReadMessage(subBuilder); SlsaProvenance = subBuilder; break; } } } }
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 (provenance_ == null) { Provenance = new global::Grafeas.V1.BuildProvenance(); } input.ReadMessage(Provenance); break; } case 18: { ProvenanceBytes = input.ReadString(); break; } case 26: { if (intotoProvenance_ == null) { IntotoProvenance = new global::Grafeas.V1.InTotoProvenance(); } input.ReadMessage(IntotoProvenance); break; } case 34: { if (intotoStatement_ == null) { IntotoStatement = new global::Grafeas.V1.InTotoStatement(); } input.ReadMessage(IntotoStatement); 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 (provenance_ == null) { Provenance = new global::Grafeas.V1.BuildProvenance(); } input.ReadMessage(Provenance); break; } case 18: { ProvenanceBytes = input.ReadString(); break; } case 26: { if (intotoProvenance_ == null) { IntotoProvenance = new global::Grafeas.V1.InTotoProvenance(); } input.ReadMessage(IntotoProvenance); break; } case 34: { if (intotoStatement_ == null) { IntotoStatement = new global::Grafeas.V1.InTotoStatement(); } input.ReadMessage(IntotoStatement); break; } } } }
public void MergeFrom(InTotoStatement other) { if (other == null) { return; } if (other.Type.Length != 0) { Type = other.Type; } subject_.Add(other.subject_); if (other.PredicateType.Length != 0) { PredicateType = other.PredicateType; } switch (other.PredicateCase) { case PredicateOneofCase.Provenance: if (Provenance == null) { Provenance = new global::Grafeas.V1.InTotoProvenance(); } Provenance.MergeFrom(other.Provenance); break; case PredicateOneofCase.SlsaProvenance: if (SlsaProvenance == null) { SlsaProvenance = new global::Grafeas.V1.SlsaProvenance(); } SlsaProvenance.MergeFrom(other.SlsaProvenance); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(BuildOccurrence other) { if (other == null) { return; } if (other.provenance_ != null) { if (provenance_ == null) { Provenance = new global::Grafeas.V1.BuildProvenance(); } Provenance.MergeFrom(other.Provenance); } if (other.ProvenanceBytes.Length != 0) { ProvenanceBytes = other.ProvenanceBytes; } if (other.intotoProvenance_ != null) { if (intotoProvenance_ == null) { IntotoProvenance = new global::Grafeas.V1.InTotoProvenance(); } IntotoProvenance.MergeFrom(other.IntotoProvenance); } if (other.intotoStatement_ != null) { if (intotoStatement_ == null) { IntotoStatement = new global::Grafeas.V1.InTotoStatement(); } IntotoStatement.MergeFrom(other.IntotoStatement); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }