Class Aspect.Builder (1.37.0)

public static final class Aspect.Builder extends GeneratedMessageV3.Builder<Aspect.Builder> implements AspectOrBuilder

An aspect is a single piece of metadata describing an entry.

Protobuf type google.cloud.dataplex.v1.Aspect

Implements

AspectOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Aspect build()
Returns
TypeDescription
Aspect

buildPartial()

public Aspect buildPartial()
Returns
TypeDescription
Aspect

clear()

public Aspect.Builder clear()
Returns
TypeDescription
Aspect.Builder
Overrides

clearAspectSource()

public Aspect.Builder clearAspectSource()

.google.cloud.dataplex.v1.AspectSource aspect_source = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Aspect.Builder

clearAspectType()

public Aspect.Builder clearAspectType()

Output only. The resource name of the type used to create this Aspect.

string aspect_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Aspect.Builder

This builder for chaining.

clearCreateTime()

public Aspect.Builder clearCreateTime()

Output only. The time when the Aspect was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Aspect.Builder

clearData()

public Aspect.Builder clearData()

Required. The content of the aspect, according to its aspect type schema. This will replace content. The maximum size of the field is 120KB (encoded as UTF-8).

.google.protobuf.Struct data = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Aspect.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public Aspect.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Aspect.Builder
Overrides

clearPath()

public Aspect.Builder clearPath()

Output only. The path in the entry under which the aspect is attached.

string path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Aspect.Builder

This builder for chaining.

clearUpdateTime()

public Aspect.Builder clearUpdateTime()

Output only. The time when the Aspect was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Aspect.Builder

clone()

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

getAspectSource()

public AspectSource getAspectSource()

.google.cloud.dataplex.v1.AspectSource aspect_source = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AspectSource

The aspectSource.

getAspectSourceBuilder()

public AspectSource.Builder getAspectSourceBuilder()

.google.cloud.dataplex.v1.AspectSource aspect_source = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AspectSource.Builder

getAspectSourceOrBuilder()

public AspectSourceOrBuilder getAspectSourceOrBuilder()

.google.cloud.dataplex.v1.AspectSource aspect_source = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AspectSourceOrBuilder

getAspectType()

public String getAspectType()

Output only. The resource name of the type used to create this Aspect.

string aspect_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The aspectType.

getAspectTypeBytes()

public ByteString getAspectTypeBytes()

Output only. The resource name of the type used to create this Aspect.

string aspect_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for aspectType.

getCreateTime()

public Timestamp getCreateTime()

Output only. The time when the Aspect was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time when the Aspect was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time when the Aspect was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getData()

public Struct getData()

Required. The content of the aspect, according to its aspect type schema. This will replace content. The maximum size of the field is 120KB (encoded as UTF-8).

.google.protobuf.Struct data = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Struct

The data.

getDataBuilder()

public Struct.Builder getDataBuilder()

Required. The content of the aspect, according to its aspect type schema. This will replace content. The maximum size of the field is 120KB (encoded as UTF-8).

.google.protobuf.Struct data = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Builder

getDataOrBuilder()

public StructOrBuilder getDataOrBuilder()

Required. The content of the aspect, according to its aspect type schema. This will replace content. The maximum size of the field is 120KB (encoded as UTF-8).

.google.protobuf.Struct data = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
StructOrBuilder

getDefaultInstanceForType()

public Aspect getDefaultInstanceForType()
Returns
TypeDescription
Aspect

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPath()

public String getPath()

Output only. The path in the entry under which the aspect is attached.

string path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The path.

getPathBytes()

public ByteString getPathBytes()

Output only. The path in the entry under which the aspect is attached.

string path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for path.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time when the Aspect was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time when the Aspect was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time when the Aspect was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasAspectSource()

public boolean hasAspectSource()

.google.cloud.dataplex.v1.AspectSource aspect_source = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the aspectSource field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time when the Aspect was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasData()

public boolean hasData()

Required. The content of the aspect, according to its aspect type schema. This will replace content. The maximum size of the field is 120KB (encoded as UTF-8).

.google.protobuf.Struct data = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the data field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time when the Aspect was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAspectSource(AspectSource value)

public Aspect.Builder mergeAspectSource(AspectSource value)

.google.cloud.dataplex.v1.AspectSource aspect_source = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueAspectSource
Returns
TypeDescription
Aspect.Builder

mergeCreateTime(Timestamp value)

public Aspect.Builder mergeCreateTime(Timestamp value)

Output only. The time when the Aspect was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Aspect.Builder

mergeData(Struct value)

public Aspect.Builder mergeData(Struct value)

Required. The content of the aspect, according to its aspect type schema. This will replace content. The maximum size of the field is 120KB (encoded as UTF-8).

.google.protobuf.Struct data = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueStruct
Returns
TypeDescription
Aspect.Builder

mergeFrom(Aspect other)

public Aspect.Builder mergeFrom(Aspect other)
Parameter
NameDescription
otherAspect
Returns
TypeDescription
Aspect.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Aspect.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Aspect.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Aspect.Builder mergeUpdateTime(Timestamp value)

Output only. The time when the Aspect was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Aspect.Builder

setAspectSource(AspectSource value)

public Aspect.Builder setAspectSource(AspectSource value)

.google.cloud.dataplex.v1.AspectSource aspect_source = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueAspectSource
Returns
TypeDescription
Aspect.Builder

setAspectSource(AspectSource.Builder builderForValue)

public Aspect.Builder setAspectSource(AspectSource.Builder builderForValue)

.google.cloud.dataplex.v1.AspectSource aspect_source = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueAspectSource.Builder
Returns
TypeDescription
Aspect.Builder

setAspectType(String value)

public Aspect.Builder setAspectType(String value)

Output only. The resource name of the type used to create this Aspect.

string aspect_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The aspectType to set.

Returns
TypeDescription
Aspect.Builder

This builder for chaining.

setAspectTypeBytes(ByteString value)

public Aspect.Builder setAspectTypeBytes(ByteString value)

Output only. The resource name of the type used to create this Aspect.

string aspect_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for aspectType to set.

Returns
TypeDescription
Aspect.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public Aspect.Builder setCreateTime(Timestamp value)

Output only. The time when the Aspect was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Aspect.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Aspect.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time when the Aspect was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Aspect.Builder

setData(Struct value)

public Aspect.Builder setData(Struct value)

Required. The content of the aspect, according to its aspect type schema. This will replace content. The maximum size of the field is 120KB (encoded as UTF-8).

.google.protobuf.Struct data = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueStruct
Returns
TypeDescription
Aspect.Builder

setData(Struct.Builder builderForValue)

public Aspect.Builder setData(Struct.Builder builderForValue)

Required. The content of the aspect, according to its aspect type schema. This will replace content. The maximum size of the field is 120KB (encoded as UTF-8).

.google.protobuf.Struct data = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Aspect.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPath(String value)

public Aspect.Builder setPath(String value)

Output only. The path in the entry under which the aspect is attached.

string path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The path to set.

Returns
TypeDescription
Aspect.Builder

This builder for chaining.

setPathBytes(ByteString value)

public Aspect.Builder setPathBytes(ByteString value)

Output only. The path in the entry under which the aspect is attached.

string path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for path to set.

Returns
TypeDescription
Aspect.Builder

This builder for chaining.

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

public Aspect.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Aspect.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Aspect.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Aspect.Builder
Overrides

setUpdateTime(Timestamp value)

public Aspect.Builder setUpdateTime(Timestamp value)

Output only. The time when the Aspect was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Aspect.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Aspect.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time when the Aspect was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Aspect.Builder