Class FunctionCall.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FunctionCall.Builder>
com.google.cloud.aiplatform.v1.FunctionCall.Builder
All Implemented Interfaces:
FunctionCallOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
FunctionCall

public static final class FunctionCall.Builder extends com.google.protobuf.GeneratedMessage.Builder<FunctionCall.Builder> implements FunctionCallOrBuilder
 A predicted [FunctionCall] returned from the model that contains a string
 representing the [FunctionDeclaration.name] and a structured JSON object
 containing the parameters and their values.
 
Protobuf type google.cloud.aiplatform.v1.FunctionCall
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<FunctionCall.Builder>
    • clear

      public FunctionCall.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<FunctionCall.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<FunctionCall.Builder>
    • getDefaultInstanceForType

      public FunctionCall getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public FunctionCall build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public FunctionCall buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public FunctionCall.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FunctionCall.Builder>
    • mergeFrom

      public FunctionCall.Builder mergeFrom(FunctionCall other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<FunctionCall.Builder>
    • mergeFrom

      public FunctionCall.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FunctionCall.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Optional. The name of the function to call.
       Matches [FunctionDeclaration.name].
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getName in interface FunctionCallOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Optional. The name of the function to call.
       Matches [FunctionDeclaration.name].
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNameBytes in interface FunctionCallOrBuilder
      Returns:
      The bytes for name.
    • setName

      public FunctionCall.Builder setName(String value)
       Optional. The name of the function to call.
       Matches [FunctionDeclaration.name].
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public FunctionCall.Builder clearName()
       Optional. The name of the function to call.
       Matches [FunctionDeclaration.name].
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setNameBytes

      public FunctionCall.Builder setNameBytes(com.google.protobuf.ByteString value)
       Optional. The name of the function to call.
       Matches [FunctionDeclaration.name].
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasArgs

      public boolean hasArgs()
       Optional. The function parameters and values in JSON object format.
       See [FunctionDeclaration.parameters] for parameter details.
       
      .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasArgs in interface FunctionCallOrBuilder
      Returns:
      Whether the args field is set.
    • getArgs

      public com.google.protobuf.Struct getArgs()
       Optional. The function parameters and values in JSON object format.
       See [FunctionDeclaration.parameters] for parameter details.
       
      .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getArgs in interface FunctionCallOrBuilder
      Returns:
      The args.
    • setArgs

      public FunctionCall.Builder setArgs(com.google.protobuf.Struct value)
       Optional. The function parameters and values in JSON object format.
       See [FunctionDeclaration.parameters] for parameter details.
       
      .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setArgs

      public FunctionCall.Builder setArgs(com.google.protobuf.Struct.Builder builderForValue)
       Optional. The function parameters and values in JSON object format.
       See [FunctionDeclaration.parameters] for parameter details.
       
      .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeArgs

      public FunctionCall.Builder mergeArgs(com.google.protobuf.Struct value)
       Optional. The function parameters and values in JSON object format.
       See [FunctionDeclaration.parameters] for parameter details.
       
      .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearArgs

      public FunctionCall.Builder clearArgs()
       Optional. The function parameters and values in JSON object format.
       See [FunctionDeclaration.parameters] for parameter details.
       
      .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getArgsBuilder

      public com.google.protobuf.Struct.Builder getArgsBuilder()
       Optional. The function parameters and values in JSON object format.
       See [FunctionDeclaration.parameters] for parameter details.
       
      .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getArgsOrBuilder

      public com.google.protobuf.StructOrBuilder getArgsOrBuilder()
       Optional. The function parameters and values in JSON object format.
       See [FunctionDeclaration.parameters] for parameter details.
       
      .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getArgsOrBuilder in interface FunctionCallOrBuilder
    • getPartialArgsList

      public List<PartialArg> getPartialArgsList()
       Optional. The partial argument value of the function call.
       If provided, represents the arguments/fields that are streamed
       incrementally.
       
      repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPartialArgsList in interface FunctionCallOrBuilder
    • getPartialArgsCount

      public int getPartialArgsCount()
       Optional. The partial argument value of the function call.
       If provided, represents the arguments/fields that are streamed
       incrementally.
       
      repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPartialArgsCount in interface FunctionCallOrBuilder
    • getPartialArgs

      public PartialArg getPartialArgs(int index)
       Optional. The partial argument value of the function call.
       If provided, represents the arguments/fields that are streamed
       incrementally.
       
      repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPartialArgs in interface FunctionCallOrBuilder
    • setPartialArgs

      public FunctionCall.Builder setPartialArgs(int index, PartialArg value)
       Optional. The partial argument value of the function call.
       If provided, represents the arguments/fields that are streamed
       incrementally.
       
      repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setPartialArgs

      public FunctionCall.Builder setPartialArgs(int index, PartialArg.Builder builderForValue)
       Optional. The partial argument value of the function call.
       If provided, represents the arguments/fields that are streamed
       incrementally.
       
      repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addPartialArgs

      public FunctionCall.Builder addPartialArgs(PartialArg value)
       Optional. The partial argument value of the function call.
       If provided, represents the arguments/fields that are streamed
       incrementally.
       
      repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addPartialArgs

      public FunctionCall.Builder addPartialArgs(int index, PartialArg value)
       Optional. The partial argument value of the function call.
       If provided, represents the arguments/fields that are streamed
       incrementally.
       
      repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addPartialArgs

      public FunctionCall.Builder addPartialArgs(PartialArg.Builder builderForValue)
       Optional. The partial argument value of the function call.
       If provided, represents the arguments/fields that are streamed
       incrementally.
       
      repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addPartialArgs

      public FunctionCall.Builder addPartialArgs(int index, PartialArg.Builder builderForValue)
       Optional. The partial argument value of the function call.
       If provided, represents the arguments/fields that are streamed
       incrementally.
       
      repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addAllPartialArgs

      public FunctionCall.Builder addAllPartialArgs(Iterable<? extends PartialArg> values)
       Optional. The partial argument value of the function call.
       If provided, represents the arguments/fields that are streamed
       incrementally.
       
      repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearPartialArgs

      public FunctionCall.Builder clearPartialArgs()
       Optional. The partial argument value of the function call.
       If provided, represents the arguments/fields that are streamed
       incrementally.
       
      repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL];
    • removePartialArgs

      public FunctionCall.Builder removePartialArgs(int index)
       Optional. The partial argument value of the function call.
       If provided, represents the arguments/fields that are streamed
       incrementally.
       
      repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getPartialArgsBuilder

      public PartialArg.Builder getPartialArgsBuilder(int index)
       Optional. The partial argument value of the function call.
       If provided, represents the arguments/fields that are streamed
       incrementally.
       
      repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getPartialArgsOrBuilder

      public PartialArgOrBuilder getPartialArgsOrBuilder(int index)
       Optional. The partial argument value of the function call.
       If provided, represents the arguments/fields that are streamed
       incrementally.
       
      repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPartialArgsOrBuilder in interface FunctionCallOrBuilder
    • getPartialArgsOrBuilderList

      public List<? extends PartialArgOrBuilder> getPartialArgsOrBuilderList()
       Optional. The partial argument value of the function call.
       If provided, represents the arguments/fields that are streamed
       incrementally.
       
      repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPartialArgsOrBuilderList in interface FunctionCallOrBuilder
    • addPartialArgsBuilder

      public PartialArg.Builder addPartialArgsBuilder()
       Optional. The partial argument value of the function call.
       If provided, represents the arguments/fields that are streamed
       incrementally.
       
      repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addPartialArgsBuilder

      public PartialArg.Builder addPartialArgsBuilder(int index)
       Optional. The partial argument value of the function call.
       If provided, represents the arguments/fields that are streamed
       incrementally.
       
      repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getPartialArgsBuilderList

      public List<PartialArg.Builder> getPartialArgsBuilderList()
       Optional. The partial argument value of the function call.
       If provided, represents the arguments/fields that are streamed
       incrementally.
       
      repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getWillContinue

      public boolean getWillContinue()
       Optional. Whether this is the last part of the FunctionCall.
       If true, another partial message for the current FunctionCall is expected
       to follow.
       
      bool will_continue = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWillContinue in interface FunctionCallOrBuilder
      Returns:
      The willContinue.
    • setWillContinue

      public FunctionCall.Builder setWillContinue(boolean value)
       Optional. Whether this is the last part of the FunctionCall.
       If true, another partial message for the current FunctionCall is expected
       to follow.
       
      bool will_continue = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The willContinue to set.
      Returns:
      This builder for chaining.
    • clearWillContinue

      public FunctionCall.Builder clearWillContinue()
       Optional. Whether this is the last part of the FunctionCall.
       If true, another partial message for the current FunctionCall is expected
       to follow.
       
      bool will_continue = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.