Class GroundingChunk.Maps.Builder (3.77.0)

public static final class GroundingChunk.Maps.Builder extends GeneratedMessageV3.Builder<GroundingChunk.Maps.Builder> implements GroundingChunk.MapsOrBuilder

Chunk from Google Maps.

Protobuf type google.cloud.aiplatform.v1beta1.GroundingChunk.Maps

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GroundingChunk.Maps.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GroundingChunk.Maps.Builder
Overrides

build()

public GroundingChunk.Maps build()
Returns
Type Description
GroundingChunk.Maps

buildPartial()

public GroundingChunk.Maps buildPartial()
Returns
Type Description
GroundingChunk.Maps

clear()

public GroundingChunk.Maps.Builder clear()
Returns
Type Description
GroundingChunk.Maps.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GroundingChunk.Maps.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GroundingChunk.Maps.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public GroundingChunk.Maps.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GroundingChunk.Maps.Builder
Overrides

clearPlaceAnswerSources()

public GroundingChunk.Maps.Builder clearPlaceAnswerSources()

Sources used to generate the place answer. This includes review snippets and photos that were used to generate the answer, as well as uris to flag content.

.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;

Returns
Type Description
GroundingChunk.Maps.Builder

clearPlaceId()

public GroundingChunk.Maps.Builder clearPlaceId()

This Place's resource name, in places/{place_id} format. Can be used to look up the Place.

optional string place_id = 4;

Returns
Type Description
GroundingChunk.Maps.Builder

This builder for chaining.

clearText()

public GroundingChunk.Maps.Builder clearText()

Text of the chunk.

optional string text = 3;

Returns
Type Description
GroundingChunk.Maps.Builder

This builder for chaining.

clearTitle()

public GroundingChunk.Maps.Builder clearTitle()

Title of the chunk.

optional string title = 2;

Returns
Type Description
GroundingChunk.Maps.Builder

This builder for chaining.

clearUri()

public GroundingChunk.Maps.Builder clearUri()

URI reference of the chunk.

optional string uri = 1;

Returns
Type Description
GroundingChunk.Maps.Builder

This builder for chaining.

clone()

public GroundingChunk.Maps.Builder clone()
Returns
Type Description
GroundingChunk.Maps.Builder
Overrides

getDefaultInstanceForType()

public GroundingChunk.Maps getDefaultInstanceForType()
Returns
Type Description
GroundingChunk.Maps

getDescriptorForType()

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

getPlaceAnswerSources()

public GroundingChunk.Maps.PlaceAnswerSources getPlaceAnswerSources()

Sources used to generate the place answer. This includes review snippets and photos that were used to generate the answer, as well as uris to flag content.

.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;

Returns
Type Description
GroundingChunk.Maps.PlaceAnswerSources

The placeAnswerSources.

getPlaceAnswerSourcesBuilder()

public GroundingChunk.Maps.PlaceAnswerSources.Builder getPlaceAnswerSourcesBuilder()

Sources used to generate the place answer. This includes review snippets and photos that were used to generate the answer, as well as uris to flag content.

.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;

Returns
Type Description
GroundingChunk.Maps.PlaceAnswerSources.Builder

getPlaceAnswerSourcesOrBuilder()

public GroundingChunk.Maps.PlaceAnswerSourcesOrBuilder getPlaceAnswerSourcesOrBuilder()

Sources used to generate the place answer. This includes review snippets and photos that were used to generate the answer, as well as uris to flag content.

.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;

Returns
Type Description
GroundingChunk.Maps.PlaceAnswerSourcesOrBuilder

getPlaceId()

public String getPlaceId()

This Place's resource name, in places/{place_id} format. Can be used to look up the Place.

optional string place_id = 4;

Returns
Type Description
String

The placeId.

getPlaceIdBytes()

public ByteString getPlaceIdBytes()

This Place's resource name, in places/{place_id} format. Can be used to look up the Place.

optional string place_id = 4;

Returns
Type Description
ByteString

The bytes for placeId.

getText()

public String getText()

Text of the chunk.

optional string text = 3;

Returns
Type Description
String

The text.

getTextBytes()

public ByteString getTextBytes()

Text of the chunk.

optional string text = 3;

Returns
Type Description
ByteString

The bytes for text.

getTitle()

public String getTitle()

Title of the chunk.

optional string title = 2;

Returns
Type Description
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Title of the chunk.

optional string title = 2;

Returns
Type Description
ByteString

The bytes for title.

getUri()

public String getUri()

URI reference of the chunk.

optional string uri = 1;

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

URI reference of the chunk.

optional string uri = 1;

Returns
Type Description
ByteString

The bytes for uri.

hasPlaceAnswerSources()

public boolean hasPlaceAnswerSources()

Sources used to generate the place answer. This includes review snippets and photos that were used to generate the answer, as well as uris to flag content.

.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;

Returns
Type Description
boolean

Whether the placeAnswerSources field is set.

hasPlaceId()

public boolean hasPlaceId()

This Place's resource name, in places/{place_id} format. Can be used to look up the Place.

optional string place_id = 4;

Returns
Type Description
boolean

Whether the placeId field is set.

hasText()

public boolean hasText()

Text of the chunk.

optional string text = 3;

Returns
Type Description
boolean

Whether the text field is set.

hasTitle()

public boolean hasTitle()

Title of the chunk.

optional string title = 2;

Returns
Type Description
boolean

Whether the title field is set.

hasUri()

public boolean hasUri()

URI reference of the chunk.

optional string uri = 1;

Returns
Type Description
boolean

Whether the uri field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GroundingChunk.Maps other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePlaceAnswerSources(GroundingChunk.Maps.PlaceAnswerSources value)

public GroundingChunk.Maps.Builder mergePlaceAnswerSources(GroundingChunk.Maps.PlaceAnswerSources value)

Sources used to generate the place answer. This includes review snippets and photos that were used to generate the answer, as well as uris to flag content.

.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;

Parameter
Name Description
value GroundingChunk.Maps.PlaceAnswerSources
Returns
Type Description
GroundingChunk.Maps.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GroundingChunk.Maps.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GroundingChunk.Maps.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GroundingChunk.Maps.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GroundingChunk.Maps.Builder
Overrides

setPlaceAnswerSources(GroundingChunk.Maps.PlaceAnswerSources value)

public GroundingChunk.Maps.Builder setPlaceAnswerSources(GroundingChunk.Maps.PlaceAnswerSources value)

Sources used to generate the place answer. This includes review snippets and photos that were used to generate the answer, as well as uris to flag content.

.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;

Parameter
Name Description
value GroundingChunk.Maps.PlaceAnswerSources
Returns
Type Description
GroundingChunk.Maps.Builder

setPlaceAnswerSources(GroundingChunk.Maps.PlaceAnswerSources.Builder builderForValue)

public GroundingChunk.Maps.Builder setPlaceAnswerSources(GroundingChunk.Maps.PlaceAnswerSources.Builder builderForValue)

Sources used to generate the place answer. This includes review snippets and photos that were used to generate the answer, as well as uris to flag content.

.google.cloud.aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;

Parameter
Name Description
builderForValue GroundingChunk.Maps.PlaceAnswerSources.Builder
Returns
Type Description
GroundingChunk.Maps.Builder

setPlaceId(String value)

public GroundingChunk.Maps.Builder setPlaceId(String value)

This Place's resource name, in places/{place_id} format. Can be used to look up the Place.

optional string place_id = 4;

Parameter
Name Description
value String

The placeId to set.

Returns
Type Description
GroundingChunk.Maps.Builder

This builder for chaining.

setPlaceIdBytes(ByteString value)

public GroundingChunk.Maps.Builder setPlaceIdBytes(ByteString value)

This Place's resource name, in places/{place_id} format. Can be used to look up the Place.

optional string place_id = 4;

Parameter
Name Description
value ByteString

The bytes for placeId to set.

Returns
Type Description
GroundingChunk.Maps.Builder

This builder for chaining.

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

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

setText(String value)

public GroundingChunk.Maps.Builder setText(String value)

Text of the chunk.

optional string text = 3;

Parameter
Name Description
value String

The text to set.

Returns
Type Description
GroundingChunk.Maps.Builder

This builder for chaining.

setTextBytes(ByteString value)

public GroundingChunk.Maps.Builder setTextBytes(ByteString value)

Text of the chunk.

optional string text = 3;

Parameter
Name Description
value ByteString

The bytes for text to set.

Returns
Type Description
GroundingChunk.Maps.Builder

This builder for chaining.

setTitle(String value)

public GroundingChunk.Maps.Builder setTitle(String value)

Title of the chunk.

optional string title = 2;

Parameter
Name Description
value String

The title to set.

Returns
Type Description
GroundingChunk.Maps.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public GroundingChunk.Maps.Builder setTitleBytes(ByteString value)

Title of the chunk.

optional string title = 2;

Parameter
Name Description
value ByteString

The bytes for title to set.

Returns
Type Description
GroundingChunk.Maps.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final GroundingChunk.Maps.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GroundingChunk.Maps.Builder
Overrides

setUri(String value)

public GroundingChunk.Maps.Builder setUri(String value)

URI reference of the chunk.

optional string uri = 1;

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
GroundingChunk.Maps.Builder

This builder for chaining.

setUriBytes(ByteString value)

public GroundingChunk.Maps.Builder setUriBytes(ByteString value)

URI reference of the chunk.

optional string uri = 1;

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
GroundingChunk.Maps.Builder

This builder for chaining.