Class ImportCompletionSuggestionsRequest.InlineSource.Builder (0.51.0)

public static final class ImportCompletionSuggestionsRequest.InlineSource.Builder extends GeneratedMessageV3.Builder<ImportCompletionSuggestionsRequest.InlineSource.Builder> implements ImportCompletionSuggestionsRequest.InlineSourceOrBuilder

The inline source for CompletionSuggestions.

Protobuf type google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ImportCompletionSuggestionsRequest.InlineSource.Builder

Static Methods

getDescriptor()

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

Methods

addAllSuggestions(Iterable<? extends CompletionSuggestion> values)

public ImportCompletionSuggestionsRequest.InlineSource.Builder addAllSuggestions(Iterable<? extends CompletionSuggestion> values)

Required. A list of all denylist entries to import. Max of 1000 items.

repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1beta.CompletionSuggestion>
Returns
Type Description
ImportCompletionSuggestionsRequest.InlineSource.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSuggestions(CompletionSuggestion value)

public ImportCompletionSuggestionsRequest.InlineSource.Builder addSuggestions(CompletionSuggestion value)

Required. A list of all denylist entries to import. Max of 1000 items.

repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CompletionSuggestion
Returns
Type Description
ImportCompletionSuggestionsRequest.InlineSource.Builder

addSuggestions(CompletionSuggestion.Builder builderForValue)

public ImportCompletionSuggestionsRequest.InlineSource.Builder addSuggestions(CompletionSuggestion.Builder builderForValue)

Required. A list of all denylist entries to import. Max of 1000 items.

repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue CompletionSuggestion.Builder
Returns
Type Description
ImportCompletionSuggestionsRequest.InlineSource.Builder

addSuggestions(int index, CompletionSuggestion value)

public ImportCompletionSuggestionsRequest.InlineSource.Builder addSuggestions(int index, CompletionSuggestion value)

Required. A list of all denylist entries to import. Max of 1000 items.

repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value CompletionSuggestion
Returns
Type Description
ImportCompletionSuggestionsRequest.InlineSource.Builder

addSuggestions(int index, CompletionSuggestion.Builder builderForValue)

public ImportCompletionSuggestionsRequest.InlineSource.Builder addSuggestions(int index, CompletionSuggestion.Builder builderForValue)

Required. A list of all denylist entries to import. Max of 1000 items.

repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue CompletionSuggestion.Builder
Returns
Type Description
ImportCompletionSuggestionsRequest.InlineSource.Builder

addSuggestionsBuilder()

public CompletionSuggestion.Builder addSuggestionsBuilder()

Required. A list of all denylist entries to import. Max of 1000 items.

repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CompletionSuggestion.Builder

addSuggestionsBuilder(int index)

public CompletionSuggestion.Builder addSuggestionsBuilder(int index)

Required. A list of all denylist entries to import. Max of 1000 items.

repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CompletionSuggestion.Builder

build()

public ImportCompletionSuggestionsRequest.InlineSource build()
Returns
Type Description
ImportCompletionSuggestionsRequest.InlineSource

buildPartial()

public ImportCompletionSuggestionsRequest.InlineSource buildPartial()
Returns
Type Description
ImportCompletionSuggestionsRequest.InlineSource

clear()

public ImportCompletionSuggestionsRequest.InlineSource.Builder clear()
Returns
Type Description
ImportCompletionSuggestionsRequest.InlineSource.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSuggestions()

public ImportCompletionSuggestionsRequest.InlineSource.Builder clearSuggestions()

Required. A list of all denylist entries to import. Max of 1000 items.

repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImportCompletionSuggestionsRequest.InlineSource.Builder

clone()

public ImportCompletionSuggestionsRequest.InlineSource.Builder clone()
Returns
Type Description
ImportCompletionSuggestionsRequest.InlineSource.Builder
Overrides

getDefaultInstanceForType()

public ImportCompletionSuggestionsRequest.InlineSource getDefaultInstanceForType()
Returns
Type Description
ImportCompletionSuggestionsRequest.InlineSource

getDescriptorForType()

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

getSuggestions(int index)

public CompletionSuggestion getSuggestions(int index)

Required. A list of all denylist entries to import. Max of 1000 items.

repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CompletionSuggestion

getSuggestionsBuilder(int index)

public CompletionSuggestion.Builder getSuggestionsBuilder(int index)

Required. A list of all denylist entries to import. Max of 1000 items.

repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CompletionSuggestion.Builder

getSuggestionsBuilderList()

public List<CompletionSuggestion.Builder> getSuggestionsBuilderList()

Required. A list of all denylist entries to import. Max of 1000 items.

repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getSuggestionsCount()

public int getSuggestionsCount()

Required. A list of all denylist entries to import. Max of 1000 items.

repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getSuggestionsList()

public List<CompletionSuggestion> getSuggestionsList()

Required. A list of all denylist entries to import. Max of 1000 items.

repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<CompletionSuggestion>

getSuggestionsOrBuilder(int index)

public CompletionSuggestionOrBuilder getSuggestionsOrBuilder(int index)

Required. A list of all denylist entries to import. Max of 1000 items.

repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CompletionSuggestionOrBuilder

getSuggestionsOrBuilderList()

public List<? extends CompletionSuggestionOrBuilder> getSuggestionsOrBuilderList()

Required. A list of all denylist entries to import. Max of 1000 items.

repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1beta.CompletionSuggestionOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImportCompletionSuggestionsRequest.InlineSource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSuggestions(int index)

public ImportCompletionSuggestionsRequest.InlineSource.Builder removeSuggestions(int index)

Required. A list of all denylist entries to import. Max of 1000 items.

repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ImportCompletionSuggestionsRequest.InlineSource.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSuggestions(int index, CompletionSuggestion value)

public ImportCompletionSuggestionsRequest.InlineSource.Builder setSuggestions(int index, CompletionSuggestion value)

Required. A list of all denylist entries to import. Max of 1000 items.

repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value CompletionSuggestion
Returns
Type Description
ImportCompletionSuggestionsRequest.InlineSource.Builder

setSuggestions(int index, CompletionSuggestion.Builder builderForValue)

public ImportCompletionSuggestionsRequest.InlineSource.Builder setSuggestions(int index, CompletionSuggestion.Builder builderForValue)

Required. A list of all denylist entries to import. Max of 1000 items.

repeated .google.cloud.discoveryengine.v1beta.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue CompletionSuggestion.Builder
Returns
Type Description
ImportCompletionSuggestionsRequest.InlineSource.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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