Class Answer.Reference.StructuredDocumentInfo.Builder (0.48.0)

public static final class Answer.Reference.StructuredDocumentInfo.Builder extends GeneratedMessageV3.Builder<Answer.Reference.StructuredDocumentInfo.Builder> implements Answer.Reference.StructuredDocumentInfoOrBuilder

Structured search information.

Protobuf type google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Answer.Reference.StructuredDocumentInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Answer.Reference.StructuredDocumentInfo.Builder
Overrides

build()

public Answer.Reference.StructuredDocumentInfo build()
Returns
Type Description
Answer.Reference.StructuredDocumentInfo

buildPartial()

public Answer.Reference.StructuredDocumentInfo buildPartial()
Returns
Type Description
Answer.Reference.StructuredDocumentInfo

clear()

public Answer.Reference.StructuredDocumentInfo.Builder clear()
Returns
Type Description
Answer.Reference.StructuredDocumentInfo.Builder
Overrides

clearDocument()

public Answer.Reference.StructuredDocumentInfo.Builder clearDocument()

Document resource name.

string document = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
Answer.Reference.StructuredDocumentInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Answer.Reference.StructuredDocumentInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Answer.Reference.StructuredDocumentInfo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Answer.Reference.StructuredDocumentInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Answer.Reference.StructuredDocumentInfo.Builder
Overrides

clearStructData()

public Answer.Reference.StructuredDocumentInfo.Builder clearStructData()

Structured search data.

.google.protobuf.Struct struct_data = 2;

Returns
Type Description
Answer.Reference.StructuredDocumentInfo.Builder

clone()

public Answer.Reference.StructuredDocumentInfo.Builder clone()
Returns
Type Description
Answer.Reference.StructuredDocumentInfo.Builder
Overrides

getDefaultInstanceForType()

public Answer.Reference.StructuredDocumentInfo getDefaultInstanceForType()
Returns
Type Description
Answer.Reference.StructuredDocumentInfo

getDescriptorForType()

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

getDocument()

public String getDocument()

Document resource name.

string document = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The document.

getDocumentBytes()

public ByteString getDocumentBytes()

Document resource name.

string document = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for document.

getStructData()

public Struct getStructData()

Structured search data.

.google.protobuf.Struct struct_data = 2;

Returns
Type Description
Struct

The structData.

getStructDataBuilder()

public Struct.Builder getStructDataBuilder()

Structured search data.

.google.protobuf.Struct struct_data = 2;

Returns
Type Description
Builder

getStructDataOrBuilder()

public StructOrBuilder getStructDataOrBuilder()

Structured search data.

.google.protobuf.Struct struct_data = 2;

Returns
Type Description
StructOrBuilder

hasStructData()

public boolean hasStructData()

Structured search data.

.google.protobuf.Struct struct_data = 2;

Returns
Type Description
boolean

Whether the structData field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Answer.Reference.StructuredDocumentInfo other)

public Answer.Reference.StructuredDocumentInfo.Builder mergeFrom(Answer.Reference.StructuredDocumentInfo other)
Parameter
Name Description
other Answer.Reference.StructuredDocumentInfo
Returns
Type Description
Answer.Reference.StructuredDocumentInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Answer.Reference.StructuredDocumentInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Answer.Reference.StructuredDocumentInfo.Builder
Overrides

mergeStructData(Struct value)

public Answer.Reference.StructuredDocumentInfo.Builder mergeStructData(Struct value)

Structured search data.

.google.protobuf.Struct struct_data = 2;

Parameter
Name Description
value Struct
Returns
Type Description
Answer.Reference.StructuredDocumentInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Answer.Reference.StructuredDocumentInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Answer.Reference.StructuredDocumentInfo.Builder
Overrides

setDocument(String value)

public Answer.Reference.StructuredDocumentInfo.Builder setDocument(String value)

Document resource name.

string document = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The document to set.

Returns
Type Description
Answer.Reference.StructuredDocumentInfo.Builder

This builder for chaining.

setDocumentBytes(ByteString value)

public Answer.Reference.StructuredDocumentInfo.Builder setDocumentBytes(ByteString value)

Document resource name.

string document = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for document to set.

Returns
Type Description
Answer.Reference.StructuredDocumentInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Answer.Reference.StructuredDocumentInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Answer.Reference.StructuredDocumentInfo.Builder
Overrides

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

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

setStructData(Struct value)

public Answer.Reference.StructuredDocumentInfo.Builder setStructData(Struct value)

Structured search data.

.google.protobuf.Struct struct_data = 2;

Parameter
Name Description
value Struct
Returns
Type Description
Answer.Reference.StructuredDocumentInfo.Builder

setStructData(Struct.Builder builderForValue)

public Answer.Reference.StructuredDocumentInfo.Builder setStructData(Struct.Builder builderForValue)

Structured search data.

.google.protobuf.Struct struct_data = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Answer.Reference.StructuredDocumentInfo.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Answer.Reference.StructuredDocumentInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Answer.Reference.StructuredDocumentInfo.Builder
Overrides