Class CreateAspectTypeRequest.Builder (1.50.0)

public static final class CreateAspectTypeRequest.Builder extends GeneratedMessageV3.Builder<CreateAspectTypeRequest.Builder> implements CreateAspectTypeRequestOrBuilder

Create AspectType Request

Protobuf type google.cloud.dataplex.v1.CreateAspectTypeRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateAspectTypeRequest build()
Returns
Type Description
CreateAspectTypeRequest

buildPartial()

public CreateAspectTypeRequest buildPartial()
Returns
Type Description
CreateAspectTypeRequest

clear()

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

clearAspectType()

public CreateAspectTypeRequest.Builder clearAspectType()

Required. AspectType Resource

.google.cloud.dataplex.v1.AspectType aspect_type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateAspectTypeRequest.Builder

clearAspectTypeId()

public CreateAspectTypeRequest.Builder clearAspectTypeId()

Required. AspectType identifier.

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

Returns
Type Description
CreateAspectTypeRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateAspectTypeRequest.Builder clearParent()

Required. The resource name of the AspectType, of the form: projects/{project_number}/locations/{location_id} where location_id refers to a GCP region.

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

Returns
Type Description
CreateAspectTypeRequest.Builder

This builder for chaining.

clearValidateOnly()

public CreateAspectTypeRequest.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
CreateAspectTypeRequest.Builder

This builder for chaining.

clone()

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

getAspectType()

public AspectType getAspectType()

Required. AspectType Resource

.google.cloud.dataplex.v1.AspectType aspect_type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AspectType

The aspectType.

getAspectTypeBuilder()

public AspectType.Builder getAspectTypeBuilder()

Required. AspectType Resource

.google.cloud.dataplex.v1.AspectType aspect_type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AspectType.Builder

getAspectTypeId()

public String getAspectTypeId()

Required. AspectType identifier.

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

Returns
Type Description
String

The aspectTypeId.

getAspectTypeIdBytes()

public ByteString getAspectTypeIdBytes()

Required. AspectType identifier.

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

Returns
Type Description
ByteString

The bytes for aspectTypeId.

getAspectTypeOrBuilder()

public AspectTypeOrBuilder getAspectTypeOrBuilder()

Required. AspectType Resource

.google.cloud.dataplex.v1.AspectType aspect_type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AspectTypeOrBuilder

getDefaultInstanceForType()

public CreateAspectTypeRequest getDefaultInstanceForType()
Returns
Type Description
CreateAspectTypeRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The resource name of the AspectType, of the form: projects/{project_number}/locations/{location_id} where location_id refers to a GCP region.

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 AspectType, of the form: projects/{project_number}/locations/{location_id} where location_id refers to a GCP region.

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.

hasAspectType()

public boolean hasAspectType()

Required. AspectType Resource

.google.cloud.dataplex.v1.AspectType aspect_type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the aspectType field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAspectType(AspectType value)

public CreateAspectTypeRequest.Builder mergeAspectType(AspectType value)

Required. AspectType Resource

.google.cloud.dataplex.v1.AspectType aspect_type = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AspectType
Returns
Type Description
CreateAspectTypeRequest.Builder

mergeFrom(CreateAspectTypeRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAspectType(AspectType value)

public CreateAspectTypeRequest.Builder setAspectType(AspectType value)

Required. AspectType Resource

.google.cloud.dataplex.v1.AspectType aspect_type = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AspectType
Returns
Type Description
CreateAspectTypeRequest.Builder

setAspectType(AspectType.Builder builderForValue)

public CreateAspectTypeRequest.Builder setAspectType(AspectType.Builder builderForValue)

Required. AspectType Resource

.google.cloud.dataplex.v1.AspectType aspect_type = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue AspectType.Builder
Returns
Type Description
CreateAspectTypeRequest.Builder

setAspectTypeId(String value)

public CreateAspectTypeRequest.Builder setAspectTypeId(String value)

Required. AspectType identifier.

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

Parameter
Name Description
value String

The aspectTypeId to set.

Returns
Type Description
CreateAspectTypeRequest.Builder

This builder for chaining.

setAspectTypeIdBytes(ByteString value)

public CreateAspectTypeRequest.Builder setAspectTypeIdBytes(ByteString value)

Required. AspectType identifier.

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

Parameter
Name Description
value ByteString

The bytes for aspectTypeId to set.

Returns
Type Description
CreateAspectTypeRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateAspectTypeRequest.Builder setParent(String value)

Required. The resource name of the AspectType, of the form: projects/{project_number}/locations/{location_id} where location_id refers to a GCP region.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateAspectTypeRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateAspectTypeRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the AspectType, of the form: projects/{project_number}/locations/{location_id} where location_id refers to a GCP region.

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
CreateAspectTypeRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValidateOnly(boolean value)

public CreateAspectTypeRequest.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
CreateAspectTypeRequest.Builder

This builder for chaining.