Exemplo n.º 1
0
 public void MergeFrom(Index other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ProjectId.Length != 0)
     {
         ProjectId = other.ProjectId;
     }
     if (other.IndexId.Length != 0)
     {
         IndexId = other.IndexId;
     }
     if (other.Kind.Length != 0)
     {
         Kind = other.Kind;
     }
     if (other.Ancestor != global::Google.Cloud.Datastore.Admin.V1.Index.Types.AncestorMode.Unspecified)
     {
         Ancestor = other.Ancestor;
     }
     properties_.Add(other.properties_);
     if (other.State != global::Google.Cloud.Datastore.Admin.V1.Index.Types.State.Unspecified)
     {
         State = other.State;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Exemplo n.º 2
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: {
                    ProjectId = input.ReadString();
                    break;
                }

                case 26: {
                    IndexId = input.ReadString();
                    break;
                }

                case 34: {
                    Kind = input.ReadString();
                    break;
                }

                case 40: {
                    Ancestor = (global::Google.Cloud.Datastore.Admin.V1.Index.Types.AncestorMode)input.ReadEnum();
                    break;
                }

                case 50: {
                    properties_.AddEntriesFrom(input, _repeated_properties_codec);
                    break;
                }

                case 56: {
                    State = (global::Google.Cloud.Datastore.Admin.V1.Index.Types.State)input.ReadEnum();
                    break;
                }
                }
            }
    #endif
        }
Exemplo n.º 3
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: {
                    ProjectId = input.ReadString();
                    break;
                }

                case 26: {
                    IndexId = input.ReadString();
                    break;
                }

                case 34: {
                    Kind = input.ReadString();
                    break;
                }

                case 40: {
                    Ancestor = (global::Google.Cloud.Datastore.Admin.V1.Index.Types.AncestorMode)input.ReadEnum();
                    break;
                }

                case 50: {
                    properties_.AddEntriesFrom(ref input, _repeated_properties_codec);
                    break;
                }

                case 56: {
                    State = (global::Google.Cloud.Datastore.Admin.V1.Index.Types.State)input.ReadEnum();
                    break;
                }
                }
            }
        }
Exemplo n.º 4
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    ProjectId = input.ReadString();
                    break;
                }

                case 26: {
                    IndexId = input.ReadString();
                    break;
                }

                case 34: {
                    Kind = input.ReadString();
                    break;
                }

                case 40: {
                    Ancestor = (global::Google.Cloud.Datastore.Admin.V1.Index.Types.AncestorMode)input.ReadEnum();
                    break;
                }

                case 50: {
                    properties_.AddEntriesFrom(input, _repeated_properties_codec);
                    break;
                }

                case 56: {
                    State = (global::Google.Cloud.Datastore.Admin.V1.Index.Types.State)input.ReadEnum();
                    break;
                }
                }
            }
        }