public static final class MetadataJob.ImportJobSpec extends GeneratedMessageV3 implements MetadataJob.ImportJobSpecOrBuilder
Job specification for a metadata import job
Protobuf type google.cloud.dataplex.v1.MetadataJob.ImportJobSpec
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int ASPECT_SYNC_MODE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
ENTRY_SYNC_MODE_FIELD_NUMBER
public static final int ENTRY_SYNC_MODE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int LOG_LEVEL_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int SCOPE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int SOURCE_CREATE_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int SOURCE_STORAGE_URI_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static MetadataJob.ImportJobSpec getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static MetadataJob.ImportJobSpec.Builder newBuilder()
public static MetadataJob.ImportJobSpec.Builder newBuilder(MetadataJob.ImportJobSpec prototype)
public static MetadataJob.ImportJobSpec parseDelimitedFrom(InputStream input)
public static MetadataJob.ImportJobSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MetadataJob.ImportJobSpec parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static MetadataJob.ImportJobSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MetadataJob.ImportJobSpec parseFrom(ByteString data)
public static MetadataJob.ImportJobSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MetadataJob.ImportJobSpec parseFrom(CodedInputStream input)
public static MetadataJob.ImportJobSpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static MetadataJob.ImportJobSpec parseFrom(InputStream input)
public static MetadataJob.ImportJobSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MetadataJob.ImportJobSpec parseFrom(ByteBuffer data)
public static MetadataJob.ImportJobSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<MetadataJob.ImportJobSpec> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public MetadataJob.ImportJobSpec.SyncMode getAspectSyncMode()
Required. The sync mode for aspects.
Only INCREMENTAL
mode is supported for aspects. An aspect is modified
only if the metadata import file includes a reference to the aspect in
the update_mask
field and the aspect_keys
field.
.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncMode aspect_sync_mode = 4 [(.google.api.field_behavior) = REQUIRED];
public int getAspectSyncModeValue()
Required. The sync mode for aspects.
Only INCREMENTAL
mode is supported for aspects. An aspect is modified
only if the metadata import file includes a reference to the aspect in
the update_mask
field and the aspect_keys
field.
.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncMode aspect_sync_mode = 4 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
int |
The enum numeric value on the wire for aspectSyncMode.
|
public MetadataJob.ImportJobSpec getDefaultInstanceForType()
getEntrySyncMode()
public MetadataJob.ImportJobSpec.SyncMode getEntrySyncMode()
Required. The sync mode for entries.
Only FULL
mode is supported for entries. All entries in the job's scope
are modified. If an entry exists in Dataplex but isn't included in the
metadata import file, the entry is deleted when you run the metadata job.
.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncMode entry_sync_mode = 3 [(.google.api.field_behavior) = REQUIRED];
getEntrySyncModeValue()
public int getEntrySyncModeValue()
Required. The sync mode for entries.
Only FULL
mode is supported for entries. All entries in the job's scope
are modified. If an entry exists in Dataplex but isn't included in the
metadata import file, the entry is deleted when you run the metadata job.
.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncMode entry_sync_mode = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
int |
The enum numeric value on the wire for entrySyncMode.
|
public MetadataJob.ImportJobSpec.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 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];
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 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];
Returns |
Type |
Description |
int |
The enum numeric value on the wire for logLevel.
|
public Parser<MetadataJob.ImportJobSpec> getParserForType()
Overrides
public MetadataJob.ImportJobSpec.ImportJobScope 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];
public MetadataJob.ImportJobSpec.ImportJobScopeOrBuilder 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];
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
public 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];
Returns |
Type |
Description |
Timestamp |
The sourceCreateTime.
|
public 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];
public String 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 job. For more information about how to create a
metadata import file and the file requirements, see 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];
Returns |
Type |
Description |
String |
The sourceStorageUri.
|
public 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 job. For more information about how to create a
metadata import file and the file requirements, see 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];
Returns |
Type |
Description |
ByteString |
The bytes for sourceStorageUri.
|
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];
Returns |
Type |
Description |
boolean |
Whether the scope field is set.
|
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];
Returns |
Type |
Description |
boolean |
Whether the sourceCreateTime field is set.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public MetadataJob.ImportJobSpec.Builder newBuilderForType()
protected MetadataJob.ImportJobSpec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public MetadataJob.ImportJobSpec.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides