public final class ImportMetadata extends GeneratedMessageV3 implements ImportMetadataOrBuilder
Metadata related to the progress of the Import operation. This will be
returned by the google.longrunning.Operation.metadata field.
Protobuf type google.cloud.retail.v2.ImportMetadata
Static Fields
public static final int CREATE_TIME_FIELD_NUMBER
Field Value
public static final int FAILURE_COUNT_FIELD_NUMBER
Field Value
public static final int NOTIFICATION_PUBSUB_TOPIC_FIELD_NUMBER
Field Value
public static final int REQUEST_ID_FIELD_NUMBER
Field Value
public static final int SUCCESS_COUNT_FIELD_NUMBER
Field Value
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Static Methods
public static ImportMetadata getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static ImportMetadata.Builder newBuilder()
Returns
public static ImportMetadata.Builder newBuilder(ImportMetadata prototype)
Parameter
Returns
public static ImportMetadata parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ImportMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ImportMetadata parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static ImportMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ImportMetadata parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static ImportMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ImportMetadata parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ImportMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ImportMetadata parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ImportMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ImportMetadata parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static ImportMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<ImportMetadata> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public Timestamp getCreateTime()
Operation create time.
.google.protobuf.Timestamp create_time = 1;
Returns
public TimestampOrBuilder getCreateTimeOrBuilder()
Operation create time.
.google.protobuf.Timestamp create_time = 1;
Returns
public ImportMetadata getDefaultInstanceForType()
Returns
public long getFailureCount()
Count of entries that encountered errors while processing.
int64 failure_count = 4;
Returns
Type | Description |
long | The failureCount.
|
public String getNotificationPubsubTopic()
Pub/Sub topic for receiving notification. If this field is set,
when the import is finished, a notification will be sent to
specified Pub/Sub topic. The message data will be JSON string of a
Operation.
Format of the Pub/Sub topic is projects/{project}/topics/{topic}
.
string notification_pubsub_topic = 6;
Returns
Type | Description |
String | The notificationPubsubTopic.
|
public ByteString getNotificationPubsubTopicBytes()
Pub/Sub topic for receiving notification. If this field is set,
when the import is finished, a notification will be sent to
specified Pub/Sub topic. The message data will be JSON string of a
Operation.
Format of the Pub/Sub topic is projects/{project}/topics/{topic}
.
string notification_pubsub_topic = 6;
Returns
Type | Description |
ByteString | The bytes for notificationPubsubTopic.
|
public Parser<ImportMetadata> getParserForType()
Returns
Overrides
public String getRequestId()
Deprecated. google.cloud.retail.v2.ImportMetadata.request_id is deprecated. See
google/cloud/retail/v2/import_config.proto;l=345
Deprecated. This field is never set.
string request_id = 5 [deprecated = true];
Returns
Type | Description |
String | The requestId.
|
public ByteString getRequestIdBytes()
Deprecated. google.cloud.retail.v2.ImportMetadata.request_id is deprecated. See
google/cloud/retail/v2/import_config.proto;l=345
Deprecated. This field is never set.
string request_id = 5 [deprecated = true];
Returns
public int getSerializedSize()
Returns
Overrides
public long getSuccessCount()
Count of entries that were processed successfully.
int64 success_count = 3;
Returns
Type | Description |
long | The successCount.
|
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
public Timestamp getUpdateTime()
Operation last update time. If the operation is done, this is also the
finish time.
.google.protobuf.Timestamp update_time = 2;
Returns
public TimestampOrBuilder getUpdateTimeOrBuilder()
Operation last update time. If the operation is done, this is also the
finish time.
.google.protobuf.Timestamp update_time = 2;
Returns
public boolean hasCreateTime()
Operation create time.
.google.protobuf.Timestamp create_time = 1;
Returns
Type | Description |
boolean | Whether the createTime field is set.
|
public boolean hasUpdateTime()
Operation last update time. If the operation is done, this is also the
finish time.
.google.protobuf.Timestamp update_time = 2;
Returns
Type | Description |
boolean | Whether the updateTime field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public ImportMetadata.Builder newBuilderForType()
Returns
protected ImportMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public ImportMetadata.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions