Package com.google.cloud.dataplex.v1
Class ImportItem
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dataplex.v1.ImportItem
- All Implemented Interfaces:
ImportItemOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class ImportItem
extends com.google.protobuf.GeneratedMessage
implements ImportItemOrBuilder
An object that describes the values that you want to set for an entry and its attached aspects when you import metadata. Used when you run a metadata import job. See [CreateMetadataJob][google.cloud.dataplex.v1.CatalogService.CreateMetadataJob]. You provide a collection of import items in a metadata import file. For more information about how to create a metadata import file, see [Metadata import file](https://cloud.google.com/dataplex/docs/import-metadata#metadata-import-file).Protobuf type
google.cloud.dataplex.v1.ImportItem- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAn object that describes the values that you want to set for an entry and its attached aspects when you import metadata.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAspectKeys(int index) The aspects to modify.com.google.protobuf.ByteStringgetAspectKeysBytes(int index) The aspects to modify.intThe aspects to modify.com.google.protobuf.ProtocolStringListThe aspects to modify.static ImportItemstatic final com.google.protobuf.Descriptors.DescriptorgetEntry()Information about an entry and its attached aspects.Information about the entry link.Information about the entry link.Information about an entry and its attached aspects.com.google.protobuf.Parser<ImportItem>intcom.google.protobuf.FieldMaskThe fields to update, in paths that are relative to the `Entry` resource.com.google.protobuf.FieldMaskOrBuilderThe fields to update, in paths that are relative to the `Entry` resource.booleanhasEntry()Information about an entry and its attached aspects.booleanInformation about the entry link.inthashCode()booleanThe fields to update, in paths that are relative to the `Entry` resource.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic ImportItem.Builderstatic ImportItem.BuildernewBuilder(ImportItem prototype) protected ImportItem.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ImportItemparseDelimitedFrom(InputStream input) static ImportItemparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ImportItemparseFrom(byte[] data) static ImportItemparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ImportItemparseFrom(com.google.protobuf.ByteString data) static ImportItemparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ImportItemparseFrom(com.google.protobuf.CodedInputStream input) static ImportItemparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ImportItemparseFrom(InputStream input) static ImportItemparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ImportItemparseFrom(ByteBuffer data) static ImportItemparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ImportItem>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ENTRY_FIELD_NUMBER
public static final int ENTRY_FIELD_NUMBER- See Also:
-
ENTRY_LINK_FIELD_NUMBER
public static final int ENTRY_LINK_FIELD_NUMBER- See Also:
-
UPDATE_MASK_FIELD_NUMBER
public static final int UPDATE_MASK_FIELD_NUMBER- See Also:
-
ASPECT_KEYS_FIELD_NUMBER
public static final int ASPECT_KEYS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasEntry
public boolean hasEntry()Information about an entry and its attached aspects.
.google.cloud.dataplex.v1.Entry entry = 1;- Specified by:
hasEntryin interfaceImportItemOrBuilder- Returns:
- Whether the entry field is set.
-
getEntry
Information about an entry and its attached aspects.
.google.cloud.dataplex.v1.Entry entry = 1;- Specified by:
getEntryin interfaceImportItemOrBuilder- Returns:
- The entry.
-
getEntryOrBuilder
Information about an entry and its attached aspects.
.google.cloud.dataplex.v1.Entry entry = 1;- Specified by:
getEntryOrBuilderin interfaceImportItemOrBuilder
-
hasEntryLink
public boolean hasEntryLink()Information about the entry link. User should provide either one of the entry or entry_link. While providing entry_link, user should not provide update_mask and aspect_keys.
.google.cloud.dataplex.v1.EntryLink entry_link = 4;- Specified by:
hasEntryLinkin interfaceImportItemOrBuilder- Returns:
- Whether the entryLink field is set.
-
getEntryLink
Information about the entry link. User should provide either one of the entry or entry_link. While providing entry_link, user should not provide update_mask and aspect_keys.
.google.cloud.dataplex.v1.EntryLink entry_link = 4;- Specified by:
getEntryLinkin interfaceImportItemOrBuilder- Returns:
- The entryLink.
-
getEntryLinkOrBuilder
Information about the entry link. User should provide either one of the entry or entry_link. While providing entry_link, user should not provide update_mask and aspect_keys.
.google.cloud.dataplex.v1.EntryLink entry_link = 4;- Specified by:
getEntryLinkOrBuilderin interfaceImportItemOrBuilder
-
hasUpdateMask
public boolean hasUpdateMask()The fields to update, in paths that are relative to the `Entry` resource. Separate each field with a comma. In `FULL` entry sync mode, Dataplex Universal Catalog includes the paths of all of the fields for an entry that can be modified, including aspects. This means that Dataplex Universal Catalog replaces the existing entry with the entry in the metadata import file. All modifiable fields are updated, regardless of the fields that are listed in the update mask, and regardless of whether a field is present in the `entry` object. The `update_mask` field is ignored when an entry is created or re-created. In an aspect-only metadata job (when entry sync mode is `NONE`), set this value to `aspects`. Dataplex Universal Catalog also determines which entries and aspects to modify by comparing the values and timestamps that you provide in the metadata import file with the values and timestamps that exist in your project. For more information, see [Comparison logic](https://cloud.google.com/dataplex/docs/import-metadata#data-modification-logic).
.google.protobuf.FieldMask update_mask = 2;- Specified by:
hasUpdateMaskin interfaceImportItemOrBuilder- Returns:
- Whether the updateMask field is set.
-
getUpdateMask
public com.google.protobuf.FieldMask getUpdateMask()The fields to update, in paths that are relative to the `Entry` resource. Separate each field with a comma. In `FULL` entry sync mode, Dataplex Universal Catalog includes the paths of all of the fields for an entry that can be modified, including aspects. This means that Dataplex Universal Catalog replaces the existing entry with the entry in the metadata import file. All modifiable fields are updated, regardless of the fields that are listed in the update mask, and regardless of whether a field is present in the `entry` object. The `update_mask` field is ignored when an entry is created or re-created. In an aspect-only metadata job (when entry sync mode is `NONE`), set this value to `aspects`. Dataplex Universal Catalog also determines which entries and aspects to modify by comparing the values and timestamps that you provide in the metadata import file with the values and timestamps that exist in your project. For more information, see [Comparison logic](https://cloud.google.com/dataplex/docs/import-metadata#data-modification-logic).
.google.protobuf.FieldMask update_mask = 2;- Specified by:
getUpdateMaskin interfaceImportItemOrBuilder- Returns:
- The updateMask.
-
getUpdateMaskOrBuilder
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()The fields to update, in paths that are relative to the `Entry` resource. Separate each field with a comma. In `FULL` entry sync mode, Dataplex Universal Catalog includes the paths of all of the fields for an entry that can be modified, including aspects. This means that Dataplex Universal Catalog replaces the existing entry with the entry in the metadata import file. All modifiable fields are updated, regardless of the fields that are listed in the update mask, and regardless of whether a field is present in the `entry` object. The `update_mask` field is ignored when an entry is created or re-created. In an aspect-only metadata job (when entry sync mode is `NONE`), set this value to `aspects`. Dataplex Universal Catalog also determines which entries and aspects to modify by comparing the values and timestamps that you provide in the metadata import file with the values and timestamps that exist in your project. For more information, see [Comparison logic](https://cloud.google.com/dataplex/docs/import-metadata#data-modification-logic).
.google.protobuf.FieldMask update_mask = 2;- Specified by:
getUpdateMaskOrBuilderin interfaceImportItemOrBuilder
-
getAspectKeysList
public com.google.protobuf.ProtocolStringList getAspectKeysList()The aspects to modify. Supports the following syntaxes: * `{aspect_type_reference}`: matches aspects that belong to the specified aspect type and are attached directly to the entry. * `{aspect_type_reference}@{path}`: matches aspects that belong to the specified aspect type and path. * `{aspect_type_reference}@*` : matches aspects of the given type for all paths. * `*@path` : matches aspects of all types on the given path. Replace `{aspect_type_reference}` with a reference to the aspect type, in the format `{project_id_or_number}.{location_id}.{aspect_type_id}`. In `FULL` entry sync mode, if you leave this field empty, it is treated as specifying exactly those aspects that are present within the specified entry. Dataplex Universal Catalog implicitly adds the keys for all of the required aspects of an entry.repeated string aspect_keys = 3;- Specified by:
getAspectKeysListin interfaceImportItemOrBuilder- Returns:
- A list containing the aspectKeys.
-
getAspectKeysCount
public int getAspectKeysCount()The aspects to modify. Supports the following syntaxes: * `{aspect_type_reference}`: matches aspects that belong to the specified aspect type and are attached directly to the entry. * `{aspect_type_reference}@{path}`: matches aspects that belong to the specified aspect type and path. * `{aspect_type_reference}@*` : matches aspects of the given type for all paths. * `*@path` : matches aspects of all types on the given path. Replace `{aspect_type_reference}` with a reference to the aspect type, in the format `{project_id_or_number}.{location_id}.{aspect_type_id}`. In `FULL` entry sync mode, if you leave this field empty, it is treated as specifying exactly those aspects that are present within the specified entry. Dataplex Universal Catalog implicitly adds the keys for all of the required aspects of an entry.repeated string aspect_keys = 3;- Specified by:
getAspectKeysCountin interfaceImportItemOrBuilder- Returns:
- The count of aspectKeys.
-
getAspectKeys
The aspects to modify. Supports the following syntaxes: * `{aspect_type_reference}`: matches aspects that belong to the specified aspect type and are attached directly to the entry. * `{aspect_type_reference}@{path}`: matches aspects that belong to the specified aspect type and path. * `{aspect_type_reference}@*` : matches aspects of the given type for all paths. * `*@path` : matches aspects of all types on the given path. Replace `{aspect_type_reference}` with a reference to the aspect type, in the format `{project_id_or_number}.{location_id}.{aspect_type_id}`. In `FULL` entry sync mode, if you leave this field empty, it is treated as specifying exactly those aspects that are present within the specified entry. Dataplex Universal Catalog implicitly adds the keys for all of the required aspects of an entry.repeated string aspect_keys = 3;- Specified by:
getAspectKeysin interfaceImportItemOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The aspectKeys at the given index.
-
getAspectKeysBytes
public com.google.protobuf.ByteString getAspectKeysBytes(int index) The aspects to modify. Supports the following syntaxes: * `{aspect_type_reference}`: matches aspects that belong to the specified aspect type and are attached directly to the entry. * `{aspect_type_reference}@{path}`: matches aspects that belong to the specified aspect type and path. * `{aspect_type_reference}@*` : matches aspects of the given type for all paths. * `*@path` : matches aspects of all types on the given path. Replace `{aspect_type_reference}` with a reference to the aspect type, in the format `{project_id_or_number}.{location_id}.{aspect_type_id}`. In `FULL` entry sync mode, if you leave this field empty, it is treated as specifying exactly those aspects that are present within the specified entry. Dataplex Universal Catalog implicitly adds the keys for all of the required aspects of an entry.repeated string aspect_keys = 3;- Specified by:
getAspectKeysBytesin interfaceImportItemOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the aspectKeys at the given index.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ImportItem parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ImportItem parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ImportItem parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ImportItem parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ImportItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ImportItem parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ImportItem parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ImportItem parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ImportItem parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ImportItem.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-