Class StreamAssistRequest.ToolsSpec
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec
- All Implemented Interfaces:
StreamAssistRequest.ToolsSpecOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- StreamAssistRequest
public static final class StreamAssistRequest.ToolsSpec
extends com.google.protobuf.GeneratedMessage
implements StreamAssistRequest.ToolsSpecOrBuilder
Specification of tools that are used to serve the request.Protobuf type
google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSpecification of tools that are used to serve the request.static final classSpecification of the image generation tool.static interfacestatic final classSpecification of the Vertex AI Search tool.static interfacestatic final classSpecification of the video generation tool.static interfacestatic final classSpecification of the web grounding tool.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic final com.google.protobuf.Descriptors.DescriptorOptional.Optional.com.google.protobuf.Parser<StreamAssistRequest.ToolsSpec>intOptional.Optional.Optional.Optional.Optional.Optional.inthashCode()booleanOptional.booleanOptional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(StreamAssistRequest.ToolsSpec prototype) protected StreamAssistRequest.ToolsSpec.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<StreamAssistRequest.ToolsSpec>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
VERTEX_AI_SEARCH_SPEC_FIELD_NUMBER
public static final int VERTEX_AI_SEARCH_SPEC_FIELD_NUMBER- See Also:
-
WEB_GROUNDING_SPEC_FIELD_NUMBER
public static final int WEB_GROUNDING_SPEC_FIELD_NUMBER- See Also:
-
IMAGE_GENERATION_SPEC_FIELD_NUMBER
public static final int IMAGE_GENERATION_SPEC_FIELD_NUMBER- See Also:
-
VIDEO_GENERATION_SPEC_FIELD_NUMBER
public static final int VIDEO_GENERATION_SPEC_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasVertexAiSearchSpec
public boolean hasVertexAiSearchSpec()Optional. Specification of the Vertex AI Search tool.
.google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec vertex_ai_search_spec = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasVertexAiSearchSpecin interfaceStreamAssistRequest.ToolsSpecOrBuilder- Returns:
- Whether the vertexAiSearchSpec field is set.
-
getVertexAiSearchSpec
Optional. Specification of the Vertex AI Search tool.
.google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec vertex_ai_search_spec = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVertexAiSearchSpecin interfaceStreamAssistRequest.ToolsSpecOrBuilder- Returns:
- The vertexAiSearchSpec.
-
getVertexAiSearchSpecOrBuilder
Optional. Specification of the Vertex AI Search tool.
.google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec vertex_ai_search_spec = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVertexAiSearchSpecOrBuilderin interfaceStreamAssistRequest.ToolsSpecOrBuilder
-
hasWebGroundingSpec
public boolean hasWebGroundingSpec()Optional. Specification of the web grounding tool. If field is present, enables grounding with web search. Works only if [Assistant.web_grounding_type][google.cloud.discoveryengine.v1.Assistant.web_grounding_type] is [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][] or [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][].
.google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.WebGroundingSpec web_grounding_spec = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasWebGroundingSpecin interfaceStreamAssistRequest.ToolsSpecOrBuilder- Returns:
- Whether the webGroundingSpec field is set.
-
getWebGroundingSpec
Optional. Specification of the web grounding tool. If field is present, enables grounding with web search. Works only if [Assistant.web_grounding_type][google.cloud.discoveryengine.v1.Assistant.web_grounding_type] is [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][] or [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][].
.google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.WebGroundingSpec web_grounding_spec = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getWebGroundingSpecin interfaceStreamAssistRequest.ToolsSpecOrBuilder- Returns:
- The webGroundingSpec.
-
getWebGroundingSpecOrBuilder
Optional. Specification of the web grounding tool. If field is present, enables grounding with web search. Works only if [Assistant.web_grounding_type][google.cloud.discoveryengine.v1.Assistant.web_grounding_type] is [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][] or [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][].
.google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.WebGroundingSpec web_grounding_spec = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getWebGroundingSpecOrBuilderin interfaceStreamAssistRequest.ToolsSpecOrBuilder
-
hasImageGenerationSpec
public boolean hasImageGenerationSpec()Optional. Specification of the image generation tool.
.google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.ImageGenerationSpec image_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasImageGenerationSpecin interfaceStreamAssistRequest.ToolsSpecOrBuilder- Returns:
- Whether the imageGenerationSpec field is set.
-
getImageGenerationSpec
Optional. Specification of the image generation tool.
.google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.ImageGenerationSpec image_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getImageGenerationSpecin interfaceStreamAssistRequest.ToolsSpecOrBuilder- Returns:
- The imageGenerationSpec.
-
getImageGenerationSpecOrBuilder
Optional. Specification of the image generation tool.
.google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.ImageGenerationSpec image_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getImageGenerationSpecOrBuilderin interfaceStreamAssistRequest.ToolsSpecOrBuilder
-
hasVideoGenerationSpec
public boolean hasVideoGenerationSpec()Optional. Specification of the video generation tool.
.google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.VideoGenerationSpec video_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasVideoGenerationSpecin interfaceStreamAssistRequest.ToolsSpecOrBuilder- Returns:
- Whether the videoGenerationSpec field is set.
-
getVideoGenerationSpec
Optional. Specification of the video generation tool.
.google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.VideoGenerationSpec video_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVideoGenerationSpecin interfaceStreamAssistRequest.ToolsSpecOrBuilder- Returns:
- The videoGenerationSpec.
-
getVideoGenerationSpecOrBuilder
Optional. Specification of the video generation tool.
.google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.VideoGenerationSpec video_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVideoGenerationSpecOrBuilderin interfaceStreamAssistRequest.ToolsSpecOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static StreamAssistRequest.ToolsSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StreamAssistRequest.ToolsSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StreamAssistRequest.ToolsSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StreamAssistRequest.ToolsSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StreamAssistRequest.ToolsSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StreamAssistRequest.ToolsSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static StreamAssistRequest.ToolsSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static StreamAssistRequest.ToolsSpec parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static StreamAssistRequest.ToolsSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static StreamAssistRequest.ToolsSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static StreamAssistRequest.ToolsSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static StreamAssistRequest.ToolsSpec.Builder newBuilder(StreamAssistRequest.ToolsSpec prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected StreamAssistRequest.ToolsSpec.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-