Class PurgeCompletionSuggestionsResponse.Builder (0.50.0)

public static final class PurgeCompletionSuggestionsResponse.Builder extends GeneratedMessageV3.Builder<PurgeCompletionSuggestionsResponse.Builder> implements PurgeCompletionSuggestionsResponseOrBuilder

Response message for CompletionService.PurgeCompletionSuggestions method.

Protobuf type google.cloud.discoveryengine.v1.PurgeCompletionSuggestionsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllErrorSamples(Iterable<? extends Status> values)

public PurgeCompletionSuggestionsResponse.Builder addAllErrorSamples(Iterable<? extends Status> values)

A sample of errors encountered while processing the request.

repeated .google.rpc.Status error_samples = 2;

Parameter
Name Description
values Iterable<? extends com.google.rpc.Status>
Returns
Type Description
PurgeCompletionSuggestionsResponse.Builder

addErrorSamples(Status value)

public PurgeCompletionSuggestionsResponse.Builder addErrorSamples(Status value)

A sample of errors encountered while processing the request.

repeated .google.rpc.Status error_samples = 2;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
PurgeCompletionSuggestionsResponse.Builder

addErrorSamples(Status.Builder builderForValue)

public PurgeCompletionSuggestionsResponse.Builder addErrorSamples(Status.Builder builderForValue)

A sample of errors encountered while processing the request.

repeated .google.rpc.Status error_samples = 2;

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
PurgeCompletionSuggestionsResponse.Builder

addErrorSamples(int index, Status value)

public PurgeCompletionSuggestionsResponse.Builder addErrorSamples(int index, Status value)

A sample of errors encountered while processing the request.

repeated .google.rpc.Status error_samples = 2;

Parameters
Name Description
index int
value com.google.rpc.Status
Returns
Type Description
PurgeCompletionSuggestionsResponse.Builder

addErrorSamples(int index, Status.Builder builderForValue)

public PurgeCompletionSuggestionsResponse.Builder addErrorSamples(int index, Status.Builder builderForValue)

A sample of errors encountered while processing the request.

repeated .google.rpc.Status error_samples = 2;

Parameters
Name Description
index int
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
PurgeCompletionSuggestionsResponse.Builder

addErrorSamplesBuilder()

public Status.Builder addErrorSamplesBuilder()

A sample of errors encountered while processing the request.

repeated .google.rpc.Status error_samples = 2;

Returns
Type Description
com.google.rpc.Status.Builder

addErrorSamplesBuilder(int index)

public Status.Builder addErrorSamplesBuilder(int index)

A sample of errors encountered while processing the request.

repeated .google.rpc.Status error_samples = 2;

Parameter
Name Description
index int
Returns
Type Description
com.google.rpc.Status.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PurgeCompletionSuggestionsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PurgeCompletionSuggestionsResponse.Builder
Overrides

build()

public PurgeCompletionSuggestionsResponse build()
Returns
Type Description
PurgeCompletionSuggestionsResponse

buildPartial()

public PurgeCompletionSuggestionsResponse buildPartial()
Returns
Type Description
PurgeCompletionSuggestionsResponse

clear()

public PurgeCompletionSuggestionsResponse.Builder clear()
Returns
Type Description
PurgeCompletionSuggestionsResponse.Builder
Overrides

clearErrorSamples()

public PurgeCompletionSuggestionsResponse.Builder clearErrorSamples()

A sample of errors encountered while processing the request.

repeated .google.rpc.Status error_samples = 2;

Returns
Type Description
PurgeCompletionSuggestionsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public PurgeCompletionSuggestionsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PurgeCompletionSuggestionsResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PurgeCompletionSuggestionsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PurgeCompletionSuggestionsResponse.Builder
Overrides

clearPurgeSucceeded()

public PurgeCompletionSuggestionsResponse.Builder clearPurgeSucceeded()

Whether the completion suggestions were successfully purged.

bool purge_succeeded = 1;

Returns
Type Description
PurgeCompletionSuggestionsResponse.Builder

This builder for chaining.

clone()

public PurgeCompletionSuggestionsResponse.Builder clone()
Returns
Type Description
PurgeCompletionSuggestionsResponse.Builder
Overrides

getDefaultInstanceForType()

public PurgeCompletionSuggestionsResponse getDefaultInstanceForType()
Returns
Type Description
PurgeCompletionSuggestionsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getErrorSamples(int index)

public Status getErrorSamples(int index)

A sample of errors encountered while processing the request.

repeated .google.rpc.Status error_samples = 2;

Parameter
Name Description
index int
Returns
Type Description
com.google.rpc.Status

getErrorSamplesBuilder(int index)

public Status.Builder getErrorSamplesBuilder(int index)

A sample of errors encountered while processing the request.

repeated .google.rpc.Status error_samples = 2;

Parameter
Name Description
index int
Returns
Type Description
com.google.rpc.Status.Builder

getErrorSamplesBuilderList()

public List<Status.Builder> getErrorSamplesBuilderList()

A sample of errors encountered while processing the request.

repeated .google.rpc.Status error_samples = 2;

Returns
Type Description
List<com.google.rpc.Status.Builder>

getErrorSamplesCount()

public int getErrorSamplesCount()

A sample of errors encountered while processing the request.

repeated .google.rpc.Status error_samples = 2;

Returns
Type Description
int

getErrorSamplesList()

public List<Status> getErrorSamplesList()

A sample of errors encountered while processing the request.

repeated .google.rpc.Status error_samples = 2;

Returns
Type Description
List<com.google.rpc.Status>

getErrorSamplesOrBuilder(int index)

public StatusOrBuilder getErrorSamplesOrBuilder(int index)

A sample of errors encountered while processing the request.

repeated .google.rpc.Status error_samples = 2;

Parameter
Name Description
index int
Returns
Type Description
com.google.rpc.StatusOrBuilder

getErrorSamplesOrBuilderList()

public List<? extends StatusOrBuilder> getErrorSamplesOrBuilderList()

A sample of errors encountered while processing the request.

repeated .google.rpc.Status error_samples = 2;

Returns
Type Description
List<? extends com.google.rpc.StatusOrBuilder>

getPurgeSucceeded()

public boolean getPurgeSucceeded()

Whether the completion suggestions were successfully purged.

bool purge_succeeded = 1;

Returns
Type Description
boolean

The purgeSucceeded.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PurgeCompletionSuggestionsResponse other)

public PurgeCompletionSuggestionsResponse.Builder mergeFrom(PurgeCompletionSuggestionsResponse other)
Parameter
Name Description
other PurgeCompletionSuggestionsResponse
Returns
Type Description
PurgeCompletionSuggestionsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PurgeCompletionSuggestionsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PurgeCompletionSuggestionsResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PurgeCompletionSuggestionsResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PurgeCompletionSuggestionsResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PurgeCompletionSuggestionsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PurgeCompletionSuggestionsResponse.Builder
Overrides

removeErrorSamples(int index)

public PurgeCompletionSuggestionsResponse.Builder removeErrorSamples(int index)

A sample of errors encountered while processing the request.

repeated .google.rpc.Status error_samples = 2;

Parameter
Name Description
index int
Returns
Type Description
PurgeCompletionSuggestionsResponse.Builder

setErrorSamples(int index, Status value)

public PurgeCompletionSuggestionsResponse.Builder setErrorSamples(int index, Status value)

A sample of errors encountered while processing the request.

repeated .google.rpc.Status error_samples = 2;

Parameters
Name Description
index int
value com.google.rpc.Status
Returns
Type Description
PurgeCompletionSuggestionsResponse.Builder

setErrorSamples(int index, Status.Builder builderForValue)

public PurgeCompletionSuggestionsResponse.Builder setErrorSamples(int index, Status.Builder builderForValue)

A sample of errors encountered while processing the request.

repeated .google.rpc.Status error_samples = 2;

Parameters
Name Description
index int
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
PurgeCompletionSuggestionsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PurgeCompletionSuggestionsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PurgeCompletionSuggestionsResponse.Builder
Overrides

setPurgeSucceeded(boolean value)

public PurgeCompletionSuggestionsResponse.Builder setPurgeSucceeded(boolean value)

Whether the completion suggestions were successfully purged.

bool purge_succeeded = 1;

Parameter
Name Description
value boolean

The purgeSucceeded to set.

Returns
Type Description
PurgeCompletionSuggestionsResponse.Builder

This builder for chaining.

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

public PurgeCompletionSuggestionsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PurgeCompletionSuggestionsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PurgeCompletionSuggestionsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PurgeCompletionSuggestionsResponse.Builder
Overrides