Esempio n. 1
0
 public void MergeFrom(ServicePerimeter other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Title.Length != 0)
     {
         Title = other.Title;
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.createTime_ != null)
     {
         if (createTime_ == null)
         {
             CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         CreateTime.MergeFrom(other.CreateTime);
     }
     if (other.updateTime_ != null)
     {
         if (updateTime_ == null)
         {
             UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         UpdateTime.MergeFrom(other.UpdateTime);
     }
     if (other.PerimeterType != global::Google.Identity.AccessContextManager.V1.ServicePerimeter.Types.PerimeterType.Regular)
     {
         PerimeterType = other.PerimeterType;
     }
     if (other.status_ != null)
     {
         if (status_ == null)
         {
             Status = new global::Google.Identity.AccessContextManager.V1.ServicePerimeterConfig();
         }
         Status.MergeFrom(other.Status);
     }
     if (other.spec_ != null)
     {
         if (spec_ == null)
         {
             Spec = new global::Google.Identity.AccessContextManager.V1.ServicePerimeterConfig();
         }
         Spec.MergeFrom(other.Spec);
     }
     if (other.UseExplicitDryRunSpec != false)
     {
         UseExplicitDryRunSpec = other.UseExplicitDryRunSpec;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Esempio n. 2
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: {
                    Name = input.ReadString();
                    break;
                }

                case 18: {
                    Title = input.ReadString();
                    break;
                }

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

                case 34: {
                    if (createTime_ == null)
                    {
                        CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(CreateTime);
                    break;
                }

                case 42: {
                    if (updateTime_ == null)
                    {
                        UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(UpdateTime);
                    break;
                }

                case 48: {
                    PerimeterType = (global::Google.Identity.AccessContextManager.V1.ServicePerimeter.Types.PerimeterType)input.ReadEnum();
                    break;
                }

                case 58: {
                    if (status_ == null)
                    {
                        Status = new global::Google.Identity.AccessContextManager.V1.ServicePerimeterConfig();
                    }
                    input.ReadMessage(Status);
                    break;
                }

                case 66: {
                    if (spec_ == null)
                    {
                        Spec = new global::Google.Identity.AccessContextManager.V1.ServicePerimeterConfig();
                    }
                    input.ReadMessage(Spec);
                    break;
                }

                case 72: {
                    UseExplicitDryRunSpec = input.ReadBool();
                    break;
                }
                }
            }
        }