Class CreateAspectTypeRequest.Builder (1.39.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateAspectTypeRequest build()
Returns
TypeDescription
CreateAspectTypeRequest

buildPartial()

public CreateAspectTypeRequest buildPartial()
Returns
TypeDescription
CreateAspectTypeRequest

clear()

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

clearAspectTypeId()

public CreateAspectTypeRequest.Builder clearAspectTypeId()

Required. AspectType identifier.

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

Returns
TypeDescription
CreateAspectTypeRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getAspectType()

public AspectType getAspectType()

Required. AspectType Resource

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

Returns
TypeDescription
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
TypeDescription
AspectType.Builder

getAspectTypeId()

public String getAspectTypeId()

Required. AspectType identifier.

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

Returns
TypeDescription
String

The aspectTypeId.

getAspectTypeIdBytes()

public ByteString getAspectTypeIdBytes()

Required. AspectType identifier.

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

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

getDefaultInstanceForType()

public CreateAspectTypeRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateAspectTypeRequest

getDescriptorForType()

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

hasAspectType()

public boolean hasAspectType()

Required. AspectType Resource

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

Returns
TypeDescription
boolean

Whether the aspectType field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

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

mergeFrom(CreateAspectTypeRequest other)

public CreateAspectTypeRequest.Builder mergeFrom(CreateAspectTypeRequest other)
Parameter
NameDescription
otherCreateAspectTypeRequest
Returns
TypeDescription
CreateAspectTypeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateAspectTypeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueAspectType
Returns
TypeDescription
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
NameDescription
builderForValueAspectType.Builder
Returns
TypeDescription
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
NameDescription
valueString

The aspectTypeId to set.

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

The bytes for aspectTypeId to set.

Returns
TypeDescription
CreateAspectTypeRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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

The validateOnly to set.

Returns
TypeDescription
CreateAspectTypeRequest.Builder

This builder for chaining.