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: { Name = input.ReadString(); break; } case 16: { EnableAssetDiscovery = input.ReadBool(); break; } case 26: { if (assetDiscoveryConfig_ == null) { AssetDiscoveryConfig = new global::Google.Cloud.SecurityCenter.V1.OrganizationSettings.Types.AssetDiscoveryConfig(); } input.ReadMessage(AssetDiscoveryConfig); break; } } } }
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 16: { EnableAssetDiscovery = input.ReadBool(); break; } case 26: { if (assetDiscoveryConfig_ == null) { assetDiscoveryConfig_ = new global::Google.Cloud.SecurityCenter.V1.OrganizationSettings.Types.AssetDiscoveryConfig(); } input.ReadMessage(assetDiscoveryConfig_); break; } } } }
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: { Name = input.ReadString(); break; } case 16: { EnableAssetDiscovery = input.ReadBool(); break; } case 26: { if (assetDiscoveryConfig_ == null) { AssetDiscoveryConfig = new global::Google.Cloud.SecurityCenter.V1.OrganizationSettings.Types.AssetDiscoveryConfig(); } input.ReadMessage(AssetDiscoveryConfig); break; } } } #endif }
public void MergeFrom(OrganizationSettings other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.EnableAssetDiscovery != false) { EnableAssetDiscovery = other.EnableAssetDiscovery; } if (other.assetDiscoveryConfig_ != null) { if (assetDiscoveryConfig_ == null) { AssetDiscoveryConfig = new global::Google.Cloud.SecurityCenter.V1.OrganizationSettings.Types.AssetDiscoveryConfig(); } AssetDiscoveryConfig.MergeFrom(other.AssetDiscoveryConfig); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }