Package com.google.cloud.aiplatform.v1
Interface FunctionResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
FunctionResponse,FunctionResponse.Builder
@Generated
public interface FunctionResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Required.com.google.protobuf.ByteStringRequired.getParts(int index) Optional.intOptional.Optional.getPartsOrBuilder(int index) Optional.List<? extends FunctionResponsePartOrBuilder>Optional.com.google.protobuf.StructRequired.com.google.protobuf.StructOrBuilderRequired.booleanRequired.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
String getName()Required. The name of the function to call. Matches [FunctionDeclaration.name] and [FunctionCall.name].
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()Required. The name of the function to call. Matches [FunctionDeclaration.name] and [FunctionCall.name].
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The bytes for name.
-
hasResponse
boolean hasResponse()Required. The function response in JSON object format. Use "output" key to specify function output and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as function output.
.google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- Whether the response field is set.
-
getResponse
com.google.protobuf.Struct getResponse()Required. The function response in JSON object format. Use "output" key to specify function output and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as function output.
.google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The response.
-
getResponseOrBuilder
com.google.protobuf.StructOrBuilder getResponseOrBuilder()Required. The function response in JSON object format. Use "output" key to specify function output and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as function output.
.google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED]; -
getPartsList
List<FunctionResponsePart> getPartsList()Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
repeated .google.cloud.aiplatform.v1.FunctionResponsePart parts = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getParts
Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
repeated .google.cloud.aiplatform.v1.FunctionResponsePart parts = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getPartsCount
int getPartsCount()Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
repeated .google.cloud.aiplatform.v1.FunctionResponsePart parts = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getPartsOrBuilderList
List<? extends FunctionResponsePartOrBuilder> getPartsOrBuilderList()Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
repeated .google.cloud.aiplatform.v1.FunctionResponsePart parts = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getPartsOrBuilder
Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
repeated .google.cloud.aiplatform.v1.FunctionResponsePart parts = 4 [(.google.api.field_behavior) = OPTIONAL];
-