public static final class PurgeProductsResponse.Builder extends GeneratedMessageV3.Builder<PurgeProductsResponse.Builder> implements PurgeProductsResponseOrBuilder
Response of the PurgeProductsRequest. If the long running operation is
successfully done, then this message is returned by the
google.longrunning.Operations.response field.
Protobuf type google.cloud.retail.v2.PurgeProductsResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllPurgeSample(Iterable<String> values)
public PurgeProductsResponse.Builder addAllPurgeSample(Iterable<String> values)
A sample of the product names that will be deleted.
Only populated if force
is set to false. A max of 100 names will be
returned and the names are chosen at random.
repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
values |
Iterable<String>
The purgeSample to add.
|
addPurgeSample(String value)
public PurgeProductsResponse.Builder addPurgeSample(String value)
A sample of the product names that will be deleted.
Only populated if force
is set to false. A max of 100 names will be
returned and the names are chosen at random.
repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
String
The purgeSample to add.
|
addPurgeSampleBytes(ByteString value)
public PurgeProductsResponse.Builder addPurgeSampleBytes(ByteString value)
A sample of the product names that will be deleted.
Only populated if force
is set to false. A max of 100 names will be
returned and the names are chosen at random.
repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
ByteString
The bytes of the purgeSample to add.
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PurgeProductsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public PurgeProductsResponse build()
buildPartial()
public PurgeProductsResponse buildPartial()
clear()
public PurgeProductsResponse.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public PurgeProductsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public PurgeProductsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearPurgeCount()
public PurgeProductsResponse.Builder clearPurgeCount()
The total count of products purged as a result of the operation.
int64 purge_count = 1;
clearPurgeSample()
public PurgeProductsResponse.Builder clearPurgeSample()
A sample of the product names that will be deleted.
Only populated if force
is set to false. A max of 100 names will be
returned and the names are chosen at random.
repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... }
clone()
public PurgeProductsResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public PurgeProductsResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getPurgeCount()
public long getPurgeCount()
The total count of products purged as a result of the operation.
int64 purge_count = 1;
Returns |
Type |
Description |
long |
The purgeCount.
|
getPurgeSample(int index)
public String getPurgeSample(int index)
A sample of the product names that will be deleted.
Only populated if force
is set to false. A max of 100 names will be
returned and the names are chosen at random.
repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
String |
The purgeSample at the given index.
|
getPurgeSampleBytes(int index)
public ByteString getPurgeSampleBytes(int index)
A sample of the product names that will be deleted.
Only populated if force
is set to false. A max of 100 names will be
returned and the names are chosen at random.
repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
index |
int
The index of the value to return.
|
Returns |
Type |
Description |
ByteString |
The bytes of the purgeSample at the given index.
|
getPurgeSampleCount()
public int getPurgeSampleCount()
A sample of the product names that will be deleted.
Only populated if force
is set to false. A max of 100 names will be
returned and the names are chosen at random.
repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
int |
The count of purgeSample.
|
getPurgeSampleList()
public ProtocolStringList getPurgeSampleList()
A sample of the product names that will be deleted.
Only populated if force
is set to false. A max of 100 names will be
returned and the names are chosen at random.
repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... }
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(PurgeProductsResponse other)
public PurgeProductsResponse.Builder mergeFrom(PurgeProductsResponse other)
public PurgeProductsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public PurgeProductsResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PurgeProductsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public PurgeProductsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setPurgeCount(long value)
public PurgeProductsResponse.Builder setPurgeCount(long value)
The total count of products purged as a result of the operation.
int64 purge_count = 1;
Parameter |
Name |
Description |
value |
long
The purgeCount to set.
|
setPurgeSample(int index, String value)
public PurgeProductsResponse.Builder setPurgeSample(int index, String value)
A sample of the product names that will be deleted.
Only populated if force
is set to false. A max of 100 names will be
returned and the names are chosen at random.
repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... }
Parameters |
Name |
Description |
index |
int
The index to set the value at.
|
value |
String
The purgeSample to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PurgeProductsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PurgeProductsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides