Class OrganizationSettings.AssetDiscoveryConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<OrganizationSettings.AssetDiscoveryConfig.Builder>
com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder
All Implemented Interfaces:
OrganizationSettings.AssetDiscoveryConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
OrganizationSettings.AssetDiscoveryConfig

public static final class OrganizationSettings.AssetDiscoveryConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<OrganizationSettings.AssetDiscoveryConfig.Builder> implements OrganizationSettings.AssetDiscoveryConfigOrBuilder
 The configuration used for Asset Discovery runs.
 
Protobuf type google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<OrganizationSettings.AssetDiscoveryConfig.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<OrganizationSettings.AssetDiscoveryConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<OrganizationSettings.AssetDiscoveryConfig.Builder>
    • getDefaultInstanceForType

      public OrganizationSettings.AssetDiscoveryConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public OrganizationSettings.AssetDiscoveryConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<OrganizationSettings.AssetDiscoveryConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<OrganizationSettings.AssetDiscoveryConfig.Builder>
    • mergeFrom

      public OrganizationSettings.AssetDiscoveryConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<OrganizationSettings.AssetDiscoveryConfig.Builder>
      Throws:
      IOException
    • getProjectIdsList

      public com.google.protobuf.ProtocolStringList getProjectIdsList()
       The project ids to use for filtering asset discovery.
       
      repeated string project_ids = 1;
      Specified by:
      getProjectIdsList in interface OrganizationSettings.AssetDiscoveryConfigOrBuilder
      Returns:
      A list containing the projectIds.
    • getProjectIdsCount

      public int getProjectIdsCount()
       The project ids to use for filtering asset discovery.
       
      repeated string project_ids = 1;
      Specified by:
      getProjectIdsCount in interface OrganizationSettings.AssetDiscoveryConfigOrBuilder
      Returns:
      The count of projectIds.
    • getProjectIds

      public String getProjectIds(int index)
       The project ids to use for filtering asset discovery.
       
      repeated string project_ids = 1;
      Specified by:
      getProjectIds in interface OrganizationSettings.AssetDiscoveryConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The projectIds at the given index.
    • getProjectIdsBytes

      public com.google.protobuf.ByteString getProjectIdsBytes(int index)
       The project ids to use for filtering asset discovery.
       
      repeated string project_ids = 1;
      Specified by:
      getProjectIdsBytes in interface OrganizationSettings.AssetDiscoveryConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the projectIds at the given index.
    • setProjectIds

      public OrganizationSettings.AssetDiscoveryConfig.Builder setProjectIds(int index, String value)
       The project ids to use for filtering asset discovery.
       
      repeated string project_ids = 1;
      Parameters:
      index - The index to set the value at.
      value - The projectIds to set.
      Returns:
      This builder for chaining.
    • addProjectIds

       The project ids to use for filtering asset discovery.
       
      repeated string project_ids = 1;
      Parameters:
      value - The projectIds to add.
      Returns:
      This builder for chaining.
    • addAllProjectIds

       The project ids to use for filtering asset discovery.
       
      repeated string project_ids = 1;
      Parameters:
      values - The projectIds to add.
      Returns:
      This builder for chaining.
    • clearProjectIds

       The project ids to use for filtering asset discovery.
       
      repeated string project_ids = 1;
      Returns:
      This builder for chaining.
    • addProjectIdsBytes

      public OrganizationSettings.AssetDiscoveryConfig.Builder addProjectIdsBytes(com.google.protobuf.ByteString value)
       The project ids to use for filtering asset discovery.
       
      repeated string project_ids = 1;
      Parameters:
      value - The bytes of the projectIds to add.
      Returns:
      This builder for chaining.
    • getInclusionModeValue

      public int getInclusionModeValue()
       The mode to use for filtering asset discovery.
       
      .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2;
      Specified by:
      getInclusionModeValue in interface OrganizationSettings.AssetDiscoveryConfigOrBuilder
      Returns:
      The enum numeric value on the wire for inclusionMode.
    • setInclusionModeValue

      public OrganizationSettings.AssetDiscoveryConfig.Builder setInclusionModeValue(int value)
       The mode to use for filtering asset discovery.
       
      .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2;
      Parameters:
      value - The enum numeric value on the wire for inclusionMode to set.
      Returns:
      This builder for chaining.
    • getInclusionMode

       The mode to use for filtering asset discovery.
       
      .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2;
      Specified by:
      getInclusionMode in interface OrganizationSettings.AssetDiscoveryConfigOrBuilder
      Returns:
      The inclusionMode.
    • setInclusionMode

       The mode to use for filtering asset discovery.
       
      .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2;
      Parameters:
      value - The inclusionMode to set.
      Returns:
      This builder for chaining.
    • clearInclusionMode

       The mode to use for filtering asset discovery.
       
      .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2;
      Returns:
      This builder for chaining.
    • getFolderIdsList

      public com.google.protobuf.ProtocolStringList getFolderIdsList()
       The folder ids to use for filtering asset discovery.
       It consists of only digits, e.g., 756619654966.
       
      repeated string folder_ids = 3;
      Specified by:
      getFolderIdsList in interface OrganizationSettings.AssetDiscoveryConfigOrBuilder
      Returns:
      A list containing the folderIds.
    • getFolderIdsCount

      public int getFolderIdsCount()
       The folder ids to use for filtering asset discovery.
       It consists of only digits, e.g., 756619654966.
       
      repeated string folder_ids = 3;
      Specified by:
      getFolderIdsCount in interface OrganizationSettings.AssetDiscoveryConfigOrBuilder
      Returns:
      The count of folderIds.
    • getFolderIds

      public String getFolderIds(int index)
       The folder ids to use for filtering asset discovery.
       It consists of only digits, e.g., 756619654966.
       
      repeated string folder_ids = 3;
      Specified by:
      getFolderIds in interface OrganizationSettings.AssetDiscoveryConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The folderIds at the given index.
    • getFolderIdsBytes

      public com.google.protobuf.ByteString getFolderIdsBytes(int index)
       The folder ids to use for filtering asset discovery.
       It consists of only digits, e.g., 756619654966.
       
      repeated string folder_ids = 3;
      Specified by:
      getFolderIdsBytes in interface OrganizationSettings.AssetDiscoveryConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the folderIds at the given index.
    • setFolderIds

      public OrganizationSettings.AssetDiscoveryConfig.Builder setFolderIds(int index, String value)
       The folder ids to use for filtering asset discovery.
       It consists of only digits, e.g., 756619654966.
       
      repeated string folder_ids = 3;
      Parameters:
      index - The index to set the value at.
      value - The folderIds to set.
      Returns:
      This builder for chaining.
    • addFolderIds

       The folder ids to use for filtering asset discovery.
       It consists of only digits, e.g., 756619654966.
       
      repeated string folder_ids = 3;
      Parameters:
      value - The folderIds to add.
      Returns:
      This builder for chaining.
    • addAllFolderIds

       The folder ids to use for filtering asset discovery.
       It consists of only digits, e.g., 756619654966.
       
      repeated string folder_ids = 3;
      Parameters:
      values - The folderIds to add.
      Returns:
      This builder for chaining.
    • clearFolderIds

       The folder ids to use for filtering asset discovery.
       It consists of only digits, e.g., 756619654966.
       
      repeated string folder_ids = 3;
      Returns:
      This builder for chaining.
    • addFolderIdsBytes

      public OrganizationSettings.AssetDiscoveryConfig.Builder addFolderIdsBytes(com.google.protobuf.ByteString value)
       The folder ids to use for filtering asset discovery.
       It consists of only digits, e.g., 756619654966.
       
      repeated string folder_ids = 3;
      Parameters:
      value - The bytes of the folderIds to add.
      Returns:
      This builder for chaining.