Пример #1
0
        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 (envelope_ == null)
                    {
                        Envelope = new global::Grafeas.V1.Envelope();
                    }
                    input.ReadMessage(Envelope);
                    break;
                }

                case 18: {
                    global::Grafeas.V1.InTotoStatement subBuilder = new global::Grafeas.V1.InTotoStatement();
                    if (decodedPayloadCase_ == DecodedPayloadOneofCase.Statement)
                    {
                        subBuilder.MergeFrom(Statement);
                    }
                    input.ReadMessage(subBuilder);
                    Statement = subBuilder;
                    break;
                }
                }
            }
        }
Пример #2
0
        public void MergeFrom(DSSEAttestationOccurrence other)
        {
            if (other == null)
            {
                return;
            }
            if (other.envelope_ != null)
            {
                if (envelope_ == null)
                {
                    Envelope = new global::Grafeas.V1.Envelope();
                }
                Envelope.MergeFrom(other.Envelope);
            }
            switch (other.DecodedPayloadCase)
            {
            case DecodedPayloadOneofCase.Statement:
                if (Statement == null)
                {
                    Statement = new global::Grafeas.V1.InTotoStatement();
                }
                Statement.MergeFrom(other.Statement);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }
Пример #3
0
        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
        }
Пример #4
0
        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;
                }
                }
            }
        }
Пример #5
0
        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 (envelope_ == null)
                    {
                        Envelope = new global::Grafeas.V1.Envelope();
                    }
                    input.ReadMessage(Envelope);
                    break;
                }

                case 18: {
                    global::Grafeas.V1.InTotoStatement subBuilder = new global::Grafeas.V1.InTotoStatement();
                    if (decodedPayloadCase_ == DecodedPayloadOneofCase.Statement)
                    {
                        subBuilder.MergeFrom(Statement);
                    }
                    input.ReadMessage(subBuilder);
                    Statement = subBuilder;
                    break;
                }
                }
            }
    #endif
        }
Пример #6
0
 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);
 }