Class GenerateGroundedContentRequest.GroundingSource.InlineSource (0.50.0)

public static final class GenerateGroundedContentRequest.GroundingSource.InlineSource extends GeneratedMessageV3 implements GenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilder

Message to be used for grounding based on inline content.

Protobuf type google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > GenerateGroundedContentRequest.GroundingSource.InlineSource

Static Fields

ATTRIBUTES_FIELD_NUMBER

public static final int ATTRIBUTES_FIELD_NUMBER
Field Value
Type Description
int

GROUNDING_FACTS_FIELD_NUMBER

public static final int GROUNDING_FACTS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static GenerateGroundedContentRequest.GroundingSource.InlineSource getDefaultInstance()
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource

getDescriptor()

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

newBuilder()

public static GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder newBuilder()
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder

newBuilder(GenerateGroundedContentRequest.GroundingSource.InlineSource prototype)

public static GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder newBuilder(GenerateGroundedContentRequest.GroundingSource.InlineSource prototype)
Parameter
Name Description
prototype GenerateGroundedContentRequest.GroundingSource.InlineSource
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder

parseDelimitedFrom(InputStream input)

public static GenerateGroundedContentRequest.GroundingSource.InlineSource parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GenerateGroundedContentRequest.GroundingSource.InlineSource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static GenerateGroundedContentRequest.GroundingSource.InlineSource parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GenerateGroundedContentRequest.GroundingSource.InlineSource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GenerateGroundedContentRequest.GroundingSource.InlineSource parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GenerateGroundedContentRequest.GroundingSource.InlineSource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GenerateGroundedContentRequest.GroundingSource.InlineSource parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GenerateGroundedContentRequest.GroundingSource.InlineSource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static GenerateGroundedContentRequest.GroundingSource.InlineSource parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GenerateGroundedContentRequest.GroundingSource.InlineSource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static GenerateGroundedContentRequest.GroundingSource.InlineSource parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GenerateGroundedContentRequest.GroundingSource.InlineSource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<GenerateGroundedContentRequest.GroundingSource.InlineSource> parser()
Returns
Type Description
Parser<InlineSource>

Methods

containsAttributes(String key)

public boolean containsAttributes(String key)

Attributes associated with the content.

Common attributes include source (indicating where the content was sourced from) and author (indicating the author of the content).

map<string, string> attributes = 2;

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAttributes() (deprecated)

public Map<String,String> getAttributes()

Use #getAttributesMap() instead.

Returns
Type Description
Map<String,String>

getAttributesCount()

public int getAttributesCount()

Attributes associated with the content.

Common attributes include source (indicating where the content was sourced from) and author (indicating the author of the content).

map<string, string> attributes = 2;

Returns
Type Description
int

getAttributesMap()

public Map<String,String> getAttributesMap()

Attributes associated with the content.

Common attributes include source (indicating where the content was sourced from) and author (indicating the author of the content).

map<string, string> attributes = 2;

Returns
Type Description
Map<String,String>

getAttributesOrDefault(String key, String defaultValue)

public String getAttributesOrDefault(String key, String defaultValue)

Attributes associated with the content.

Common attributes include source (indicating where the content was sourced from) and author (indicating the author of the content).

map<string, string> attributes = 2;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getAttributesOrThrow(String key)

public String getAttributesOrThrow(String key)

Attributes associated with the content.

Common attributes include source (indicating where the content was sourced from) and author (indicating the author of the content).

map<string, string> attributes = 2;

Parameter
Name Description
key String
Returns
Type Description
String

getDefaultInstanceForType()

public GenerateGroundedContentRequest.GroundingSource.InlineSource getDefaultInstanceForType()
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource

getGroundingFacts(int index)

public GroundingFact getGroundingFacts(int index)

List of facts to be used for grounding.

repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1;

Parameter
Name Description
index int
Returns
Type Description
GroundingFact

getGroundingFactsCount()

public int getGroundingFactsCount()

List of facts to be used for grounding.

repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1;

Returns
Type Description
int

getGroundingFactsList()

public List<GroundingFact> getGroundingFactsList()

List of facts to be used for grounding.

repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1;

Returns
Type Description
List<GroundingFact>

getGroundingFactsOrBuilder(int index)

public GroundingFactOrBuilder getGroundingFactsOrBuilder(int index)

List of facts to be used for grounding.

repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1;

Parameter
Name Description
index int
Returns
Type Description
GroundingFactOrBuilder

getGroundingFactsOrBuilderList()

public List<? extends GroundingFactOrBuilder> getGroundingFactsOrBuilderList()

List of facts to be used for grounding.

repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1.GroundingFactOrBuilder>

getParserForType()

public Parser<GenerateGroundedContentRequest.GroundingSource.InlineSource> getParserForType()
Returns
Type Description
Parser<InlineSource>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder newBuilderForType()
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder toBuilder()
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException