- 1.54.0 (latest)
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.5
- 1.8.4
- 1.7.2
- 1.6.2
- 1.5.4
public class DataCatalogClient implements BackgroundResource
Service Description: Data Catalog API service allows clients to discover, understand, and manage their data.
This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
String entryGroupId = "entryGroupId1228924712";
EntryGroup entryGroup = EntryGroup.newBuilder().build();
EntryGroup response = dataCatalogClient.createEntryGroup(parent, entryGroupId, entryGroup);
}
Note: close() needs to be called on the DataCatalogClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().
The surface of this class includes several types of Java methods for each of the API's methods:
- A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
- A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
- A "callable" method. This type of method takes no parameters and returns an immutable API callable object, which can be used to initiate calls to the service.
See the individual methods for example code.
Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.
This class can be customized by passing in a custom instance of DataCatalogSettings to create(). For example:
To customize credentials:
DataCatalogSettings dataCatalogSettings =
DataCatalogSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
DataCatalogClient dataCatalogClient = DataCatalogClient.create(dataCatalogSettings);
To customize the endpoint:
DataCatalogSettings dataCatalogSettings =
DataCatalogSettings.newBuilder().setEndpoint(myEndpoint).build();
DataCatalogClient dataCatalogClient = DataCatalogClient.create(dataCatalogSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
Implements
BackgroundResourceStatic Methods
create()
public static final DataCatalogClient create()
Constructs an instance of DataCatalogClient with default settings.
Type | Description |
DataCatalogClient |
Type | Description |
IOException |
create(DataCatalogSettings settings)
public static final DataCatalogClient create(DataCatalogSettings settings)
Constructs an instance of DataCatalogClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.
Name | Description |
settings | DataCatalogSettings |
Type | Description |
DataCatalogClient |
Type | Description |
IOException |
create(DataCatalogStub stub)
public static final DataCatalogClient create(DataCatalogStub stub)
Constructs an instance of DataCatalogClient, using the given stub for making calls. This is for advanced usage - prefer using create(DataCatalogSettings).
Name | Description |
stub | DataCatalogStub |
Type | Description |
DataCatalogClient |
Constructors
DataCatalogClient(DataCatalogSettings settings)
protected DataCatalogClient(DataCatalogSettings settings)
Constructs an instance of DataCatalogClient, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.
Name | Description |
settings | DataCatalogSettings |
DataCatalogClient(DataCatalogStub stub)
protected DataCatalogClient(DataCatalogStub stub)
Name | Description |
stub | DataCatalogStub |
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Name | Description |
duration | long |
unit | TimeUnit |
Type | Description |
boolean |
Type | Description |
InterruptedException |
close()
public final void close()
createEntry(CreateEntryRequest request)
public final Entry createEntry(CreateEntryRequest request)
Creates an entry. Only entries of 'FILESET' type or user-specified type can be created.
Users should enable the Data Catalog API in the project identified by the parent
parameter
(see Data Catalog Resource Project for more information).
A maximum of 100,000 entries may be created per entry group.
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
CreateEntryRequest request =
CreateEntryRequest.newBuilder()
.setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
.setEntryId("entryId-1591558867")
.setEntry(Entry.newBuilder().build())
.build();
Entry response = dataCatalogClient.createEntry(request);
}
Name | Description |
request | CreateEntryRequest The request object containing all of the parameters for the API call. |
Type | Description |
Entry |
createEntry(EntryGroupName parent, String entryId, Entry entry)
public final Entry createEntry(EntryGroupName parent, String entryId, Entry entry)
Creates an entry. Only entries of 'FILESET' type or user-specified type can be created.
Users should enable the Data Catalog API in the project identified by the parent
parameter
(see Data Catalog Resource Project for more information).
A maximum of 100,000 entries may be created per entry group.
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
EntryGroupName parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]");
String entryId = "entryId-1591558867";
Entry entry = Entry.newBuilder().build();
Entry response = dataCatalogClient.createEntry(parent, entryId, entry);
}
Name | Description |
parent | EntryGroupName Required. The name of the entry group this entry is in. Example:
Note that this Entry and its child resources may not actually be stored in the location in this name. |
entryId | String Required. The id of the entry to create. |
entry | Entry Required. The entry to create. |
Type | Description |
Entry |
createEntry(String parent, String entryId, Entry entry)
public final Entry createEntry(String parent, String entryId, Entry entry)
Creates an entry. Only entries of 'FILESET' type or user-specified type can be created.
Users should enable the Data Catalog API in the project identified by the parent
parameter
(see Data Catalog Resource Project for more information).
A maximum of 100,000 entries may be created per entry group.
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
String parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString();
String entryId = "entryId-1591558867";
Entry entry = Entry.newBuilder().build();
Entry response = dataCatalogClient.createEntry(parent, entryId, entry);
}
Name | Description |
parent | String Required. The name of the entry group this entry is in. Example:
Note that this Entry and its child resources may not actually be stored in the location in this name. |
entryId | String Required. The id of the entry to create. |
entry | Entry Required. The entry to create. |
Type | Description |
Entry |
createEntryCallable()
public final UnaryCallable<CreateEntryRequest,Entry> createEntryCallable()
Creates an entry. Only entries of 'FILESET' type or user-specified type can be created.
Users should enable the Data Catalog API in the project identified by the parent
parameter
(see Data Catalog Resource Project for more information).
A maximum of 100,000 entries may be created per entry group.
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
CreateEntryRequest request =
CreateEntryRequest.newBuilder()
.setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
.setEntryId("entryId-1591558867")
.setEntry(Entry.newBuilder().build())
.build();
ApiFuture<Entry> future = dataCatalogClient.createEntryCallable().futureCall(request);
// Do something.
Entry response = future.get();
}
Type | Description |
UnaryCallable<CreateEntryRequest,Entry> |
createEntryGroup(CreateEntryGroupRequest request)
public final EntryGroup createEntryGroup(CreateEntryGroupRequest request)
A maximum of 10,000 entry groups may be created per organization across all locations.
Users should enable the Data Catalog API in the project identified by the parent
parameter
(see Data Catalog Resource Project for more information).
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
CreateEntryGroupRequest request =
CreateEntryGroupRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setEntryGroupId("entryGroupId1228924712")
.setEntryGroup(EntryGroup.newBuilder().build())
.build();
EntryGroup response = dataCatalogClient.createEntryGroup(request);
}
Name | Description |
request | CreateEntryGroupRequest The request object containing all of the parameters for the API call. |
Type | Description |
EntryGroup |
createEntryGroup(LocationName parent, String entryGroupId, EntryGroup entryGroup)
public final EntryGroup createEntryGroup(LocationName parent, String entryGroupId, EntryGroup entryGroup)
A maximum of 10,000 entry groups may be created per organization across all locations.
Users should enable the Data Catalog API in the project identified by the parent
parameter
(see Data Catalog Resource Project for more information).
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
String entryGroupId = "entryGroupId1228924712";
EntryGroup entryGroup = EntryGroup.newBuilder().build();
EntryGroup response = dataCatalogClient.createEntryGroup(parent, entryGroupId, entryGroup);
}
Name | Description |
parent | LocationName Required. The name of the project this entry group is in. Example:
Note that this EntryGroup and its child resources may not actually be stored in the location in this name. |
entryGroupId | String Required. The id of the entry group to create. The id must begin with a letter or underscore, contain only English letters, numbers and underscores, and be at most 64 characters. |
entryGroup | EntryGroup The entry group to create. Defaults to an empty entry group. |
Type | Description |
EntryGroup |
createEntryGroup(String parent, String entryGroupId, EntryGroup entryGroup)
public final EntryGroup createEntryGroup(String parent, String entryGroupId, EntryGroup entryGroup)
A maximum of 10,000 entry groups may be created per organization across all locations.
Users should enable the Data Catalog API in the project identified by the parent
parameter
(see Data Catalog Resource Project for more information).
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
String entryGroupId = "entryGroupId1228924712";
EntryGroup entryGroup = EntryGroup.newBuilder().build();
EntryGroup response = dataCatalogClient.createEntryGroup(parent, entryGroupId, entryGroup);
}
Name | Description |
parent | String Required. The name of the project this entry group is in. Example:
Note that this EntryGroup and its child resources may not actually be stored in the location in this name. |
entryGroupId | String Required. The id of the entry group to create. The id must begin with a letter or underscore, contain only English letters, numbers and underscores, and be at most 64 characters. |
entryGroup | EntryGroup The entry group to create. Defaults to an empty entry group. |
Type | Description |
EntryGroup |
createEntryGroupCallable()
public final UnaryCallable<CreateEntryGroupRequest,EntryGroup> createEntryGroupCallable()
A maximum of 10,000 entry groups may be created per organization across all locations.
Users should enable the Data Catalog API in the project identified by the parent
parameter
(see Data Catalog Resource Project for more information).
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
CreateEntryGroupRequest request =
CreateEntryGroupRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setEntryGroupId("entryGroupId1228924712")
.setEntryGroup(EntryGroup.newBuilder().build())
.build();
ApiFuture<EntryGroup> future =
dataCatalogClient.createEntryGroupCallable().futureCall(request);
// Do something.
EntryGroup response = future.get();
}
Type | Description |
UnaryCallable<CreateEntryGroupRequest,EntryGroup> |
createTag(CreateTagRequest request)
public final Tag createTag(CreateTagRequest request)
Creates a tag on an Entry. Note: The project
identified by the parent
parameter for the
tag
and the tag
template
used to create the tag must be from the same organization.
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
CreateTagRequest request =
CreateTagRequest.newBuilder()
.setParent(
TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]")
.toString())
.setTag(Tag.newBuilder().build())
.build();
Tag response = dataCatalogClient.createTag(request);
}
Name | Description |
request | CreateTagRequest The request object containing all of the parameters for the API call. |
Type | Description |
Tag |
createTag(TagName parent, Tag tag)
public final Tag createTag(TagName parent, Tag tag)
Creates a tag on an Entry. Note: The project
identified by the parent
parameter for the
tag
and the tag
template
used to create the tag must be from the same organization.
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
TagName parent = TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]");
Tag tag = Tag.newBuilder().build();
Tag response = dataCatalogClient.createTag(parent, tag);
}
Name | Description |
parent | TagName Required. The name of the resource to attach this tag to. Tags can be attached to Entries. Example:
Note that this Tag and its child resources may not actually be stored in the location in this name. |
tag | Tag Required. The tag to create. |
Type | Description |
Tag |
createTag(String parent, Tag tag)
public final Tag createTag(String parent, Tag tag)
Creates a tag on an Entry. Note: The project
identified by the parent
parameter for the
tag
and the tag
template
used to create the tag must be from the same organization.
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
String parent =
TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]").toString();
Tag tag = Tag.newBuilder().build();
Tag response = dataCatalogClient.createTag(parent, tag);
}
Name | Description |
parent | String Required. The name of the resource to attach this tag to. Tags can be attached to Entries. Example:
Note that this Tag and its child resources may not actually be stored in the location in this name. |
tag | Tag Required. The tag to create. |
Type | Description |
Tag |
createTagCallable()
public final UnaryCallable<CreateTagRequest,Tag> createTagCallable()
Creates a tag on an Entry. Note: The project
identified by the parent
parameter for the
tag
and the tag
template
used to create the tag must be from the same organization.
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
CreateTagRequest request =
CreateTagRequest.newBuilder()
.setParent(
TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]")
.toString())
.setTag(Tag.newBuilder().build())
.build();
ApiFuture<Tag> future = dataCatalogClient.createTagCallable().futureCall(request);
// Do something.
Tag response = future.get();
}
Type | Description |
UnaryCallable<CreateTagRequest,Tag> |
createTagTemplate(CreateTagTemplateRequest request)
public final TagTemplate createTagTemplate(CreateTagTemplateRequest request)
Creates a tag template. The user should enable the Data Catalog API in the project identified
by the parent
parameter (see Data Catalog Resource
Project for more
information).
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
CreateTagTemplateRequest request =
CreateTagTemplateRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setTagTemplateId("tagTemplateId-1438776721")
.setTagTemplate(TagTemplate.newBuilder().build())
.build();
TagTemplate response = dataCatalogClient.createTagTemplate(request);
}
Name | Description |
request | CreateTagTemplateRequest The request object containing all of the parameters for the API call. |
Type | Description |
TagTemplate |
createTagTemplate(LocationName parent, String tagTemplateId, TagTemplate tagTemplate)
public final TagTemplate createTagTemplate(LocationName parent, String tagTemplateId, TagTemplate tagTemplate)
Creates a tag template. The user should enable the Data Catalog API in the project identified
by the parent
parameter (see Data Catalog Resource
Project for more
information).
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
String tagTemplateId = "tagTemplateId-1438776721";
TagTemplate tagTemplate = TagTemplate.newBuilder().build();
TagTemplate response =
dataCatalogClient.createTagTemplate(parent, tagTemplateId, tagTemplate);
}
Name | Description |
parent | LocationName Required. The name of the project and the template location [region](https://cloud.google.com/data-catalog/docs/concepts/regions. Example:
|
tagTemplateId | String Required. The id of the tag template to create. |
tagTemplate | TagTemplate Required. The tag template to create. |
Type | Description |
TagTemplate |
createTagTemplate(String parent, String tagTemplateId, TagTemplate tagTemplate)
public final TagTemplate createTagTemplate(String parent, String tagTemplateId, TagTemplate tagTemplate)
Creates a tag template. The user should enable the Data Catalog API in the project identified
by the parent
parameter (see Data Catalog Resource
Project for more
information).
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
String tagTemplateId = "tagTemplateId-1438776721";
TagTemplate tagTemplate = TagTemplate.newBuilder().build();
TagTemplate response =
dataCatalogClient.createTagTemplate(parent, tagTemplateId, tagTemplate);
}
Name | Description |
parent | String Required. The name of the project and the template location [region](https://cloud.google.com/data-catalog/docs/concepts/regions. Example:
|
tagTemplateId | String Required. The id of the tag template to create. |
tagTemplate | TagTemplate Required. The tag template to create. |
Type | Description |
TagTemplate |
createTagTemplateCallable()
public final UnaryCallable<CreateTagTemplateRequest,TagTemplate> createTagTemplateCallable()
Creates a tag template. The user should enable the Data Catalog API in the project identified
by the parent
parameter (see Data Catalog Resource
Project for more
information).
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
CreateTagTemplateRequest request =
CreateTagTemplateRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setTagTemplateId("tagTemplateId-1438776721")
.setTagTemplate(TagTemplate.newBuilder().build())
.build();
ApiFuture<TagTemplate> future =
dataCatalogClient.createTagTemplateCallable().futureCall(request);
// Do something.
TagTemplate response = future.get();
}
Type | Description |
UnaryCallable<CreateTagTemplateRequest,TagTemplate> |
createTagTemplateField(CreateTagTemplateFieldRequest request)
public final TagTemplateField createTagTemplateField(CreateTagTemplateFieldRequest request)
Creates a field in a tag template. The user should enable the Data Catalog API in the project
identified by the parent
parameter (see Data Catalog Resource
Project for more
information).
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
CreateTagTemplateFieldRequest request =
CreateTagTemplateFieldRequest.newBuilder()
.setParent(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString())
.setTagTemplateFieldId("tagTemplateFieldId-1556835615")
.setTagTemplateField(TagTemplateField.newBuilder().build())
.build();
TagTemplateField response = dataCatalogClient.createTagTemplateField(request);
}
Name | Description |
request | CreateTagTemplateFieldRequest The request object containing all of the parameters for the API call. |
Type | Description |
TagTemplateField |
createTagTemplateField(TagTemplateName parent, String tagTemplateFieldId, TagTemplateField tagTemplateField)
public final TagTemplateField createTagTemplateField(TagTemplateName parent, String tagTemplateFieldId, TagTemplateField tagTemplateField)
Creates a field in a tag template. The user should enable the Data Catalog API in the project
identified by the parent
parameter (see Data Catalog Resource
Project for more
information).
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
TagTemplateName parent = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]");
String tagTemplateFieldId = "tagTemplateFieldId-1556835615";
TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build();
TagTemplateField response =
dataCatalogClient.createTagTemplateField(parent, tagTemplateFieldId, tagTemplateField);
}
Name | Description |
parent | TagTemplateName Required. The name of the project and the template location region. Example:
|
tagTemplateFieldId | String Required. The ID of the tag template field to create. Field ids can contain letters (both uppercase and lowercase), numbers (0-9), underscores (_) and dashes (-). Field IDs must be at least 1 character long and at most 128 characters long. Field IDs must also be unique within their template. |
tagTemplateField | TagTemplateField Required. The tag template field to create. |
Type | Description |
TagTemplateField |
createTagTemplateField(String parent, String tagTemplateFieldId, TagTemplateField tagTemplateField)
public final TagTemplateField createTagTemplateField(String parent, String tagTemplateFieldId, TagTemplateField tagTemplateField)
Creates a field in a tag template. The user should enable the Data Catalog API in the project
identified by the parent
parameter (see Data Catalog Resource
Project for more
information).
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
String parent = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString();
String tagTemplateFieldId = "tagTemplateFieldId-1556835615";
TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build();
TagTemplateField response =
dataCatalogClient.createTagTemplateField(parent, tagTemplateFieldId, tagTemplateField);
}
Name | Description |
parent | String Required. The name of the project and the template location region. Example:
|
tagTemplateFieldId | String Required. The ID of the tag template field to create. Field ids can contain letters (both uppercase and lowercase), numbers (0-9), underscores (_) and dashes (-). Field IDs must be at least 1 character long and at most 128 characters long. Field IDs must also be unique within their template. |
tagTemplateField | TagTemplateField Required. The tag template field to create. |
Type | Description |
TagTemplateField |
createTagTemplateFieldCallable()
public final UnaryCallable<CreateTagTemplateFieldRequest,TagTemplateField> createTagTemplateFieldCallable()
Creates a field in a tag template. The user should enable the Data Catalog API in the project
identified by the parent
parameter (see Data Catalog Resource
Project for more
information).
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
CreateTagTemplateFieldRequest request =
CreateTagTemplateFieldRequest.newBuilder()
.setParent(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString())
.setTagTemplateFieldId("tagTemplateFieldId-1556835615")
.setTagTemplateField(TagTemplateField.newBuilder().build())
.build();
ApiFuture<TagTemplateField> future =
dataCatalogClient.createTagTemplateFieldCallable().futureCall(request);
// Do something.
TagTemplateField response = future.get();
}
Type | Description |
UnaryCallable<CreateTagTemplateFieldRequest,TagTemplateField> |
deleteEntry(DeleteEntryRequest request)
public final void deleteEntry(DeleteEntryRequest request)
Deletes an existing entry. Only entries created through
CreateEntry method can be deleted.
Users should enable the Data Catalog API in the project identified by the name
parameter (see
Data Catalog Resource Project for more information).
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
DeleteEntryRequest request =
DeleteEntryRequest.newBuilder()
.setName(
EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
.build();
dataCatalogClient.deleteEntry(request);
}
Name | Description |
request | DeleteEntryRequest The request object containing all of the parameters for the API call. |
deleteEntry(EntryName name)
public final void deleteEntry(EntryName name)
Deletes an existing entry. Only entries created through
CreateEntry method can be deleted.
Users should enable the Data Catalog API in the project identified by the name
parameter (see
Data Catalog Resource Project for more information).
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]");
dataCatalogClient.deleteEntry(name);
}
Name | Description |
name | EntryName Required. The name of the entry. Example:
|
deleteEntry(String name)
public final void deleteEntry(String name)
Deletes an existing entry. Only entries created through
CreateEntry method can be deleted.
Users should enable the Data Catalog API in the project identified by the name
parameter (see
Data Catalog Resource Project for more information).
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
String name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString();
dataCatalogClient.deleteEntry(name);
}
Name | Description |
name | String Required. The name of the entry. Example:
|
deleteEntryCallable()
public final UnaryCallable<DeleteEntryRequest,Empty> deleteEntryCallable()
Deletes an existing entry. Only entries created through
CreateEntry method can be deleted.
Users should enable the Data Catalog API in the project identified by the name
parameter (see
Data Catalog Resource Project for more information).
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
DeleteEntryRequest request =
DeleteEntryRequest.newBuilder()
.setName(
EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
.build();
ApiFuture<Empty> future = dataCatalogClient.deleteEntryCallable().futureCall(request);
// Do something.
future.get();
}
Type | Description |
UnaryCallable<DeleteEntryRequest,Empty> |
deleteEntryGroup(DeleteEntryGroupRequest request)
public final void deleteEntryGroup(DeleteEntryGroupRequest request)
Deletes an EntryGroup. Only entry groups that do not contain entries can be deleted. Users
should enable the Data Catalog API in the project identified by the name
parameter (see Data
Catalog Resource Project for more information).
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
DeleteEntryGroupRequest request =
DeleteEntryGroupRequest.newBuilder()
.setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
.setForce(true)
.build();
dataCatalogClient.deleteEntryGroup(request);
}
Name | Description |
request | DeleteEntryGroupRequest The request object containing all of the parameters for the API call. |
deleteEntryGroup(EntryGroupName name)
public final void deleteEntryGroup(EntryGroupName name)
Deletes an EntryGroup. Only entry groups that do not contain entries can be deleted. Users
should enable the Data Catalog API in the project identified by the name
parameter (see Data
Catalog Resource Project for more information).
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]");
dataCatalogClient.deleteEntryGroup(name);
}
Name | Description |
name | EntryGroupName Required. The name of the entry group. For example,
|
deleteEntryGroup(String name)
public final void deleteEntryGroup(String name)
Deletes an EntryGroup. Only entry groups that do not contain entries can be deleted. Users
should enable the Data Catalog API in the project identified by the name
parameter (see Data
Catalog Resource Project for more information).
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
String name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString();
dataCatalogClient.deleteEntryGroup(name);
}
Name | Description |
name | String Required. The name of the entry group. For example,
|
deleteEntryGroupCallable()
public final UnaryCallable<DeleteEntryGroupRequest,Empty> deleteEntryGroupCallable()
Deletes an EntryGroup. Only entry groups that do not contain entries can be deleted. Users
should enable the Data Catalog API in the project identified by the name
parameter (see Data
Catalog Resource Project for more information).
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
DeleteEntryGroupRequest request =
DeleteEntryGroupRequest.newBuilder()
.setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
.setForce(true)
.build();
ApiFuture<Empty> future = dataCatalogClient.deleteEntryGroupCallable().futureCall(request);
// Do something.
future.get();
}
Type | Description |
UnaryCallable<DeleteEntryGroupRequest,Empty> |
deleteTag(DeleteTagRequest request)
public final void deleteTag(DeleteTagRequest request)
Deletes a tag.
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
DeleteTagRequest request =
DeleteTagRequest.newBuilder()
.setName(
EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
.build();
dataCatalogClient.deleteTag(request);
}
Name | Description |
request | DeleteTagRequest The request object containing all of the parameters for the API call. |
deleteTag(EntryName name)
public final void deleteTag(EntryName name)
Deletes a tag.
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]");
dataCatalogClient.deleteTag(name);
}
Name | Description |
name | EntryName Required. The name of the tag to delete. Example:
|
deleteTag(String name)
public final void deleteTag(String name)
Deletes a tag.
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
String name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString();
dataCatalogClient.deleteTag(name);
}
Name | Description |
name | String Required. The name of the tag to delete. Example:
|
deleteTagCallable()
public final UnaryCallable<DeleteTagRequest,Empty> deleteTagCallable()
Deletes a tag.
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
DeleteTagRequest request =
DeleteTagRequest.newBuilder()
.setName(
EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
.build();
ApiFuture<Empty> future = dataCatalogClient.deleteTagCallable().futureCall(request);
// Do something.
future.get();
}
Type | Description |
UnaryCallable<DeleteTagRequest,Empty> |
deleteTagTemplate(DeleteTagTemplateRequest request)
public final void deleteTagTemplate(DeleteTagTemplateRequest request)
Deletes a tag template and all tags using the template. Users should enable the Data Catalog
API in the project identified by the name
parameter (see Data Catalog Resource Project for more information).
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
DeleteTagTemplateRequest request =
DeleteTagTemplateRequest.newBuilder()
.setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString())
.setForce(true)
.build();
dataCatalogClient.deleteTagTemplate(request);
}
Name | Description |
request | DeleteTagTemplateRequest The request object containing all of the parameters for the API call. |
deleteTagTemplate(TagTemplateName name, boolean force)
public final void deleteTagTemplate(TagTemplateName name, boolean force)
Deletes a tag template and all tags using the template. Users should enable the Data Catalog
API in the project identified by the name
parameter (see Data Catalog Resource Project for more information).
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
TagTemplateName name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]");
boolean force = true;
dataCatalogClient.deleteTagTemplate(name, force);
}
Name | Description |
name | TagTemplateName Required. The name of the tag template to delete. Example:
|
force | boolean Required. Currently, this field must always be set to |
deleteTagTemplate(String name, boolean force)
public final void deleteTagTemplate(String name, boolean force)
Deletes a tag template and all tags using the template. Users should enable the Data Catalog
API in the project identified by the name
parameter (see Data Catalog Resource Project for more information).
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
String name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString();
boolean force = true;
dataCatalogClient.deleteTagTemplate(name, force);
}
Name | Description |
name | String Required. The name of the tag template to delete. Example:
|
force | boolean Required. Currently, this field must always be set to |
deleteTagTemplateCallable()
public final UnaryCallable<DeleteTagTemplateRequest,Empty> deleteTagTemplateCallable()
Deletes a tag template and all tags using the template. Users should enable the Data Catalog
API in the project identified by the name
parameter (see Data Catalog Resource Project for more information).
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
DeleteTagTemplateRequest request =
DeleteTagTemplateRequest.newBuilder()
.setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString())
.setForce(true)
.build();
ApiFuture<Empty> future = dataCatalogClient.deleteTagTemplateCallable().futureCall(request);
// Do something.
future.get();
}
Type | Description |
UnaryCallable<DeleteTagTemplateRequest,Empty> |
deleteTagTemplateField(DeleteTagTemplateFieldRequest request)
public final void deleteTagTemplateField(DeleteTagTemplateFieldRequest request)
Deletes a field in a tag template and all uses of that field. Users should enable the Data
Catalog API in the project identified by the name
parameter (see Data Catalog Resource
Project for more
information).
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
DeleteTagTemplateFieldRequest request =
DeleteTagTemplateFieldRequest.newBuilder()
.setName(
TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]")
.toString())
.setForce(true)
.build();
dataCatalogClient.deleteTagTemplateField(request);
}
Name | Description |
request | DeleteTagTemplateFieldRequest The request object containing all of the parameters for the API call. |
deleteTagTemplateField(TagTemplateFieldName name, boolean force)
public final void deleteTagTemplateField(TagTemplateFieldName name, boolean force)
Deletes a field in a tag template and all uses of that field. Users should enable the Data
Catalog API in the project identified by the name
parameter (see Data Catalog Resource
Project for more
information).
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
TagTemplateFieldName name =
TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]");
boolean force = true;
dataCatalogClient.deleteTagTemplateField(name, force);
}
Name | Description |
name | TagTemplateFieldName Required. The name of the tag template field to delete. Example:
|
force | boolean Required. Currently, this field must always be set to |
deleteTagTemplateField(String name, boolean force)
public final void deleteTagTemplateField(String name, boolean force)
Deletes a field in a tag template and all uses of that field. Users should enable the Data
Catalog API in the project identified by the name
parameter (see Data Catalog Resource
Project for more
information).
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
String name =
TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]")
.toString();
boolean force = true;
dataCatalogClient.deleteTagTemplateField(name, force);
}
Name | Description |
name | String Required. The name of the tag template field to delete. Example:
|
force | boolean Required. Currently, this field must always be set to |
deleteTagTemplateFieldCallable()
public final UnaryCallable<DeleteTagTemplateFieldRequest,Empty> deleteTagTemplateFieldCallable()
Deletes a field in a tag template and all uses of that field. Users should enable the Data
Catalog API in the project identified by the name
parameter (see Data Catalog Resource
Project for more
information).
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
DeleteTagTemplateFieldRequest request =
DeleteTagTemplateFieldRequest.newBuilder()
.setName(
TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]")
.toString())
.setForce(true)
.build();
ApiFuture<Empty> future =
dataCatalogClient.deleteTagTemplateFieldCallable().futureCall(request);
// Do something.
future.get();
}
Type | Description |
UnaryCallable<DeleteTagTemplateFieldRequest,Empty> |
getEntry(EntryName name)
public final Entry getEntry(EntryName name)
Gets an entry.
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]");
Entry response = dataCatalogClient.getEntry(name);
}
Name | Description |
name | EntryName Required. The name of the entry. Example:
|
Type | Description |
Entry |
getEntry(GetEntryRequest request)
public final Entry getEntry(GetEntryRequest request)
Gets an entry.
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
GetEntryRequest request =
GetEntryRequest.newBuilder()
.setName(
EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
.build();
Entry response = dataCatalogClient.getEntry(request);
}
Name | Description |
request | GetEntryRequest The request object containing all of the parameters for the API call. |
Type | Description |
Entry |
getEntry(String name)
public final Entry getEntry(String name)
Gets an entry.
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
String name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString();
Entry response = dataCatalogClient.getEntry(name);
}
Name | Description |
name | String Required. The name of the entry. Example:
|
Type | Description |
Entry |
getEntryCallable()
public final UnaryCallable<GetEntryRequest,Entry> getEntryCallable()
Gets an entry.
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
GetEntryRequest request =
GetEntryRequest.newBuilder()
.setName(
EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
.build();
ApiFuture<Entry> future = dataCatalogClient.getEntryCallable().futureCall(request);
// Do something.
Entry response = future.get();
}
Type | Description |
UnaryCallable<GetEntryRequest,Entry> |
getEntryGroup(EntryGroupName name)
public final EntryGroup getEntryGroup(EntryGroupName name)
Gets an EntryGroup.
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]");
EntryGroup response = dataCatalogClient.getEntryGroup(name);
}
Name | Description |
name | EntryGroupName Required. The name of the entry group. For example,
|
Type | Description |
EntryGroup |
getEntryGroup(EntryGroupName name, FieldMask readMask)
public final EntryGroup getEntryGroup(EntryGroupName name, FieldMask readMask)
Gets an EntryGroup.
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]");
FieldMask readMask = FieldMask.newBuilder().build();
EntryGroup response = dataCatalogClient.getEntryGroup(name, readMask);
}
Name | Description |
name | EntryGroupName Required. The name of the entry group. For example,
|
readMask | FieldMask The fields to return. If not set or empty, all fields are returned. |
Type | Description |
EntryGroup |
getEntryGroup(GetEntryGroupRequest request)
public final EntryGroup getEntryGroup(GetEntryGroupRequest request)
Gets an EntryGroup.
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
GetEntryGroupRequest request =
GetEntryGroupRequest.newBuilder()
.setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
.setReadMask(FieldMask.newBuilder().build())
.build();
EntryGroup response = dataCatalogClient.getEntryGroup(request);
}
Name | Description |
request | GetEntryGroupRequest The request object containing all of the parameters for the API call. |
Type | Description |
EntryGroup |
getEntryGroup(String name)
public final EntryGroup getEntryGroup(String name)
Gets an EntryGroup.
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
String name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString();
EntryGroup response = dataCatalogClient.getEntryGroup(name);
}
Name | Description |
name | String Required. The name of the entry group. For example,
|
Type | Description |
EntryGroup |
getEntryGroup(String name, FieldMask readMask)
public final EntryGroup getEntryGroup(String name, FieldMask readMask)
Gets an EntryGroup.
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
String name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString();
FieldMask readMask = FieldMask.newBuilder().build();
EntryGroup response = dataCatalogClient.getEntryGroup(name, readMask);
}
Name | Description |
name | String Required. The name of the entry group. For example,
|
readMask | FieldMask The fields to return. If not set or empty, all fields are returned. |
Type | Description |
EntryGroup |
getEntryGroupCallable()
public final UnaryCallable<GetEntryGroupRequest,EntryGroup> getEntryGroupCallable()
Gets an EntryGroup.
Sample code:
try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
GetEntryGroupRequest request =
GetEntryGroupRequest