Class ImportMetadata.Builder (2.3.0)

public static final class ImportMetadata.Builder extends GeneratedMessageV3.Builder<ImportMetadata.Builder> 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.v2beta.ImportMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImportMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImportMetadata.Builder
Overrides

build()

public ImportMetadata build()
Returns
TypeDescription
ImportMetadata

buildPartial()

public ImportMetadata buildPartial()
Returns
TypeDescription
ImportMetadata

clear()

public ImportMetadata.Builder clear()
Returns
TypeDescription
ImportMetadata.Builder
Overrides

clearCreateTime()

public ImportMetadata.Builder clearCreateTime()

Operation create time.

.google.protobuf.Timestamp create_time = 1;

Returns
TypeDescription
ImportMetadata.Builder

clearFailureCount()

public ImportMetadata.Builder clearFailureCount()

Count of entries that encountered errors while processing.

int64 failure_count = 4;

Returns
TypeDescription
ImportMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ImportMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ImportMetadata.Builder
Overrides

clearNotificationPubsubTopic()

public ImportMetadata.Builder clearNotificationPubsubTopic()

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
TypeDescription
ImportMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ImportMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ImportMetadata.Builder
Overrides

clearRequestId() (deprecated)

public ImportMetadata.Builder clearRequestId()

Deprecated. google.cloud.retail.v2beta.ImportMetadata.request_id is deprecated. See google/cloud/retail/v2beta/import_config.proto;l=341

Deprecated. This field is never set.

string request_id = 5 [deprecated = true];

Returns
TypeDescription
ImportMetadata.Builder

This builder for chaining.

clearSuccessCount()

public ImportMetadata.Builder clearSuccessCount()

Count of entries that were processed successfully.

int64 success_count = 3;

Returns
TypeDescription
ImportMetadata.Builder

This builder for chaining.

clearUpdateTime()

public ImportMetadata.Builder clearUpdateTime()

Operation last update time. If the operation is done, this is also the finish time.

.google.protobuf.Timestamp update_time = 2;

Returns
TypeDescription
ImportMetadata.Builder

clone()

public ImportMetadata.Builder clone()
Returns
TypeDescription
ImportMetadata.Builder
Overrides

getCreateTime()

public Timestamp getCreateTime()

Operation create time.

.google.protobuf.Timestamp create_time = 1;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Operation create time.

.google.protobuf.Timestamp create_time = 1;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Operation create time.

.google.protobuf.Timestamp create_time = 1;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public ImportMetadata getDefaultInstanceForType()
Returns
TypeDescription
ImportMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFailureCount()

public long getFailureCount()

Count of entries that encountered errors while processing.

int64 failure_count = 4;

Returns
TypeDescription
long

The failureCount.

getNotificationPubsubTopic()

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
TypeDescription
String

The notificationPubsubTopic.

getNotificationPubsubTopicBytes()

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
TypeDescription
ByteString

The bytes for notificationPubsubTopic.

getRequestId() (deprecated)

public String getRequestId()

Deprecated. google.cloud.retail.v2beta.ImportMetadata.request_id is deprecated. See google/cloud/retail/v2beta/import_config.proto;l=341

Deprecated. This field is never set.

string request_id = 5 [deprecated = true];

Returns
TypeDescription
String

The requestId.

getRequestIdBytes() (deprecated)

public ByteString getRequestIdBytes()

Deprecated. google.cloud.retail.v2beta.ImportMetadata.request_id is deprecated. See google/cloud/retail/v2beta/import_config.proto;l=341

Deprecated. This field is never set.

string request_id = 5 [deprecated = true];

Returns
TypeDescription
ByteString

The bytes for requestId.

getSuccessCount()

public long getSuccessCount()

Count of entries that were processed successfully.

int64 success_count = 3;

Returns
TypeDescription
long

The successCount.

getUpdateTime()

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
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Operation last update time. If the operation is done, this is also the finish time.

.google.protobuf.Timestamp update_time = 2;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

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
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Operation create time.

.google.protobuf.Timestamp create_time = 1;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasUpdateTime()

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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public ImportMetadata.Builder mergeCreateTime(Timestamp value)

Operation create time.

.google.protobuf.Timestamp create_time = 1;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ImportMetadata.Builder

mergeFrom(ImportMetadata other)

public ImportMetadata.Builder mergeFrom(ImportMetadata other)
Parameter
NameDescription
otherImportMetadata
Returns
TypeDescription
ImportMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImportMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportMetadata.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ImportMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ImportMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImportMetadata.Builder
Overrides

mergeUpdateTime(Timestamp value)

public ImportMetadata.Builder mergeUpdateTime(Timestamp value)

Operation last update time. If the operation is done, this is also the finish time.

.google.protobuf.Timestamp update_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ImportMetadata.Builder

setCreateTime(Timestamp value)

public ImportMetadata.Builder setCreateTime(Timestamp value)

Operation create time.

.google.protobuf.Timestamp create_time = 1;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ImportMetadata.Builder

setCreateTime(Timestamp.Builder builderForValue)

public ImportMetadata.Builder setCreateTime(Timestamp.Builder builderForValue)

Operation create time.

.google.protobuf.Timestamp create_time = 1;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ImportMetadata.Builder

setFailureCount(long value)

public ImportMetadata.Builder setFailureCount(long value)

Count of entries that encountered errors while processing.

int64 failure_count = 4;

Parameter
NameDescription
valuelong

The failureCount to set.

Returns
TypeDescription
ImportMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ImportMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImportMetadata.Builder
Overrides

setNotificationPubsubTopic(String value)

public ImportMetadata.Builder setNotificationPubsubTopic(String value)

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;

Parameter
NameDescription
valueString

The notificationPubsubTopic to set.

Returns
TypeDescription
ImportMetadata.Builder

This builder for chaining.

setNotificationPubsubTopicBytes(ByteString value)

public ImportMetadata.Builder setNotificationPubsubTopicBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for notificationPubsubTopic to set.

Returns
TypeDescription
ImportMetadata.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ImportMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ImportMetadata.Builder
Overrides

setRequestId(String value) (deprecated)

public ImportMetadata.Builder setRequestId(String value)

Deprecated. google.cloud.retail.v2beta.ImportMetadata.request_id is deprecated. See google/cloud/retail/v2beta/import_config.proto;l=341

Deprecated. This field is never set.

string request_id = 5 [deprecated = true];

Parameter
NameDescription
valueString

The requestId to set.

Returns
TypeDescription
ImportMetadata.Builder

This builder for chaining.

setRequestIdBytes(ByteString value) (deprecated)

public ImportMetadata.Builder setRequestIdBytes(ByteString value)

Deprecated. google.cloud.retail.v2beta.ImportMetadata.request_id is deprecated. See google/cloud/retail/v2beta/import_config.proto;l=341

Deprecated. This field is never set.

string request_id = 5 [deprecated = true];

Parameter
NameDescription
valueByteString

The bytes for requestId to set.

Returns
TypeDescription
ImportMetadata.Builder

This builder for chaining.

setSuccessCount(long value)

public ImportMetadata.Builder setSuccessCount(long value)

Count of entries that were processed successfully.

int64 success_count = 3;

Parameter
NameDescription
valuelong

The successCount to set.

Returns
TypeDescription
ImportMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ImportMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImportMetadata.Builder
Overrides

setUpdateTime(Timestamp value)

public ImportMetadata.Builder setUpdateTime(Timestamp value)

Operation last update time. If the operation is done, this is also the finish time.

.google.protobuf.Timestamp update_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ImportMetadata.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public ImportMetadata.Builder setUpdateTime(Timestamp.Builder builderForValue)

Operation last update time. If the operation is done, this is also the finish time.

.google.protobuf.Timestamp update_time = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ImportMetadata.Builder