public static final class Api.Function.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Api.Function.Builder> implements Api.FunctionOrBuilder
api.Function| Modifier and Type | Method and Description |
|---|---|
Api.Function.Builder |
addAllExamples(Iterable<String> values)
The examples of the function parameters, as the above json schema
describes.
|
Api.Function.Builder |
addExamples(String value)
The examples of the function parameters, as the above json schema
describes.
|
Api.Function.Builder |
addExamplesBytes(com.google.protobuf.ByteString value)
The examples of the function parameters, as the above json schema
describes.
|
Api.Function.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Api.Function |
build() |
Api.Function |
buildPartial() |
Api.Function.Builder |
clear() |
Api.Function.Builder |
clearDescription()
A description of the function, used by the model to choose when and how to
call the function.
|
Api.Function.Builder |
clearExamples()
The examples of the function parameters, as the above json schema
describes.
|
Api.Function.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Api.Function.Builder |
clearName()
The name of the function.
|
Api.Function.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Api.Function.Builder |
clearParameters()
The parameters of the function, described as Json Schema.
|
Api.Function.Builder |
clone() |
Api.Function |
getDefaultInstanceForType() |
String |
getDescription()
A description of the function, used by the model to choose when and how to
call the function.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
A description of the function, used by the model to choose when and how to
call the function.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getExamples(int index)
The examples of the function parameters, as the above json schema
describes.
|
com.google.protobuf.ByteString |
getExamplesBytes(int index)
The examples of the function parameters, as the above json schema
describes.
|
int |
getExamplesCount()
The examples of the function parameters, as the above json schema
describes.
|
com.google.protobuf.ProtocolStringList |
getExamplesList()
The examples of the function parameters, as the above json schema
describes.
|
String |
getName()
The name of the function.
|
com.google.protobuf.ByteString |
getNameBytes()
The name of the function.
|
com.google.protobuf.Struct |
getParameters()
The parameters of the function, described as Json Schema.
|
com.google.protobuf.Struct.Builder |
getParametersBuilder()
The parameters of the function, described as Json Schema.
|
com.google.protobuf.StructOrBuilder |
getParametersOrBuilder()
The parameters of the function, described as Json Schema.
|
boolean |
hasParameters()
The parameters of the function, described as Json Schema.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Api.Function.Builder |
mergeFrom(Api.Function other) |
Api.Function.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Api.Function.Builder |
mergeFrom(com.google.protobuf.Message other) |
Api.Function.Builder |
mergeParameters(com.google.protobuf.Struct value)
The parameters of the function, described as Json Schema.
|
Api.Function.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Api.Function.Builder |
setDescription(String value)
A description of the function, used by the model to choose when and how to
call the function.
|
Api.Function.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
A description of the function, used by the model to choose when and how to
call the function.
|
Api.Function.Builder |
setExamples(int index,
String value)
The examples of the function parameters, as the above json schema
describes.
|
Api.Function.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Api.Function.Builder |
setName(String value)
The name of the function.
|
Api.Function.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The name of the function.
|
Api.Function.Builder |
setParameters(com.google.protobuf.Struct.Builder builderForValue)
The parameters of the function, described as Json Schema.
|
Api.Function.Builder |
setParameters(com.google.protobuf.Struct value)
The parameters of the function, described as Json Schema.
|
Api.Function.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Api.Function.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Api.Function.Builder>public Api.Function.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Api.Function.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Api.Function.Builder>public Api.Function getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Api.Function build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Api.Function buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Api.Function.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Api.Function.Builder>public Api.Function.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Api.Function.Builder>public Api.Function.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Api.Function.Builder>public Api.Function.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Api.Function.Builder>public Api.Function.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Api.Function.Builder>public Api.Function.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Api.Function.Builder>public Api.Function.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Api.Function.Builder>public Api.Function.Builder mergeFrom(Api.Function other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Api.Function.Builder>public Api.Function.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Api.Function.Builder>IOExceptionpublic String getName()
The name of the function.
string name = 1;getName in interface Api.FunctionOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The name of the function.
string name = 1;getNameBytes in interface Api.FunctionOrBuilderpublic Api.Function.Builder setName(String value)
The name of the function.
string name = 1;value - The name to set.public Api.Function.Builder clearName()
The name of the function.
string name = 1;public Api.Function.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of the function.
string name = 1;value - The bytes for name to set.public String getDescription()
A description of the function, used by the model to choose when and how to call the function.
string description = 2;getDescription in interface Api.FunctionOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
A description of the function, used by the model to choose when and how to call the function.
string description = 2;getDescriptionBytes in interface Api.FunctionOrBuilderpublic Api.Function.Builder setDescription(String value)
A description of the function, used by the model to choose when and how to call the function.
string description = 2;value - The description to set.public Api.Function.Builder clearDescription()
A description of the function, used by the model to choose when and how to call the function.
string description = 2;public Api.Function.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
A description of the function, used by the model to choose when and how to call the function.
string description = 2;value - The bytes for description to set.public boolean hasParameters()
The parameters of the function, described as Json Schema.
.google.protobuf.Struct parameters = 3;hasParameters in interface Api.FunctionOrBuilderpublic com.google.protobuf.Struct getParameters()
The parameters of the function, described as Json Schema.
.google.protobuf.Struct parameters = 3;getParameters in interface Api.FunctionOrBuilderpublic Api.Function.Builder setParameters(com.google.protobuf.Struct value)
The parameters of the function, described as Json Schema.
.google.protobuf.Struct parameters = 3;public Api.Function.Builder setParameters(com.google.protobuf.Struct.Builder builderForValue)
The parameters of the function, described as Json Schema.
.google.protobuf.Struct parameters = 3;public Api.Function.Builder mergeParameters(com.google.protobuf.Struct value)
The parameters of the function, described as Json Schema.
.google.protobuf.Struct parameters = 3;public Api.Function.Builder clearParameters()
The parameters of the function, described as Json Schema.
.google.protobuf.Struct parameters = 3;public com.google.protobuf.Struct.Builder getParametersBuilder()
The parameters of the function, described as Json Schema.
.google.protobuf.Struct parameters = 3;public com.google.protobuf.StructOrBuilder getParametersOrBuilder()
The parameters of the function, described as Json Schema.
.google.protobuf.Struct parameters = 3;getParametersOrBuilder in interface Api.FunctionOrBuilderpublic com.google.protobuf.ProtocolStringList getExamplesList()
The examples of the function parameters, as the above json schema describes.
repeated string examples = 4;getExamplesList in interface Api.FunctionOrBuilderpublic int getExamplesCount()
The examples of the function parameters, as the above json schema describes.
repeated string examples = 4;getExamplesCount in interface Api.FunctionOrBuilderpublic String getExamples(int index)
The examples of the function parameters, as the above json schema describes.
repeated string examples = 4;getExamples in interface Api.FunctionOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getExamplesBytes(int index)
The examples of the function parameters, as the above json schema describes.
repeated string examples = 4;getExamplesBytes in interface Api.FunctionOrBuilderindex - The index of the value to return.public Api.Function.Builder setExamples(int index, String value)
The examples of the function parameters, as the above json schema describes.
repeated string examples = 4;index - The index to set the value at.value - The examples to set.public Api.Function.Builder addExamples(String value)
The examples of the function parameters, as the above json schema describes.
repeated string examples = 4;value - The examples to add.public Api.Function.Builder addAllExamples(Iterable<String> values)
The examples of the function parameters, as the above json schema describes.
repeated string examples = 4;values - The examples to add.public Api.Function.Builder clearExamples()
The examples of the function parameters, as the above json schema describes.
repeated string examples = 4;public Api.Function.Builder addExamplesBytes(com.google.protobuf.ByteString value)
The examples of the function parameters, as the above json schema describes.
repeated string examples = 4;value - The bytes of the examples to add.public final Api.Function.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Api.Function.Builder>public final Api.Function.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Api.Function.Builder>Copyright © 2025. All rights reserved.