Google Cloud Dataplex V1 Client - Class CreateEntityRequest (1.10.0)

Reference documentation and code samples for the Google Cloud Dataplex V1 Client class CreateEntityRequest.

Create a metadata entity request.

Generated from protobuf messagegoogle.cloud.dataplex.v1.CreateEntityRequest

Namespace

Google \ Cloud \ Dataplex \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ parentstring

Required. The resource name of the parent zone:projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}.

↳ entityEntity

Required. Entity resource.

↳ validate_onlybool

Optional. Only validate the request, but do not perform mutations. The default is false.

getParent

Required. The resource name of the parent zone:projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}.

Returns
TypeDescription
string

setParent

Required. The resource name of the parent zone:projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getEntity

Required. Entity resource.

Returns
TypeDescription
Entity|null

hasEntity

clearEntity

setEntity

Required. Entity resource.

Parameter
NameDescription
varEntity
Returns
TypeDescription
$this

getValidateOnly

Optional. Only validate the request, but do not perform mutations.

The default is false.

Returns
TypeDescription
bool

setValidateOnly

Optional. Only validate the request, but do not perform mutations.

The default is false.

Parameter
NameDescription
varbool
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parentstring

Required. The resource name of the parent zone:projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}. Please seeMetadataServiceClient::zoneName() for help formatting this field.

entityEntity

Required. Entity resource.

Returns
TypeDescription
CreateEntityRequest

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-11-08 UTC.