Class EntryLink.Builder (1.72.0)

public static final class EntryLink.Builder extends GeneratedMessageV3.Builder<EntryLink.Builder> implements EntryLinkOrBuilder

EntryLink represents a link between two Entries.

Protobuf type google.cloud.dataplex.v1.EntryLink

Implements

EntryLinkOrBuilder

Static Methods

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

Methods

public EntryLink.Builder addAllEntryReferences(Iterable<? extends EntryLink.EntryReference> values)

Required. Specifies the Entries referenced in the Entry Link. There should be exactly two entry references.

repeated .google.cloud.dataplex.v1.EntryLink.EntryReference entry_references = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.dataplex.v1.EntryLink.EntryReference>
Returns
Type Description
EntryLink.Builder
public EntryLink.Builder addEntryReferences(EntryLink.EntryReference value)

Required. Specifies the Entries referenced in the Entry Link. There should be exactly two entry references.

repeated .google.cloud.dataplex.v1.EntryLink.EntryReference entry_references = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value EntryLink.EntryReference
Returns
Type Description
EntryLink.Builder
public EntryLink.Builder addEntryReferences(EntryLink.EntryReference.Builder builderForValue)

Required. Specifies the Entries referenced in the Entry Link. There should be exactly two entry references.

repeated .google.cloud.dataplex.v1.EntryLink.EntryReference entry_references = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue EntryLink.EntryReference.Builder
Returns
Type Description
EntryLink.Builder
public EntryLink.Builder addEntryReferences(int index, EntryLink.EntryReference value)

Required. Specifies the Entries referenced in the Entry Link. There should be exactly two entry references.

repeated .google.cloud.dataplex.v1.EntryLink.EntryReference entry_references = 10 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value EntryLink.EntryReference
Returns
Type Description
EntryLink.Builder
public EntryLink.Builder addEntryReferences(int index, EntryLink.EntryReference.Builder builderForValue)

Required. Specifies the Entries referenced in the Entry Link. There should be exactly two entry references.

repeated .google.cloud.dataplex.v1.EntryLink.EntryReference entry_references = 10 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue EntryLink.EntryReference.Builder
Returns
Type Description
EntryLink.Builder
public EntryLink.EntryReference.Builder addEntryReferencesBuilder()

Required. Specifies the Entries referenced in the Entry Link. There should be exactly two entry references.

repeated .google.cloud.dataplex.v1.EntryLink.EntryReference entry_references = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EntryLink.EntryReference.Builder
public EntryLink.EntryReference.Builder addEntryReferencesBuilder(int index)

Required. Specifies the Entries referenced in the Entry Link. There should be exactly two entry references.

repeated .google.cloud.dataplex.v1.EntryLink.EntryReference entry_references = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
EntryLink.EntryReference.Builder
public EntryLink.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
EntryLink.Builder
Overrides
public EntryLink build()
Returns
Type Description
EntryLink
public EntryLink buildPartial()
Returns
Type Description
EntryLink
public EntryLink.Builder clear()
Returns
Type Description
EntryLink.Builder
Overrides
public EntryLink.Builder clearCreateTime()

Output only. The time when the Entry Link was created.

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

Returns
Type Description
EntryLink.Builder
public EntryLink.Builder clearEntryLinkType()

Required. Immutable. Relative resource name of the Entry Link Type used to create this Entry Link. For example:

  • Entry link between synonym terms in a glossary: projects/dataplex-types/locations/global/entryLinkTypes/synonym
  • Entry link between related terms in a glossary: projects/dataplex-types/locations/global/entryLinkTypes/related
  • Entry link between glossary terms and data assets: projects/dataplex-types/locations/global/entryLinkTypes/definition

string entry_link_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
EntryLink.Builder

This builder for chaining.

public EntryLink.Builder clearEntryReferences()

Required. Specifies the Entries referenced in the Entry Link. There should be exactly two entry references.

repeated .google.cloud.dataplex.v1.EntryLink.EntryReference entry_references = 10 [(.google.api.field_behavior) = REQUIRED];

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

Output only. Immutable. Identifier. The relative resource name of the Entry Link, of the form: projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }

Returns
Type Description
EntryLink.Builder

This builder for chaining.

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

Output only. The time when the Entry Link was last updated.

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

Returns
Type Description
EntryLink.Builder
public EntryLink.Builder clone()
Returns
Type Description
EntryLink.Builder
Overrides
public Timestamp getCreateTime()

Output only. The time when the Entry Link was created.

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

Returns
Type Description
Timestamp

The createTime.

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time when the Entry Link was created.

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

Returns
Type Description
Builder
public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time when the Entry Link was created.

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

Returns
Type Description
TimestampOrBuilder
public EntryLink getDefaultInstanceForType()
Returns
Type Description
EntryLink
public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides
public String getEntryLinkType()

Required. Immutable. Relative resource name of the Entry Link Type used to create this Entry Link. For example:

  • Entry link between synonym terms in a glossary: projects/dataplex-types/locations/global/entryLinkTypes/synonym
  • Entry link between related terms in a glossary: projects/dataplex-types/locations/global/entryLinkTypes/related
  • Entry link between glossary terms and data assets: projects/dataplex-types/locations/global/entryLinkTypes/definition

string entry_link_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The entryLinkType.

public ByteString getEntryLinkTypeBytes()

Required. Immutable. Relative resource name of the Entry Link Type used to create this Entry Link. For example:

  • Entry link between synonym terms in a glossary: projects/dataplex-types/locations/global/entryLinkTypes/synonym
  • Entry link between related terms in a glossary: projects/dataplex-types/locations/global/entryLinkTypes/related
  • Entry link between glossary terms and data assets: projects/dataplex-types/locations/global/entryLinkTypes/definition

string entry_link_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for entryLinkType.

public EntryLink.EntryReference getEntryReferences(int index)

Required. Specifies the Entries referenced in the Entry Link. There should be exactly two entry references.

repeated .google.cloud.dataplex.v1.EntryLink.EntryReference entry_references = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
EntryLink.EntryReference
public EntryLink.EntryReference.Builder getEntryReferencesBuilder(int index)

Required. Specifies the Entries referenced in the Entry Link. There should be exactly two entry references.

repeated .google.cloud.dataplex.v1.EntryLink.EntryReference entry_references = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
EntryLink.EntryReference.Builder
public List<EntryLink.EntryReference.Builder> getEntryReferencesBuilderList()

Required. Specifies the Entries referenced in the Entry Link. There should be exactly two entry references.

repeated .google.cloud.dataplex.v1.EntryLink.EntryReference entry_references = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>
public int getEntryReferencesCount()

Required. Specifies the Entries referenced in the Entry Link. There should be exactly two entry references.

repeated .google.cloud.dataplex.v1.EntryLink.EntryReference entry_references = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int
public List<EntryLink.EntryReference> getEntryReferencesList()

Required. Specifies the Entries referenced in the Entry Link. There should be exactly two entry references.

repeated .google.cloud.dataplex.v1.EntryLink.EntryReference entry_references = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<EntryReference>
public EntryLink.EntryReferenceOrBuilder getEntryReferencesOrBuilder(int index)

Required. Specifies the Entries referenced in the Entry Link. There should be exactly two entry references.

repeated .google.cloud.dataplex.v1.EntryLink.EntryReference entry_references = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
EntryLink.EntryReferenceOrBuilder
public List<? extends EntryLink.EntryReferenceOrBuilder> getEntryReferencesOrBuilderList()

Required. Specifies the Entries referenced in the Entry Link. There should be exactly two entry references.

repeated .google.cloud.dataplex.v1.EntryLink.EntryReference entry_references = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.dataplex.v1.EntryLink.EntryReferenceOrBuilder>
public String getName()

Output only. Immutable. Identifier. The relative resource name of the Entry Link, of the form: projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

public ByteString getNameBytes()

Output only. Immutable. Identifier. The relative resource name of the Entry Link, of the form: projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

public Timestamp getUpdateTime()

Output only. The time when the Entry Link was last updated.

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

Returns
Type Description
Timestamp

The updateTime.

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time when the Entry Link was last updated.

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

Returns
Type Description
Builder
public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time when the Entry Link was last updated.

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

Returns
Type Description
TimestampOrBuilder
public boolean hasCreateTime()

Output only. The time when the Entry Link was created.

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

Returns
Type Description
boolean

Whether the createTime field is set.

public boolean hasUpdateTime()

Output only. The time when the Entry Link was last updated.

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

Returns
Type Description
boolean

Whether the updateTime field is set.

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
Type Description
boolean
Overrides
public EntryLink.Builder mergeCreateTime(Timestamp value)

Output only. The time when the Entry Link was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
EntryLink.Builder
public EntryLink.Builder mergeFrom(EntryLink other)
Parameter
Name Description
other EntryLink
Returns
Type Description
EntryLink.Builder
public EntryLink.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EntryLink.Builder
Overrides
Exceptions
Type Description
IOException
public EntryLink.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
EntryLink.Builder
Overrides
public final EntryLink.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
EntryLink.Builder
Overrides
public EntryLink.Builder mergeUpdateTime(Timestamp value)

Output only. The time when the Entry Link was last updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
EntryLink.Builder
public EntryLink.Builder removeEntryReferences(int index)

Required. Specifies the Entries referenced in the Entry Link. There should be exactly two entry references.

repeated .google.cloud.dataplex.v1.EntryLink.EntryReference entry_references = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
EntryLink.Builder
public EntryLink.Builder setCreateTime(Timestamp value)

Output only. The time when the Entry Link was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
EntryLink.Builder
public EntryLink.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time when the Entry Link was created.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
EntryLink.Builder
public EntryLink.Builder setEntryLinkType(String value)

Required. Immutable. Relative resource name of the Entry Link Type used to create this Entry Link. For example:

  • Entry link between synonym terms in a glossary: projects/dataplex-types/locations/global/entryLinkTypes/synonym
  • Entry link between related terms in a glossary: projects/dataplex-types/locations/global/entryLinkTypes/related
  • Entry link between glossary terms and data assets: projects/dataplex-types/locations/global/entryLinkTypes/definition

string entry_link_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The entryLinkType to set.

Returns
Type Description
EntryLink.Builder

This builder for chaining.

public EntryLink.Builder setEntryLinkTypeBytes(ByteString value)

Required. Immutable. Relative resource name of the Entry Link Type used to create this Entry Link. For example:

  • Entry link between synonym terms in a glossary: projects/dataplex-types/locations/global/entryLinkTypes/synonym
  • Entry link between related terms in a glossary: projects/dataplex-types/locations/global/entryLinkTypes/related
  • Entry link between glossary terms and data assets: projects/dataplex-types/locations/global/entryLinkTypes/definition

string entry_link_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for entryLinkType to set.

Returns
Type Description
EntryLink.Builder

This builder for chaining.

public EntryLink.Builder setEntryReferences(int index, EntryLink.EntryReference value)

Required. Specifies the Entries referenced in the Entry Link. There should be exactly two entry references.

repeated .google.cloud.dataplex.v1.EntryLink.EntryReference entry_references = 10 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value EntryLink.EntryReference
Returns
Type Description
EntryLink.Builder
public EntryLink.Builder setEntryReferences(int index, EntryLink.EntryReference.Builder builderForValue)

Required. Specifies the Entries referenced in the Entry Link. There should be exactly two entry references.

repeated .google.cloud.dataplex.v1.EntryLink.EntryReference entry_references = 10 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue EntryLink.EntryReference.Builder
Returns
Type Description
EntryLink.Builder
public EntryLink.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
EntryLink.Builder
Overrides
public EntryLink.Builder setName(String value)

Output only. Immutable. Identifier. The relative resource name of the Entry Link, of the form: projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
EntryLink.Builder

This builder for chaining.

public EntryLink.Builder setNameBytes(ByteString value)

Output only. Immutable. Identifier. The relative resource name of the Entry Link, of the form: projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
EntryLink.Builder

This builder for chaining.

public EntryLink.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
EntryLink.Builder
Overrides
public final EntryLink.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
EntryLink.Builder
Overrides
public EntryLink.Builder setUpdateTime(Timestamp value)

Output only. The time when the Entry Link was last updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
EntryLink.Builder
public EntryLink.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time when the Entry Link was last updated.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
EntryLink.Builder