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: {
                            projectIds_.AddEntriesFrom(input, _repeated_projectIds_codec);
                            break;
                        }

                        case 16: {
                            InclusionMode = (global::Google.Cloud.SecurityCenter.V1.OrganizationSettings.Types.AssetDiscoveryConfig.Types.InclusionMode)input.ReadEnum();
                            break;
                        }
                        }
                    }
        #endif
                }
Ejemplo n.º 2
0
 public void MergeFrom(AssetDiscoveryConfig other)
 {
     if (other == null)
     {
         return;
     }
     projectIds_.Add(other.projectIds_);
     if (other.InclusionMode != 0)
     {
         InclusionMode = other.InclusionMode;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Ejemplo n.º 3
0
 public void MergeFrom(AssetDiscoveryConfig other)
 {
     if (other == null)
     {
         return;
     }
     projectIds_.Add(other.projectIds_);
     if (other.InclusionMode != global::Google.Cloud.SecurityCenter.V1.OrganizationSettings.Types.AssetDiscoveryConfig.Types.InclusionMode.Unspecified)
     {
         InclusionMode = other.InclusionMode;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Ejemplo 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: {
                            projectIds_.AddEntriesFrom(input, _repeated_projectIds_codec);
                            break;
                        }

                        case 16: {
                            inclusionMode_ = (global::Google.Cloud.SecurityCenter.V1.OrganizationSettings.Types.AssetDiscoveryConfig.Types.InclusionMode)input.ReadEnum();
                            break;
                        }
                        }
                    }
                }
                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: {
                            projectIds_.AddEntriesFrom(ref input, _repeated_projectIds_codec);
                            break;
                        }

                        case 16: {
                            InclusionMode = (global::Google.Cloud.SecurityCenter.V1.OrganizationSettings.Types.AssetDiscoveryConfig.Types.InclusionMode)input.ReadEnum();
                            break;
                        }
                        }
                    }
                }