Package com.google.cloud.dataplex.v1
Class MetadataJob.ImportJobSpec
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec
- All Implemented Interfaces:
MetadataJob.ImportJobSpecOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- MetadataJob
public static final class MetadataJob.ImportJobSpec
extends com.google.protobuf.GeneratedMessage
implements MetadataJob.ImportJobSpecOrBuilder
Job specification for a metadata import job. You can run the following kinds of metadata import jobs: * Full sync of entries with incremental import of their aspects. Supported for custom entries. * Incremental import of aspects only. Supported for aspects that belong to custom entries and system entries. For custom entries, you can modify both optional aspects and required aspects. For system entries, you can modify optional aspects.Protobuf type
google.cloud.dataplex.v1.MetadataJob.ImportJobSpec- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classJob specification for a metadata import job.static final classA boundary on the scope of impact that the metadata import job can have.static interfacestatic enumThe level of logs to write to Cloud Logging for this job.static enumSpecifies how the entries and aspects in a metadata import job are updated.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 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 TypeMethodDescriptionbooleanRequired.intRequired.static MetadataJob.ImportJobSpecstatic final com.google.protobuf.Descriptors.DescriptorRequired.intRequired.Optional.intOptional.com.google.protobuf.Parser<MetadataJob.ImportJobSpec>getScope()Required.Required.intcom.google.protobuf.TimestampOptional.com.google.protobuf.TimestampOrBuilderOptional.Optional.com.google.protobuf.ByteStringOptional.inthashCode()booleanhasScope()Required.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(MetadataJob.ImportJobSpec prototype) protected MetadataJob.ImportJobSpec.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static MetadataJob.ImportJobSpecparseDelimitedFrom(InputStream input) static MetadataJob.ImportJobSpecparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetadataJob.ImportJobSpecparseFrom(byte[] data) static MetadataJob.ImportJobSpecparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetadataJob.ImportJobSpecparseFrom(com.google.protobuf.ByteString data) static MetadataJob.ImportJobSpecparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetadataJob.ImportJobSpecparseFrom(com.google.protobuf.CodedInputStream input) static MetadataJob.ImportJobSpecparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetadataJob.ImportJobSpecparseFrom(InputStream input) static MetadataJob.ImportJobSpecparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetadataJob.ImportJobSpecparseFrom(ByteBuffer data) static MetadataJob.ImportJobSpecparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<MetadataJob.ImportJobSpec>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
-
SOURCE_STORAGE_URI_FIELD_NUMBER
public static final int SOURCE_STORAGE_URI_FIELD_NUMBER- See Also:
-
SOURCE_CREATE_TIME_FIELD_NUMBER
public static final int SOURCE_CREATE_TIME_FIELD_NUMBER- See Also:
-
SCOPE_FIELD_NUMBER
public static final int SCOPE_FIELD_NUMBER- See Also:
-
ENTRY_SYNC_MODE_FIELD_NUMBER
public static final int ENTRY_SYNC_MODE_FIELD_NUMBER- See Also:
-
ASPECT_SYNC_MODE_FIELD_NUMBER
public static final int ASPECT_SYNC_MODE_FIELD_NUMBER- See Also:
-
LOG_LEVEL_FIELD_NUMBER
public static final int LOG_LEVEL_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
-
getSourceStorageUri
Optional. The URI of a Cloud Storage bucket or folder (beginning with `gs://` and ending with `/`) that contains the metadata import files for this job. A metadata import file defines the values to set for each of the entries and aspects in a metadata import job. For more information about how to create a metadata import file and the file requirements, see [Metadata import file](https://cloud.google.com/dataplex/docs/import-metadata#metadata-import-file). You can provide multiple metadata import files in the same metadata job. The bucket or folder must contain at least one metadata import file, in JSON Lines format (either `.json` or `.jsonl` file extension). In `FULL` entry sync mode, don't save the metadata import file in a folder named `SOURCE_STORAGE_URI/deletions/`. **Caution**: If the metadata import file contains no data, all entries and aspects that belong to the job's scope are deleted.
string source_storage_uri = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSourceStorageUriin interfaceMetadataJob.ImportJobSpecOrBuilder- Returns:
- The sourceStorageUri.
-
getSourceStorageUriBytes
public com.google.protobuf.ByteString getSourceStorageUriBytes()Optional. The URI of a Cloud Storage bucket or folder (beginning with `gs://` and ending with `/`) that contains the metadata import files for this job. A metadata import file defines the values to set for each of the entries and aspects in a metadata import job. For more information about how to create a metadata import file and the file requirements, see [Metadata import file](https://cloud.google.com/dataplex/docs/import-metadata#metadata-import-file). You can provide multiple metadata import files in the same metadata job. The bucket or folder must contain at least one metadata import file, in JSON Lines format (either `.json` or `.jsonl` file extension). In `FULL` entry sync mode, don't save the metadata import file in a folder named `SOURCE_STORAGE_URI/deletions/`. **Caution**: If the metadata import file contains no data, all entries and aspects that belong to the job's scope are deleted.
string source_storage_uri = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSourceStorageUriBytesin interfaceMetadataJob.ImportJobSpecOrBuilder- Returns:
- The bytes for sourceStorageUri.
-
hasSourceCreateTime
public boolean hasSourceCreateTime()Optional. The time when the process that created the metadata import files began.
.google.protobuf.Timestamp source_create_time = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasSourceCreateTimein interfaceMetadataJob.ImportJobSpecOrBuilder- Returns:
- Whether the sourceCreateTime field is set.
-
getSourceCreateTime
public com.google.protobuf.Timestamp getSourceCreateTime()Optional. The time when the process that created the metadata import files began.
.google.protobuf.Timestamp source_create_time = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSourceCreateTimein interfaceMetadataJob.ImportJobSpecOrBuilder- Returns:
- The sourceCreateTime.
-
getSourceCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getSourceCreateTimeOrBuilder()Optional. The time when the process that created the metadata import files began.
.google.protobuf.Timestamp source_create_time = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSourceCreateTimeOrBuilderin interfaceMetadataJob.ImportJobSpecOrBuilder
-
hasScope
public boolean hasScope()Required. A boundary on the scope of impact that the metadata import job can have.
.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.ImportJobScope scope = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasScopein interfaceMetadataJob.ImportJobSpecOrBuilder- Returns:
- Whether the scope field is set.
-
getScope
Required. A boundary on the scope of impact that the metadata import job can have.
.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.ImportJobScope scope = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getScopein interfaceMetadataJob.ImportJobSpecOrBuilder- Returns:
- The scope.
-
getScopeOrBuilder
Required. A boundary on the scope of impact that the metadata import job can have.
.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.ImportJobScope scope = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getScopeOrBuilderin interfaceMetadataJob.ImportJobSpecOrBuilder
-
getEntrySyncModeValue
public int getEntrySyncModeValue()Required. The sync mode for entries.
.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncMode entry_sync_mode = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEntrySyncModeValuein interfaceMetadataJob.ImportJobSpecOrBuilder- Returns:
- The enum numeric value on the wire for entrySyncMode.
-
getEntrySyncMode
Required. The sync mode for entries.
.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncMode entry_sync_mode = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEntrySyncModein interfaceMetadataJob.ImportJobSpecOrBuilder- Returns:
- The entrySyncMode.
-
getAspectSyncModeValue
public int getAspectSyncModeValue()Required. The sync mode for aspects.
.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncMode aspect_sync_mode = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getAspectSyncModeValuein interfaceMetadataJob.ImportJobSpecOrBuilder- Returns:
- The enum numeric value on the wire for aspectSyncMode.
-
getAspectSyncMode
Required. The sync mode for aspects.
.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncMode aspect_sync_mode = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getAspectSyncModein interfaceMetadataJob.ImportJobSpecOrBuilder- Returns:
- The aspectSyncMode.
-
getLogLevelValue
public int getLogLevelValue()Optional. The level of logs to write to Cloud Logging for this job. Debug-level logs provide highly-detailed information for troubleshooting, but their increased verbosity could incur [additional costs](https://cloud.google.com/stackdriver/pricing) that might not be merited for all jobs. If unspecified, defaults to `INFO`.
.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.LogLevel log_level = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLogLevelValuein interfaceMetadataJob.ImportJobSpecOrBuilder- Returns:
- The enum numeric value on the wire for logLevel.
-
getLogLevel
Optional. The level of logs to write to Cloud Logging for this job. Debug-level logs provide highly-detailed information for troubleshooting, but their increased verbosity could incur [additional costs](https://cloud.google.com/stackdriver/pricing) that might not be merited for all jobs. If unspecified, defaults to `INFO`.
.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.LogLevel log_level = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLogLevelin interfaceMetadataJob.ImportJobSpecOrBuilder- Returns:
- The logLevel.
-
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 MetadataJob.ImportJobSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MetadataJob.ImportJobSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MetadataJob.ImportJobSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MetadataJob.ImportJobSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MetadataJob.ImportJobSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MetadataJob.ImportJobSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static MetadataJob.ImportJobSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static MetadataJob.ImportJobSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static MetadataJob.ImportJobSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static MetadataJob.ImportJobSpec 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 MetadataJob.ImportJobSpec.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
-