Class Reply.Builder (0.31.0)

public static final class Reply.Builder extends GeneratedMessageV3.Builder<Reply.Builder> implements ReplyOrBuilder

Defines a reply message to user.

Protobuf type google.cloud.discoveryengine.v1alpha.Reply

Implements

ReplyOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllReferences(Iterable<? extends Reply.Reference> values) (deprecated)

public Reply.Builder addAllReferences(Iterable<? extends Reply.Reference> values)

References in the reply.

repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.discoveryengine.v1alpha.Reply.Reference>
Returns
TypeDescription
Reply.Builder

addReferences(Reply.Reference value) (deprecated)

public Reply.Builder addReferences(Reply.Reference value)

References in the reply.

repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true];

Parameter
NameDescription
valueReply.Reference
Returns
TypeDescription
Reply.Builder

addReferences(Reply.Reference.Builder builderForValue) (deprecated)

public Reply.Builder addReferences(Reply.Reference.Builder builderForValue)

References in the reply.

repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true];

Parameter
NameDescription
builderForValueReply.Reference.Builder
Returns
TypeDescription
Reply.Builder

addReferences(int index, Reply.Reference value) (deprecated)

public Reply.Builder addReferences(int index, Reply.Reference value)

References in the reply.

repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true];

Parameters
NameDescription
indexint
valueReply.Reference
Returns
TypeDescription
Reply.Builder

addReferences(int index, Reply.Reference.Builder builderForValue) (deprecated)

public Reply.Builder addReferences(int index, Reply.Reference.Builder builderForValue)

References in the reply.

repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true];

Parameters
NameDescription
indexint
builderForValueReply.Reference.Builder
Returns
TypeDescription
Reply.Builder

addReferencesBuilder() (deprecated)

public Reply.Reference.Builder addReferencesBuilder()

References in the reply.

repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true];

Returns
TypeDescription
Reply.Reference.Builder

addReferencesBuilder(int index) (deprecated)

public Reply.Reference.Builder addReferencesBuilder(int index)

References in the reply.

repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true];

Parameter
NameDescription
indexint
Returns
TypeDescription
Reply.Reference.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Reply.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Reply.Builder
Overrides

build()

public Reply build()
Returns
TypeDescription
Reply

buildPartial()

public Reply buildPartial()
Returns
TypeDescription
Reply

clear()

public Reply.Builder clear()
Returns
TypeDescription
Reply.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Reply.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Reply.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Reply.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Reply.Builder
Overrides

clearReferences() (deprecated)

public Reply.Builder clearReferences()

References in the reply.

repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true];

Returns
TypeDescription
Reply.Builder

clearReply() (deprecated)

public Reply.Builder clearReply()

Deprecated. google.cloud.discoveryengine.v1alpha.Reply.reply is deprecated. See google/cloud/discoveryengine/v1alpha/conversation.proto;l=98

DEPRECATED: use summary instead. Text reply.

string reply = 1 [deprecated = true];

Returns
TypeDescription
Reply.Builder

This builder for chaining.

clearSummary()

public Reply.Builder clearSummary()

Summary based on search results.

.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 3;

Returns
TypeDescription
Reply.Builder

clone()

public Reply.Builder clone()
Returns
TypeDescription
Reply.Builder
Overrides

getDefaultInstanceForType()

public Reply getDefaultInstanceForType()
Returns
TypeDescription
Reply

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getReferences(int index) (deprecated)

public Reply.Reference getReferences(int index)

References in the reply.

repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true];

Parameter
NameDescription
indexint
Returns
TypeDescription
Reply.Reference

getReferencesBuilder(int index) (deprecated)

public Reply.Reference.Builder getReferencesBuilder(int index)

References in the reply.

repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true];

Parameter
NameDescription
indexint
Returns
TypeDescription
Reply.Reference.Builder

getReferencesBuilderList() (deprecated)

public List<Reply.Reference.Builder> getReferencesBuilderList()

References in the reply.

repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true];

Returns
TypeDescription
List<Builder>

getReferencesCount() (deprecated)

public int getReferencesCount()

References in the reply.

repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true];

Returns
TypeDescription
int

getReferencesList() (deprecated)

public List<Reply.Reference> getReferencesList()

References in the reply.

repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true];

Returns
TypeDescription
List<Reference>

getReferencesOrBuilder(int index) (deprecated)

public Reply.ReferenceOrBuilder getReferencesOrBuilder(int index)

References in the reply.

repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true];

Parameter
NameDescription
indexint
Returns
TypeDescription
Reply.ReferenceOrBuilder

getReferencesOrBuilderList() (deprecated)

public List<? extends Reply.ReferenceOrBuilder> getReferencesOrBuilderList()

References in the reply.

repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true];

Returns
TypeDescription
List<? extends com.google.cloud.discoveryengine.v1alpha.Reply.ReferenceOrBuilder>

getReply() (deprecated)

public String getReply()

Deprecated. google.cloud.discoveryengine.v1alpha.Reply.reply is deprecated. See google/cloud/discoveryengine/v1alpha/conversation.proto;l=98

DEPRECATED: use summary instead. Text reply.

string reply = 1 [deprecated = true];

Returns
TypeDescription
String

The reply.

getReplyBytes() (deprecated)

public ByteString getReplyBytes()

Deprecated. google.cloud.discoveryengine.v1alpha.Reply.reply is deprecated. See google/cloud/discoveryengine/v1alpha/conversation.proto;l=98

DEPRECATED: use summary instead. Text reply.

string reply = 1 [deprecated = true];

Returns
TypeDescription
ByteString

The bytes for reply.

getSummary()

public SearchResponse.Summary getSummary()

Summary based on search results.

.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 3;

Returns
TypeDescription
SearchResponse.Summary

The summary.

getSummaryBuilder()

public SearchResponse.Summary.Builder getSummaryBuilder()

Summary based on search results.

.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 3;

Returns
TypeDescription
SearchResponse.Summary.Builder

getSummaryOrBuilder()

public SearchResponse.SummaryOrBuilder getSummaryOrBuilder()

Summary based on search results.

.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 3;

Returns
TypeDescription
SearchResponse.SummaryOrBuilder

hasSummary()

public boolean hasSummary()

Summary based on search results.

.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 3;

Returns
TypeDescription
boolean

Whether the summary field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Reply other)

public Reply.Builder mergeFrom(Reply other)
Parameter
NameDescription
otherReply
Returns
TypeDescription
Reply.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Reply.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Reply.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Reply.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Reply.Builder
Overrides

mergeSummary(SearchResponse.Summary value)

public Reply.Builder mergeSummary(SearchResponse.Summary value)

Summary based on search results.

.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 3;

Parameter
NameDescription
valueSearchResponse.Summary
Returns
TypeDescription
Reply.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Reply.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Reply.Builder
Overrides

removeReferences(int index) (deprecated)

public Reply.Builder removeReferences(int index)

References in the reply.

repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true];

Parameter
NameDescription
indexint
Returns
TypeDescription
Reply.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Reply.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Reply.Builder
Overrides

setReferences(int index, Reply.Reference value) (deprecated)

public Reply.Builder setReferences(int index, Reply.Reference value)

References in the reply.

repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true];

Parameters
NameDescription
indexint
valueReply.Reference
Returns
TypeDescription
Reply.Builder

setReferences(int index, Reply.Reference.Builder builderForValue) (deprecated)

public Reply.Builder setReferences(int index, Reply.Reference.Builder builderForValue)

References in the reply.

repeated .google.cloud.discoveryengine.v1alpha.Reply.Reference references = 2 [deprecated = true];

Parameters
NameDescription
indexint
builderForValueReply.Reference.Builder
Returns
TypeDescription
Reply.Builder

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

public Reply.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Reply.Builder
Overrides

setReply(String value) (deprecated)

public Reply.Builder setReply(String value)

Deprecated. google.cloud.discoveryengine.v1alpha.Reply.reply is deprecated. See google/cloud/discoveryengine/v1alpha/conversation.proto;l=98

DEPRECATED: use summary instead. Text reply.

string reply = 1 [deprecated = true];

Parameter
NameDescription
valueString

The reply to set.

Returns
TypeDescription
Reply.Builder

This builder for chaining.

setReplyBytes(ByteString value) (deprecated)

public Reply.Builder setReplyBytes(ByteString value)

Deprecated. google.cloud.discoveryengine.v1alpha.Reply.reply is deprecated. See google/cloud/discoveryengine/v1alpha/conversation.proto;l=98

DEPRECATED: use summary instead. Text reply.

string reply = 1 [deprecated = true];

Parameter
NameDescription
valueByteString

The bytes for reply to set.

Returns
TypeDescription
Reply.Builder

This builder for chaining.

setSummary(SearchResponse.Summary value)

public Reply.Builder setSummary(SearchResponse.Summary value)

Summary based on search results.

.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 3;

Parameter
NameDescription
valueSearchResponse.Summary
Returns
TypeDescription
Reply.Builder

setSummary(SearchResponse.Summary.Builder builderForValue)

public Reply.Builder setSummary(SearchResponse.Summary.Builder builderForValue)

Summary based on search results.

.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary summary = 3;

Parameter
NameDescription
builderForValueSearchResponse.Summary.Builder
Returns
TypeDescription
Reply.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Reply.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Reply.Builder
Overrides