Class SearchCatalogRequest.Scope.Builder (1.89.0)

public static final class SearchCatalogRequest.Scope.Builder extends GeneratedMessage.Builder<SearchCatalogRequest.Scope.Builder> implements SearchCatalogRequest.ScopeOrBuilder

The criteria that select the subspace used for query matching.

Protobuf type google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllIncludeOrgIds(Iterable<String> values)

public SearchCatalogRequest.Scope.Builder addAllIncludeOrgIds(Iterable<String> values)

The list of organization IDs to search within. To find your organization ID, follow instructions in https://cloud.google.com/resource-manager/docs/creating-managing-organization.

repeated string include_org_ids = 2;

Parameter
Name Description
values Iterable<String>

The includeOrgIds to add.

Returns
Type Description
SearchCatalogRequest.Scope.Builder

This builder for chaining.

addAllIncludeProjectIds(Iterable<String> values)

public SearchCatalogRequest.Scope.Builder addAllIncludeProjectIds(Iterable<String> values)

The list of project IDs to search within. To learn more about the distinction between project names/IDs/numbers, go to https://cloud.google.com/docs/overview/#projects.

repeated string include_project_ids = 3;

Parameter
Name Description
values Iterable<String>

The includeProjectIds to add.

Returns
Type Description
SearchCatalogRequest.Scope.Builder

This builder for chaining.

addAllRestrictedLocations(Iterable<String> values)

public SearchCatalogRequest.Scope.Builder addAllRestrictedLocations(Iterable<String> values)

Optional. The list of locations to search within.

  1. If empty, search will be performed in all locations;
  2. If any of the locations are NOT in the valid locations list, error will be returned;
  3. Otherwise, search only the given locations for matching results. Typical usage is to leave this field empty. When a location is unreachable as returned in the SearchCatalogResponse.unreachable field, users can repeat the search request with this parameter set to get additional information on the error.

    Valid locations:

  4. asia-east1
  5. asia-east2
  6. asia-northeast1
  7. asia-northeast2
  8. asia-northeast3
  9. asia-south1
  10. asia-southeast1
  11. australia-southeast1
  12. eu
  13. europe-north1
  14. europe-west1
  15. europe-west2
  16. europe-west3
  17. europe-west4
  18. europe-west6
  19. global
  20. northamerica-northeast1
  21. southamerica-east1
  22. us
  23. us-central1
  24. us-east1
  25. us-east4
  26. us-west1
  27. us-west2

repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The restrictedLocations to add.

Returns
Type Description
SearchCatalogRequest.Scope.Builder

This builder for chaining.

addIncludeOrgIds(String value)

public SearchCatalogRequest.Scope.Builder addIncludeOrgIds(String value)

The list of organization IDs to search within. To find your organization ID, follow instructions in https://cloud.google.com/resource-manager/docs/creating-managing-organization.

repeated string include_org_ids = 2;

Parameter
Name Description
value String

The includeOrgIds to add.

Returns
Type Description
SearchCatalogRequest.Scope.Builder

This builder for chaining.

addIncludeOrgIdsBytes(ByteString value)

public SearchCatalogRequest.Scope.Builder addIncludeOrgIdsBytes(ByteString value)

The list of organization IDs to search within. To find your organization ID, follow instructions in https://cloud.google.com/resource-manager/docs/creating-managing-organization.

repeated string include_org_ids = 2;

Parameter
Name Description
value ByteString

The bytes of the includeOrgIds to add.

Returns
Type Description
SearchCatalogRequest.Scope.Builder

This builder for chaining.

addIncludeProjectIds(String value)

public SearchCatalogRequest.Scope.Builder addIncludeProjectIds(String value)

The list of project IDs to search within. To learn more about the distinction between project names/IDs/numbers, go to https://cloud.google.com/docs/overview/#projects.

repeated string include_project_ids = 3;

Parameter
Name Description
value String

The includeProjectIds to add.

Returns
Type Description
SearchCatalogRequest.Scope.Builder

This builder for chaining.

addIncludeProjectIdsBytes(ByteString value)

public SearchCatalogRequest.Scope.Builder addIncludeProjectIdsBytes(ByteString value)

The list of project IDs to search within. To learn more about the distinction between project names/IDs/numbers, go to https://cloud.google.com/docs/overview/#projects.

repeated string include_project_ids = 3;

Parameter
Name Description
value ByteString

The bytes of the includeProjectIds to add.

Returns
Type Description
SearchCatalogRequest.Scope.Builder

This builder for chaining.

addRestrictedLocations(String value)

public SearchCatalogRequest.Scope.Builder addRestrictedLocations(String value)

Optional. The list of locations to search within.

  1. If empty, search will be performed in all locations;
  2. If any of the locations are NOT in the valid locations list, error will be returned;
  3. Otherwise, search only the given locations for matching results. Typical usage is to leave this field empty. When a location is unreachable as returned in the SearchCatalogResponse.unreachable field, users can repeat the search request with this parameter set to get additional information on the error.

    Valid locations:

  4. asia-east1
  5. asia-east2
  6. asia-northeast1
  7. asia-northeast2
  8. asia-northeast3
  9. asia-south1
  10. asia-southeast1
  11. australia-southeast1
  12. eu
  13. europe-north1
  14. europe-west1
  15. europe-west2
  16. europe-west3
  17. europe-west4
  18. europe-west6
  19. global
  20. northamerica-northeast1
  21. southamerica-east1
  22. us
  23. us-central1
  24. us-east1
  25. us-east4
  26. us-west1
  27. us-west2

repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The restrictedLocations to add.

Returns
Type Description
SearchCatalogRequest.Scope.Builder

This builder for chaining.

addRestrictedLocationsBytes(ByteString value)

public SearchCatalogRequest.Scope.Builder addRestrictedLocationsBytes(ByteString value)

Optional. The list of locations to search within.

  1. If empty, search will be performed in all locations;
  2. If any of the locations are NOT in the valid locations list, error will be returned;
  3. Otherwise, search only the given locations for matching results. Typical usage is to leave this field empty. When a location is unreachable as returned in the SearchCatalogResponse.unreachable field, users can repeat the search request with this parameter set to get additional information on the error.

    Valid locations:

  4. asia-east1
  5. asia-east2
  6. asia-northeast1
  7. asia-northeast2
  8. asia-northeast3
  9. asia-south1
  10. asia-southeast1
  11. australia-southeast1
  12. eu
  13. europe-north1
  14. europe-west1
  15. europe-west2
  16. europe-west3
  17. europe-west4
  18. europe-west6
  19. global
  20. northamerica-northeast1
  21. southamerica-east1
  22. us
  23. us-central1
  24. us-east1
  25. us-east4
  26. us-west1
  27. us-west2

repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the restrictedLocations to add.

Returns
Type Description
SearchCatalogRequest.Scope.Builder

This builder for chaining.

build()

public SearchCatalogRequest.Scope build()
Returns
Type Description
SearchCatalogRequest.Scope

buildPartial()

public SearchCatalogRequest.Scope buildPartial()
Returns
Type Description
SearchCatalogRequest.Scope

clear()

public SearchCatalogRequest.Scope.Builder clear()
Returns
Type Description
SearchCatalogRequest.Scope.Builder
Overrides

clearIncludeGcpPublicDatasets()

public SearchCatalogRequest.Scope.Builder clearIncludeGcpPublicDatasets()

If true, include Google Cloud public datasets in the search results. Info on Google Cloud public datasets is available at https://cloud.google.com/public-datasets/. By default, Google Cloud public datasets are excluded.

bool include_gcp_public_datasets = 7;

Returns
Type Description
SearchCatalogRequest.Scope.Builder

This builder for chaining.

clearIncludeOrgIds()

public SearchCatalogRequest.Scope.Builder clearIncludeOrgIds()

The list of organization IDs to search within. To find your organization ID, follow instructions in https://cloud.google.com/resource-manager/docs/creating-managing-organization.

repeated string include_org_ids = 2;

Returns
Type Description
SearchCatalogRequest.Scope.Builder

This builder for chaining.

clearIncludeProjectIds()

public SearchCatalogRequest.Scope.Builder clearIncludeProjectIds()

The list of project IDs to search within. To learn more about the distinction between project names/IDs/numbers, go to https://cloud.google.com/docs/overview/#projects.

repeated string include_project_ids = 3;

Returns
Type Description
SearchCatalogRequest.Scope.Builder

This builder for chaining.

clearRestrictedLocations()

public SearchCatalogRequest.Scope.Builder clearRestrictedLocations()

Optional. The list of locations to search within.

  1. If empty, search will be performed in all locations;
  2. If any of the locations are NOT in the valid locations list, error will be returned;
  3. Otherwise, search only the given locations for matching results. Typical usage is to leave this field empty. When a location is unreachable as returned in the SearchCatalogResponse.unreachable field, users can repeat the search request with this parameter set to get additional information on the error.

    Valid locations:

  4. asia-east1
  5. asia-east2
  6. asia-northeast1
  7. asia-northeast2
  8. asia-northeast3
  9. asia-south1
  10. asia-southeast1
  11. australia-southeast1
  12. eu
  13. europe-north1
  14. europe-west1
  15. europe-west2
  16. europe-west3
  17. europe-west4
  18. europe-west6
  19. global
  20. northamerica-northeast1
  21. southamerica-east1
  22. us
  23. us-central1
  24. us-east1
  25. us-east4
  26. us-west1
  27. us-west2

repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SearchCatalogRequest.Scope.Builder

This builder for chaining.

getDefaultInstanceForType()

public SearchCatalogRequest.Scope getDefaultInstanceForType()
Returns
Type Description
SearchCatalogRequest.Scope

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getIncludeGcpPublicDatasets()

public boolean getIncludeGcpPublicDatasets()

If true, include Google Cloud public datasets in the search results. Info on Google Cloud public datasets is available at https://cloud.google.com/public-datasets/. By default, Google Cloud public datasets are excluded.

bool include_gcp_public_datasets = 7;

Returns
Type Description
boolean

The includeGcpPublicDatasets.

getIncludeOrgIds(int index)

public String getIncludeOrgIds(int index)

The list of organization IDs to search within. To find your organization ID, follow instructions in https://cloud.google.com/resource-manager/docs/creating-managing-organization.

repeated string include_org_ids = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The includeOrgIds at the given index.

getIncludeOrgIdsBytes(int index)

public ByteString getIncludeOrgIdsBytes(int index)

The list of organization IDs to search within. To find your organization ID, follow instructions in https://cloud.google.com/resource-manager/docs/creating-managing-organization.

repeated string include_org_ids = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the includeOrgIds at the given index.

getIncludeOrgIdsCount()

public int getIncludeOrgIdsCount()

The list of organization IDs to search within. To find your organization ID, follow instructions in https://cloud.google.com/resource-manager/docs/creating-managing-organization.

repeated string include_org_ids = 2;

Returns
Type Description
int

The count of includeOrgIds.

getIncludeOrgIdsList()

public ProtocolStringList getIncludeOrgIdsList()

The list of organization IDs to search within. To find your organization ID, follow instructions in https://cloud.google.com/resource-manager/docs/creating-managing-organization.

repeated string include_org_ids = 2;

Returns
Type Description
ProtocolStringList

A list containing the includeOrgIds.

getIncludeProjectIds(int index)

public String getIncludeProjectIds(int index)

The list of project IDs to search within. To learn more about the distinction between project names/IDs/numbers, go to https://cloud.google.com/docs/overview/#projects.

repeated string include_project_ids = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The includeProjectIds at the given index.

getIncludeProjectIdsBytes(int index)

public ByteString getIncludeProjectIdsBytes(int index)

The list of project IDs to search within. To learn more about the distinction between project names/IDs/numbers, go to https://cloud.google.com/docs/overview/#projects.

repeated string include_project_ids = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the includeProjectIds at the given index.

getIncludeProjectIdsCount()

public int getIncludeProjectIdsCount()

The list of project IDs to search within. To learn more about the distinction between project names/IDs/numbers, go to https://cloud.google.com/docs/overview/#projects.

repeated string include_project_ids = 3;

Returns
Type Description
int

The count of includeProjectIds.

getIncludeProjectIdsList()

public ProtocolStringList getIncludeProjectIdsList()

The list of project IDs to search within. To learn more about the distinction between project names/IDs/numbers, go to https://cloud.google.com/docs/overview/#projects.

repeated string include_project_ids = 3;

Returns
Type Description
ProtocolStringList

A list containing the includeProjectIds.

getRestrictedLocations(int index)

public String getRestrictedLocations(int index)

Optional. The list of locations to search within.

  1. If empty, search will be performed in all locations;
  2. If any of the locations are NOT in the valid locations list, error will be returned;
  3. Otherwise, search only the given locations for matching results. Typical usage is to leave this field empty. When a location is unreachable as returned in the SearchCatalogResponse.unreachable field, users can repeat the search request with this parameter set to get additional information on the error.

    Valid locations:

  4. asia-east1
  5. asia-east2
  6. asia-northeast1
  7. asia-northeast2
  8. asia-northeast3
  9. asia-south1
  10. asia-southeast1
  11. australia-southeast1
  12. eu
  13. europe-north1
  14. europe-west1
  15. europe-west2
  16. europe-west3
  17. europe-west4
  18. europe-west6
  19. global
  20. northamerica-northeast1
  21. southamerica-east1
  22. us
  23. us-central1
  24. us-east1
  25. us-east4
  26. us-west1
  27. us-west2

repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The restrictedLocations at the given index.

getRestrictedLocationsBytes(int index)

public ByteString getRestrictedLocationsBytes(int index)

Optional. The list of locations to search within.

  1. If empty, search will be performed in all locations;
  2. If any of the locations are NOT in the valid locations list, error will be returned;
  3. Otherwise, search only the given locations for matching results. Typical usage is to leave this field empty. When a location is unreachable as returned in the SearchCatalogResponse.unreachable field, users can repeat the search request with this parameter set to get additional information on the error.

    Valid locations:

  4. asia-east1
  5. asia-east2
  6. asia-northeast1
  7. asia-northeast2
  8. asia-northeast3
  9. asia-south1
  10. asia-southeast1
  11. australia-southeast1
  12. eu
  13. europe-north1
  14. europe-west1
  15. europe-west2
  16. europe-west3
  17. europe-west4
  18. europe-west6
  19. global
  20. northamerica-northeast1
  21. southamerica-east1
  22. us
  23. us-central1
  24. us-east1
  25. us-east4
  26. us-west1
  27. us-west2

repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the restrictedLocations at the given index.

getRestrictedLocationsCount()

public int getRestrictedLocationsCount()

Optional. The list of locations to search within.

  1. If empty, search will be performed in all locations;
  2. If any of the locations are NOT in the valid locations list, error will be returned;
  3. Otherwise, search only the given locations for matching results. Typical usage is to leave this field empty. When a location is unreachable as returned in the SearchCatalogResponse.unreachable field, users can repeat the search request with this parameter set to get additional information on the error.

    Valid locations:

  4. asia-east1
  5. asia-east2
  6. asia-northeast1
  7. asia-northeast2
  8. asia-northeast3
  9. asia-south1
  10. asia-southeast1
  11. australia-southeast1
  12. eu
  13. europe-north1
  14. europe-west1
  15. europe-west2
  16. europe-west3
  17. europe-west4
  18. europe-west6
  19. global
  20. northamerica-northeast1
  21. southamerica-east1
  22. us
  23. us-central1
  24. us-east1
  25. us-east4
  26. us-west1
  27. us-west2

repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of restrictedLocations.

getRestrictedLocationsList()

public ProtocolStringList getRestrictedLocationsList()

Optional. The list of locations to search within.

  1. If empty, search will be performed in all locations;
  2. If any of the locations are NOT in the valid locations list, error will be returned;
  3. Otherwise, search only the given locations for matching results. Typical usage is to leave this field empty. When a location is unreachable as returned in the SearchCatalogResponse.unreachable field, users can repeat the search request with this parameter set to get additional information on the error.

    Valid locations:

  4. asia-east1
  5. asia-east2
  6. asia-northeast1
  7. asia-northeast2
  8. asia-northeast3
  9. asia-south1
  10. asia-southeast1
  11. australia-southeast1
  12. eu
  13. europe-north1
  14. europe-west1
  15. europe-west2
  16. europe-west3
  17. europe-west4
  18. europe-west6
  19. global
  20. northamerica-northeast1
  21. southamerica-east1
  22. us
  23. us-central1
  24. us-east1
  25. us-east4
  26. us-west1
  27. us-west2

repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the restrictedLocations.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SearchCatalogRequest.Scope other)

public SearchCatalogRequest.Scope.Builder mergeFrom(SearchCatalogRequest.Scope other)
Parameter
Name Description
other SearchCatalogRequest.Scope
Returns
Type Description
SearchCatalogRequest.Scope.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SearchCatalogRequest.Scope.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchCatalogRequest.Scope.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SearchCatalogRequest.Scope.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SearchCatalogRequest.Scope.Builder
Overrides

setIncludeGcpPublicDatasets(boolean value)

public SearchCatalogRequest.Scope.Builder setIncludeGcpPublicDatasets(boolean value)

If true, include Google Cloud public datasets in the search results. Info on Google Cloud public datasets is available at https://cloud.google.com/public-datasets/. By default, Google Cloud public datasets are excluded.

bool include_gcp_public_datasets = 7;

Parameter
Name Description
value boolean

The includeGcpPublicDatasets to set.

Returns
Type Description
SearchCatalogRequest.Scope.Builder

This builder for chaining.

setIncludeOrgIds(int index, String value)

public SearchCatalogRequest.Scope.Builder setIncludeOrgIds(int index, String value)

The list of organization IDs to search within. To find your organization ID, follow instructions in https://cloud.google.com/resource-manager/docs/creating-managing-organization.

repeated string include_org_ids = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The includeOrgIds to set.

Returns
Type Description
SearchCatalogRequest.Scope.Builder

This builder for chaining.

setIncludeProjectIds(int index, String value)

public SearchCatalogRequest.Scope.Builder setIncludeProjectIds(int index, String value)

The list of project IDs to search within. To learn more about the distinction between project names/IDs/numbers, go to https://cloud.google.com/docs/overview/#projects.

repeated string include_project_ids = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The includeProjectIds to set.

Returns
Type Description
SearchCatalogRequest.Scope.Builder

This builder for chaining.

setRestrictedLocations(int index, String value)

public SearchCatalogRequest.Scope.Builder setRestrictedLocations(int index, String value)

Optional. The list of locations to search within.

  1. If empty, search will be performed in all locations;
  2. If any of the locations are NOT in the valid locations list, error will be returned;
  3. Otherwise, search only the given locations for matching results. Typical usage is to leave this field empty. When a location is unreachable as returned in the SearchCatalogResponse.unreachable field, users can repeat the search request with this parameter set to get additional information on the error.

    Valid locations:

  4. asia-east1
  5. asia-east2
  6. asia-northeast1
  7. asia-northeast2
  8. asia-northeast3
  9. asia-south1
  10. asia-southeast1
  11. australia-southeast1
  12. eu
  13. europe-north1
  14. europe-west1
  15. europe-west2
  16. europe-west3
  17. europe-west4
  18. europe-west6
  19. global
  20. northamerica-northeast1
  21. southamerica-east1
  22. us
  23. us-central1
  24. us-east1
  25. us-east4
  26. us-west1
  27. us-west2

repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The restrictedLocations to set.

Returns
Type Description
SearchCatalogRequest.Scope.Builder

This builder for chaining.