Class ImportSampleQueriesRequest.InlineSource.Builder (0.45.0)

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

The inline source for SampleQuerys.

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

Static Methods

getDescriptor()

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

Methods

addAllSampleQueries(Iterable<? extends SampleQuery> values)

public ImportSampleQueriesRequest.InlineSource.Builder addAllSampleQueries(Iterable<? extends SampleQuery> values)

Required. A list of SampleQuerys to import. Max of 1000 items.

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSampleQueries(SampleQuery value)

public ImportSampleQueriesRequest.InlineSource.Builder addSampleQueries(SampleQuery value)

Required. A list of SampleQuerys to import. Max of 1000 items.

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

Parameter
Name Description
value SampleQuery
Returns
Type Description
ImportSampleQueriesRequest.InlineSource.Builder

addSampleQueries(SampleQuery.Builder builderForValue)

public ImportSampleQueriesRequest.InlineSource.Builder addSampleQueries(SampleQuery.Builder builderForValue)

Required. A list of SampleQuerys to import. Max of 1000 items.

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

Parameter
Name Description
builderForValue SampleQuery.Builder
Returns
Type Description
ImportSampleQueriesRequest.InlineSource.Builder

addSampleQueries(int index, SampleQuery value)

public ImportSampleQueriesRequest.InlineSource.Builder addSampleQueries(int index, SampleQuery value)

Required. A list of SampleQuerys to import. Max of 1000 items.

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

Parameters
Name Description
index int
value SampleQuery
Returns
Type Description
ImportSampleQueriesRequest.InlineSource.Builder

addSampleQueries(int index, SampleQuery.Builder builderForValue)

public ImportSampleQueriesRequest.InlineSource.Builder addSampleQueries(int index, SampleQuery.Builder builderForValue)

Required. A list of SampleQuerys to import. Max of 1000 items.

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

Parameters
Name Description
index int
builderForValue SampleQuery.Builder
Returns
Type Description
ImportSampleQueriesRequest.InlineSource.Builder

addSampleQueriesBuilder()

public SampleQuery.Builder addSampleQueriesBuilder()

Required. A list of SampleQuerys to import. Max of 1000 items.

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

Returns
Type Description
SampleQuery.Builder

addSampleQueriesBuilder(int index)

public SampleQuery.Builder addSampleQueriesBuilder(int index)

Required. A list of SampleQuerys to import. Max of 1000 items.

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

Parameter
Name Description
index int
Returns
Type Description
SampleQuery.Builder

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSampleQueries()

public ImportSampleQueriesRequest.InlineSource.Builder clearSampleQueries()

Required. A list of SampleQuerys to import. Max of 1000 items.

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

Returns
Type Description
ImportSampleQueriesRequest.InlineSource.Builder

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getSampleQueries(int index)

public SampleQuery getSampleQueries(int index)

Required. A list of SampleQuerys to import. Max of 1000 items.

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

Parameter
Name Description
index int
Returns
Type Description
SampleQuery

getSampleQueriesBuilder(int index)

public SampleQuery.Builder getSampleQueriesBuilder(int index)

Required. A list of SampleQuerys to import. Max of 1000 items.

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

Parameter
Name Description
index int
Returns
Type Description
SampleQuery.Builder

getSampleQueriesBuilderList()

public List<SampleQuery.Builder> getSampleQueriesBuilderList()

Required. A list of SampleQuerys to import. Max of 1000 items.

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

Returns
Type Description
List<Builder>

getSampleQueriesCount()

public int getSampleQueriesCount()

Required. A list of SampleQuerys to import. Max of 1000 items.

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

Returns
Type Description
int

getSampleQueriesList()

public List<SampleQuery> getSampleQueriesList()

Required. A list of SampleQuerys to import. Max of 1000 items.

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

Returns
Type Description
List<SampleQuery>

getSampleQueriesOrBuilder(int index)

public SampleQueryOrBuilder getSampleQueriesOrBuilder(int index)

Required. A list of SampleQuerys to import. Max of 1000 items.

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

Parameter
Name Description
index int
Returns
Type Description
SampleQueryOrBuilder

getSampleQueriesOrBuilderList()

public List<? extends SampleQueryOrBuilder> getSampleQueriesOrBuilderList()

Required. A list of SampleQuerys to import. Max of 1000 items.

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

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImportSampleQueriesRequest.InlineSource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSampleQueries(int index)

public ImportSampleQueriesRequest.InlineSource.Builder removeSampleQueries(int index)

Required. A list of SampleQuerys to import. Max of 1000 items.

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSampleQueries(int index, SampleQuery value)

public ImportSampleQueriesRequest.InlineSource.Builder setSampleQueries(int index, SampleQuery value)

Required. A list of SampleQuerys to import. Max of 1000 items.

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

Parameters
Name Description
index int
value SampleQuery
Returns
Type Description
ImportSampleQueriesRequest.InlineSource.Builder

setSampleQueries(int index, SampleQuery.Builder builderForValue)

public ImportSampleQueriesRequest.InlineSource.Builder setSampleQueries(int index, SampleQuery.Builder builderForValue)

Required. A list of SampleQuerys to import. Max of 1000 items.

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

Parameters
Name Description
index int
builderForValue SampleQuery.Builder
Returns
Type Description
ImportSampleQueriesRequest.InlineSource.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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