public static final class SampleQuery.Builder extends GeneratedMessageV3.Builder<SampleQuery.Builder> implements SampleQueryOrBuilder
Sample Query captures metadata to be used for evaluation.
Protobuf type google.cloud.discoveryengine.v1beta.SampleQuery
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
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SampleQuery.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SampleQuery build()
buildPartial()
public SampleQuery buildPartial()
clear()
public SampleQuery.Builder clear()
Overrides
clearContent()
public SampleQuery.Builder clearContent()
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];
clearField(Descriptors.FieldDescriptor field)
public SampleQuery.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public SampleQuery.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearQueryEntry()
public SampleQuery.Builder clearQueryEntry()
The query entry.
.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry query_entry = 2;
clone()
public SampleQuery.Builder clone()
Overrides
getContentCase()
public SampleQuery.ContentCase getContentCase()
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];
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Timestamp the
SampleQuery was created
at.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDefaultInstanceForType()
public SampleQuery getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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;
getQueryEntryBuilder()
public SampleQuery.QueryEntry.Builder getQueryEntryBuilder()
The query entry.
.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry query_entry = 2;
getQueryEntryOrBuilder()
public SampleQuery.QueryEntryOrBuilder getQueryEntryOrBuilder()
The query entry.
.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry query_entry = 2;
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
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];
mergeFrom(SampleQuery other)
public SampleQuery.Builder mergeFrom(SampleQuery other)
public SampleQuery.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SampleQuery.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeQueryEntry(SampleQuery.QueryEntry value)
public SampleQuery.Builder mergeQueryEntry(SampleQuery.QueryEntry value)
The query entry.
.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry query_entry = 2;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SampleQuery.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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];
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public SampleQuery.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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.
|
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.
|
setQueryEntry(SampleQuery.QueryEntry value)
public SampleQuery.Builder setQueryEntry(SampleQuery.QueryEntry value)
The query entry.
.google.cloud.discoveryengine.v1beta.SampleQuery.QueryEntry query_entry = 2;
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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SampleQuery.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SampleQuery.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides