Class CreateDataAttributeRequest.Builder (1.47.0)

public static final class CreateDataAttributeRequest.Builder extends GeneratedMessageV3.Builder<CreateDataAttributeRequest.Builder> implements CreateDataAttributeRequestOrBuilder

Create DataAttribute request.

Protobuf type google.cloud.dataplex.v1.CreateDataAttributeRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateDataAttributeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateDataAttributeRequest.Builder
Overrides

build()

public CreateDataAttributeRequest build()
Returns
Type Description
CreateDataAttributeRequest

buildPartial()

public CreateDataAttributeRequest buildPartial()
Returns
Type Description
CreateDataAttributeRequest

clear()

public CreateDataAttributeRequest.Builder clear()
Returns
Type Description
CreateDataAttributeRequest.Builder
Overrides

clearDataAttribute()

public CreateDataAttributeRequest.Builder clearDataAttribute()

Required. DataAttribute resource.

.google.cloud.dataplex.v1.DataAttribute data_attribute = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateDataAttributeRequest.Builder

clearDataAttributeId()

public CreateDataAttributeRequest.Builder clearDataAttributeId()

Required. DataAttribute identifier.

  • Must contain only lowercase letters, numbers and hyphens.
  • Must start with a letter.
  • Must be between 1-63 characters.
  • Must end with a number or a letter.
  • Must be unique within the DataTaxonomy.

string data_attribute_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateDataAttributeRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CreateDataAttributeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateDataAttributeRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateDataAttributeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateDataAttributeRequest.Builder
Overrides

clearParent()

public CreateDataAttributeRequest.Builder clearParent()

Required. The resource name of the parent data taxonomy projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateDataAttributeRequest.Builder

This builder for chaining.

clearValidateOnly()

public CreateDataAttributeRequest.Builder clearValidateOnly()

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

bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateDataAttributeRequest.Builder

This builder for chaining.

clone()

public CreateDataAttributeRequest.Builder clone()
Returns
Type Description
CreateDataAttributeRequest.Builder
Overrides

getDataAttribute()

public DataAttribute getDataAttribute()

Required. DataAttribute resource.

.google.cloud.dataplex.v1.DataAttribute data_attribute = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataAttribute

The dataAttribute.

getDataAttributeBuilder()

public DataAttribute.Builder getDataAttributeBuilder()

Required. DataAttribute resource.

.google.cloud.dataplex.v1.DataAttribute data_attribute = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataAttribute.Builder

getDataAttributeId()

public String getDataAttributeId()

Required. DataAttribute identifier.

  • Must contain only lowercase letters, numbers and hyphens.
  • Must start with a letter.
  • Must be between 1-63 characters.
  • Must end with a number or a letter.
  • Must be unique within the DataTaxonomy.

string data_attribute_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The dataAttributeId.

getDataAttributeIdBytes()

public ByteString getDataAttributeIdBytes()

Required. DataAttribute identifier.

  • Must contain only lowercase letters, numbers and hyphens.
  • Must start with a letter.
  • Must be between 1-63 characters.
  • Must end with a number or a letter.
  • Must be unique within the DataTaxonomy.

string data_attribute_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for dataAttributeId.

getDataAttributeOrBuilder()

public DataAttributeOrBuilder getDataAttributeOrBuilder()

Required. DataAttribute resource.

.google.cloud.dataplex.v1.DataAttribute data_attribute = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataAttributeOrBuilder

getDefaultInstanceForType()

public CreateDataAttributeRequest getDefaultInstanceForType()
Returns
Type Description
CreateDataAttributeRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The resource name of the parent data taxonomy projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the parent data taxonomy projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getValidateOnly()

public boolean getValidateOnly()

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

bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The validateOnly.

hasDataAttribute()

public boolean hasDataAttribute()

Required. DataAttribute resource.

.google.cloud.dataplex.v1.DataAttribute data_attribute = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the dataAttribute field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDataAttribute(DataAttribute value)

public CreateDataAttributeRequest.Builder mergeDataAttribute(DataAttribute value)

Required. DataAttribute resource.

.google.cloud.dataplex.v1.DataAttribute data_attribute = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DataAttribute
Returns
Type Description
CreateDataAttributeRequest.Builder

mergeFrom(CreateDataAttributeRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateDataAttributeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateDataAttributeRequest.Builder
Overrides

setDataAttribute(DataAttribute value)

public CreateDataAttributeRequest.Builder setDataAttribute(DataAttribute value)

Required. DataAttribute resource.

.google.cloud.dataplex.v1.DataAttribute data_attribute = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DataAttribute
Returns
Type Description
CreateDataAttributeRequest.Builder

setDataAttribute(DataAttribute.Builder builderForValue)

public CreateDataAttributeRequest.Builder setDataAttribute(DataAttribute.Builder builderForValue)

Required. DataAttribute resource.

.google.cloud.dataplex.v1.DataAttribute data_attribute = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue DataAttribute.Builder
Returns
Type Description
CreateDataAttributeRequest.Builder

setDataAttributeId(String value)

public CreateDataAttributeRequest.Builder setDataAttributeId(String value)

Required. DataAttribute identifier.

  • Must contain only lowercase letters, numbers and hyphens.
  • Must start with a letter.
  • Must be between 1-63 characters.
  • Must end with a number or a letter.
  • Must be unique within the DataTaxonomy.

string data_attribute_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The dataAttributeId to set.

Returns
Type Description
CreateDataAttributeRequest.Builder

This builder for chaining.

setDataAttributeIdBytes(ByteString value)

public CreateDataAttributeRequest.Builder setDataAttributeIdBytes(ByteString value)

Required. DataAttribute identifier.

  • Must contain only lowercase letters, numbers and hyphens.
  • Must start with a letter.
  • Must be between 1-63 characters.
  • Must end with a number or a letter.
  • Must be unique within the DataTaxonomy.

string data_attribute_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for dataAttributeId to set.

Returns
Type Description
CreateDataAttributeRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CreateDataAttributeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateDataAttributeRequest.Builder
Overrides

setParent(String value)

public CreateDataAttributeRequest.Builder setParent(String value)

Required. The resource name of the parent data taxonomy projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateDataAttributeRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateDataAttributeRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the parent data taxonomy projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateDataAttributeRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateDataAttributeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateDataAttributeRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateDataAttributeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateDataAttributeRequest.Builder
Overrides

setValidateOnly(boolean value)

public CreateDataAttributeRequest.Builder setValidateOnly(boolean value)

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

bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
CreateDataAttributeRequest.Builder

This builder for chaining.