Class CreateDataAttributeRequest.Builder (1.38.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateDataAttributeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateDataAttributeRequest.Builder
Overrides

build()

public CreateDataAttributeRequest build()
Returns
TypeDescription
CreateDataAttributeRequest

buildPartial()

public CreateDataAttributeRequest buildPartial()
Returns
TypeDescription
CreateDataAttributeRequest

clear()

public CreateDataAttributeRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CreateDataAttributeRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CreateDataAttributeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateDataAttributeRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateDataAttributeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CreateDataAttributeRequest.Builder

This builder for chaining.

clone()

public CreateDataAttributeRequest.Builder clone()
Returns
TypeDescription
CreateDataAttributeRequest.Builder
Overrides

getDataAttribute()

public DataAttribute getDataAttribute()

Required. DataAttribute resource.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
DataAttributeOrBuilder

getDefaultInstanceForType()

public CreateDataAttributeRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateDataAttributeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

The validateOnly.

hasDataAttribute()

public boolean hasDataAttribute()

Required. DataAttribute resource.

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

Returns
TypeDescription
boolean

Whether the dataAttribute field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueDataAttribute
Returns
TypeDescription
CreateDataAttributeRequest.Builder

mergeFrom(CreateDataAttributeRequest other)

public CreateDataAttributeRequest.Builder mergeFrom(CreateDataAttributeRequest other)
Parameter
NameDescription
otherCreateDataAttributeRequest
Returns
TypeDescription
CreateDataAttributeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateDataAttributeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateDataAttributeRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateDataAttributeRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateDataAttributeRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateDataAttributeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueDataAttribute
Returns
TypeDescription
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
NameDescription
builderForValueDataAttribute.Builder
Returns
TypeDescription
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
NameDescription
valueString

The dataAttributeId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for dataAttributeId to set.

Returns
TypeDescription
CreateDataAttributeRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CreateDataAttributeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateDataAttributeRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateDataAttributeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
CreateDataAttributeRequest.Builder

This builder for chaining.