Class Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder (0.41.0)

public static final class Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder extends GeneratedMessageV3.Builder<Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder> implements Answer.Step.Action.Observation.SearchResult.SnippetInfoOrBuilder

Snippet information.

Protobuf type google.cloud.discoveryengine.v1alpha.Answer.Step.Action.Observation.SearchResult.SnippetInfo

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder
Overrides

build()

public Answer.Step.Action.Observation.SearchResult.SnippetInfo build()
Returns
Type Description
Answer.Step.Action.Observation.SearchResult.SnippetInfo

buildPartial()

public Answer.Step.Action.Observation.SearchResult.SnippetInfo buildPartial()
Returns
Type Description
Answer.Step.Action.Observation.SearchResult.SnippetInfo

clear()

public Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder clear()
Returns
Type Description
Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder
Overrides

clearSnippet()

public Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder clearSnippet()

Snippet content.

string snippet = 1;

Returns
Type Description
Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder

This builder for chaining.

clearSnippetStatus()

public Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder clearSnippetStatus()

Status of the snippet defined by the search team.

string snippet_status = 2;

Returns
Type Description
Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder

This builder for chaining.

clone()

public Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder clone()
Returns
Type Description
Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder
Overrides

getDefaultInstanceForType()

public Answer.Step.Action.Observation.SearchResult.SnippetInfo getDefaultInstanceForType()
Returns
Type Description
Answer.Step.Action.Observation.SearchResult.SnippetInfo

getDescriptorForType()

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

getSnippet()

public String getSnippet()

Snippet content.

string snippet = 1;

Returns
Type Description
String

The snippet.

getSnippetBytes()

public ByteString getSnippetBytes()

Snippet content.

string snippet = 1;

Returns
Type Description
ByteString

The bytes for snippet.

getSnippetStatus()

public String getSnippetStatus()

Status of the snippet defined by the search team.

string snippet_status = 2;

Returns
Type Description
String

The snippetStatus.

getSnippetStatusBytes()

public ByteString getSnippetStatusBytes()

Status of the snippet defined by the search team.

string snippet_status = 2;

Returns
Type Description
ByteString

The bytes for snippetStatus.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Answer.Step.Action.Observation.SearchResult.SnippetInfo other)

public Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder mergeFrom(Answer.Step.Action.Observation.SearchResult.SnippetInfo other)
Parameter
Name Description
other Answer.Step.Action.Observation.SearchResult.SnippetInfo
Returns
Type Description
Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder
Overrides

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

public Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder
Overrides

setSnippet(String value)

public Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder setSnippet(String value)

Snippet content.

string snippet = 1;

Parameter
Name Description
value String

The snippet to set.

Returns
Type Description
Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder

This builder for chaining.

setSnippetBytes(ByteString value)

public Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder setSnippetBytes(ByteString value)

Snippet content.

string snippet = 1;

Parameter
Name Description
value ByteString

The bytes for snippet to set.

Returns
Type Description
Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder

This builder for chaining.

setSnippetStatus(String value)

public Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder setSnippetStatus(String value)

Status of the snippet defined by the search team.

string snippet_status = 2;

Parameter
Name Description
value String

The snippetStatus to set.

Returns
Type Description
Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder

This builder for chaining.

setSnippetStatusBytes(ByteString value)

public Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder setSnippetStatusBytes(ByteString value)

Status of the snippet defined by the search team.

string snippet_status = 2;

Parameter
Name Description
value ByteString

The bytes for snippetStatus to set.

Returns
Type Description
Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Answer.Step.Action.Observation.SearchResult.SnippetInfo.Builder
Overrides