Class SampleQuery.Builder (0.79.0)

public static final class SampleQuery.Builder extends GeneratedMessage.Builder<SampleQuery.Builder> implements SampleQueryOrBuilder

Sample Query captures metadata to be used for evaluation.

Protobuf type google.cloud.discoveryengine.v1beta.SampleQuery

Static Methods

getDescriptor()

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

Methods

build()

public SampleQuery build()
Returns
Type Description
SampleQuery

buildPartial()

public SampleQuery buildPartial()
Returns
Type Description
SampleQuery

clear()

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

clearContent()

public SampleQuery.Builder clearContent()
Returns
Type Description
SampleQuery.Builder

clearCreateTime()

public SampleQuery.Builder clearCreateTime()

Output only. Timestamp the SampleQuery was created at.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SampleQuery.Builder

clearName()

public SampleQuery.Builder clearName()

Identifier. The full resource name of the sample query, in the format of projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}.

This field must be a UTF-8 encoded string with a length limit of 1024 characters.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
SampleQuery.Builder

This builder for chaining.

clearQueryEntry()

public SampleQuery.Builder clearQueryEntry()

The query entry.

.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry query_entry = 2;

Returns
Type Description
SampleQuery.Builder

getContentCase()

public SampleQuery.ContentCase getContentCase()
Returns
Type Description
SampleQuery.ContentCase

getCreateTime()

public Timestamp getCreateTime()

Output only. Timestamp the SampleQuery was created at.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Timestamp the SampleQuery was created at.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Timestamp the SampleQuery was created at.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public SampleQuery getDefaultInstanceForType()
Returns
Type Description
SampleQuery

getDescriptorForType()

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

getName()

public String getName()

Identifier. The full resource name of the sample query, in the format of projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}.

This field must be a UTF-8 encoded string with a length limit of 1024 characters.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The full resource name of the sample query, in the format of projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}.

This field must be a UTF-8 encoded string with a length limit of 1024 characters.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getQueryEntry()

public SampleQuery.QueryEntry getQueryEntry()

The query entry.

.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry query_entry = 2;

Returns
Type Description
SampleQuery.QueryEntry

The queryEntry.

getQueryEntryBuilder()

public SampleQuery.QueryEntry.Builder getQueryEntryBuilder()

The query entry.

.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry query_entry = 2;

Returns
Type Description
SampleQuery.QueryEntry.Builder

getQueryEntryOrBuilder()

public SampleQuery.QueryEntryOrBuilder getQueryEntryOrBuilder()

The query entry.

.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry query_entry = 2;

Returns
Type Description
SampleQuery.QueryEntryOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Timestamp the SampleQuery was created at.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasQueryEntry()

public boolean hasQueryEntry()

The query entry.

.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry query_entry = 2;

Returns
Type Description
boolean

Whether the queryEntry field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public SampleQuery.Builder mergeCreateTime(Timestamp value)

Output only. Timestamp the SampleQuery was created at.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
SampleQuery.Builder

mergeFrom(SampleQuery other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeQueryEntry(SampleQuery.QueryEntry value)

public SampleQuery.Builder mergeQueryEntry(SampleQuery.QueryEntry value)

The query entry.

.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry query_entry = 2;

Parameter
Name Description
value SampleQuery.QueryEntry
Returns
Type Description
SampleQuery.Builder

setCreateTime(Timestamp value)

public SampleQuery.Builder setCreateTime(Timestamp value)

Output only. Timestamp the SampleQuery was created at.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
SampleQuery.Builder

setCreateTime(Timestamp.Builder builderForValue)

public SampleQuery.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Timestamp the SampleQuery was created at.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SampleQuery.Builder

setName(String value)

public SampleQuery.Builder setName(String value)

Identifier. The full resource name of the sample query, in the format of projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}.

This field must be a UTF-8 encoded string with a length limit of 1024 characters.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SampleQuery.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SampleQuery.Builder setNameBytes(ByteString value)

Identifier. The full resource name of the sample query, in the format of projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}.

This field must be a UTF-8 encoded string with a length limit of 1024 characters.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SampleQuery.Builder

This builder for chaining.

setQueryEntry(SampleQuery.QueryEntry value)

public SampleQuery.Builder setQueryEntry(SampleQuery.QueryEntry value)

The query entry.

.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry query_entry = 2;

Parameter
Name Description
value SampleQuery.QueryEntry
Returns
Type Description
SampleQuery.Builder

setQueryEntry(SampleQuery.QueryEntry.Builder builderForValue)

public SampleQuery.Builder setQueryEntry(SampleQuery.QueryEntry.Builder builderForValue)

The query entry.

.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry query_entry = 2;

Parameter
Name Description
builderForValue SampleQuery.QueryEntry.Builder
Returns
Type Description
SampleQuery.Builder