예제 #1
0
 public void MergeFrom(ServicePerimeterConfig other)
 {
     if (other == null)
     {
         return;
     }
     resources_.Add(other.resources_);
     accessLevels_.Add(other.accessLevels_);
     restrictedServices_.Add(other.restrictedServices_);
     if (other.vpcAccessibleServices_ != null)
     {
         if (vpcAccessibleServices_ == null)
         {
             VpcAccessibleServices = new global::Google.Identity.AccessContextManager.V1.ServicePerimeterConfig.Types.VpcAccessibleServices();
         }
         VpcAccessibleServices.MergeFrom(other.VpcAccessibleServices);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
예제 #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: {
                    resources_.AddEntriesFrom(input, _repeated_resources_codec);
                    break;
                }

                case 18: {
                    accessLevels_.AddEntriesFrom(input, _repeated_accessLevels_codec);
                    break;
                }

                case 34: {
                    restrictedServices_.AddEntriesFrom(input, _repeated_restrictedServices_codec);
                    break;
                }

                case 82: {
                    if (vpcAccessibleServices_ == null)
                    {
                        VpcAccessibleServices = new global::Google.Identity.AccessContextManager.V1.ServicePerimeterConfig.Types.VpcAccessibleServices();
                    }
                    input.ReadMessage(VpcAccessibleServices);
                    break;
                }
                }
            }
        }