Class CorroborateContentRequest.Builder

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

public static final class CorroborateContentRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CorroborateContentRequest.Builder> implements CorroborateContentRequestOrBuilder
 Request message for CorroborateContent.
 
Protobuf type google.cloud.aiplatform.v1.CorroborateContentRequest
  • 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<CorroborateContentRequest.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<CorroborateContentRequest.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<CorroborateContentRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public CorroborateContentRequest.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<CorroborateContentRequest.Builder>
    • mergeFrom

    • isInitialized

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

      public CorroborateContentRequest.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<CorroborateContentRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The resource name of the Location from which to corroborate text.
       The users must have permission to make a call in the project.
       Format:
       `projects/{project}/locations/{location}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CorroborateContentRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The resource name of the Location from which to corroborate text.
       The users must have permission to make a call in the project.
       Format:
       `projects/{project}/locations/{location}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CorroborateContentRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CorroborateContentRequest.Builder setParent(String value)
       Required. The resource name of the Location from which to corroborate text.
       The users must have permission to make a call in the project.
       Format:
       `projects/{project}/locations/{location}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CorroborateContentRequest.Builder clearParent()
       Required. The resource name of the Location from which to corroborate text.
       The users must have permission to make a call in the project.
       Format:
       `projects/{project}/locations/{location}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CorroborateContentRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the Location from which to corroborate text.
       The users must have permission to make a call in the project.
       Format:
       `projects/{project}/locations/{location}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasContent

      public boolean hasContent()
       Optional. Input content to corroborate, only text format is supported for
       now.
       
      optional .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasContent in interface CorroborateContentRequestOrBuilder
      Returns:
      Whether the content field is set.
    • getContent

      public Content getContent()
       Optional. Input content to corroborate, only text format is supported for
       now.
       
      optional .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContent in interface CorroborateContentRequestOrBuilder
      Returns:
      The content.
    • setContent

      public CorroborateContentRequest.Builder setContent(Content value)
       Optional. Input content to corroborate, only text format is supported for
       now.
       
      optional .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setContent

      public CorroborateContentRequest.Builder setContent(Content.Builder builderForValue)
       Optional. Input content to corroborate, only text format is supported for
       now.
       
      optional .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeContent

      public CorroborateContentRequest.Builder mergeContent(Content value)
       Optional. Input content to corroborate, only text format is supported for
       now.
       
      optional .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearContent

      public CorroborateContentRequest.Builder clearContent()
       Optional. Input content to corroborate, only text format is supported for
       now.
       
      optional .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getContentBuilder

      public Content.Builder getContentBuilder()
       Optional. Input content to corroborate, only text format is supported for
       now.
       
      optional .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getContentOrBuilder

      public ContentOrBuilder getContentOrBuilder()
       Optional. Input content to corroborate, only text format is supported for
       now.
       
      optional .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContentOrBuilder in interface CorroborateContentRequestOrBuilder
    • getFactsList

      public List<Fact> getFactsList()
       Optional. Facts used to generate the text can also be used to corroborate
       the text.
       
      repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFactsList in interface CorroborateContentRequestOrBuilder
    • getFactsCount

      public int getFactsCount()
       Optional. Facts used to generate the text can also be used to corroborate
       the text.
       
      repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFactsCount in interface CorroborateContentRequestOrBuilder
    • getFacts

      public Fact getFacts(int index)
       Optional. Facts used to generate the text can also be used to corroborate
       the text.
       
      repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFacts in interface CorroborateContentRequestOrBuilder
    • setFacts

      public CorroborateContentRequest.Builder setFacts(int index, Fact value)
       Optional. Facts used to generate the text can also be used to corroborate
       the text.
       
      repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setFacts

      public CorroborateContentRequest.Builder setFacts(int index, Fact.Builder builderForValue)
       Optional. Facts used to generate the text can also be used to corroborate
       the text.
       
      repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addFacts

      public CorroborateContentRequest.Builder addFacts(Fact value)
       Optional. Facts used to generate the text can also be used to corroborate
       the text.
       
      repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addFacts

      public CorroborateContentRequest.Builder addFacts(int index, Fact value)
       Optional. Facts used to generate the text can also be used to corroborate
       the text.
       
      repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addFacts

      public CorroborateContentRequest.Builder addFacts(Fact.Builder builderForValue)
       Optional. Facts used to generate the text can also be used to corroborate
       the text.
       
      repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addFacts

      public CorroborateContentRequest.Builder addFacts(int index, Fact.Builder builderForValue)
       Optional. Facts used to generate the text can also be used to corroborate
       the text.
       
      repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addAllFacts

      public CorroborateContentRequest.Builder addAllFacts(Iterable<? extends Fact> values)
       Optional. Facts used to generate the text can also be used to corroborate
       the text.
       
      repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearFacts

      public CorroborateContentRequest.Builder clearFacts()
       Optional. Facts used to generate the text can also be used to corroborate
       the text.
       
      repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];
    • removeFacts

      public CorroborateContentRequest.Builder removeFacts(int index)
       Optional. Facts used to generate the text can also be used to corroborate
       the text.
       
      repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getFactsBuilder

      public Fact.Builder getFactsBuilder(int index)
       Optional. Facts used to generate the text can also be used to corroborate
       the text.
       
      repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getFactsOrBuilder

      public FactOrBuilder getFactsOrBuilder(int index)
       Optional. Facts used to generate the text can also be used to corroborate
       the text.
       
      repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFactsOrBuilder in interface CorroborateContentRequestOrBuilder
    • getFactsOrBuilderList

      public List<? extends FactOrBuilder> getFactsOrBuilderList()
       Optional. Facts used to generate the text can also be used to corroborate
       the text.
       
      repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFactsOrBuilderList in interface CorroborateContentRequestOrBuilder
    • addFactsBuilder

      public Fact.Builder addFactsBuilder()
       Optional. Facts used to generate the text can also be used to corroborate
       the text.
       
      repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addFactsBuilder

      public Fact.Builder addFactsBuilder(int index)
       Optional. Facts used to generate the text can also be used to corroborate
       the text.
       
      repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getFactsBuilderList

      public List<Fact.Builder> getFactsBuilderList()
       Optional. Facts used to generate the text can also be used to corroborate
       the text.
       
      repeated .google.cloud.aiplatform.v1.Fact facts = 3 [(.google.api.field_behavior) = OPTIONAL];
    • hasParameters

      public boolean hasParameters()
       Optional. Parameters that can be set to override default settings per
       request.
       
      .google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasParameters in interface CorroborateContentRequestOrBuilder
      Returns:
      Whether the parameters field is set.
    • getParameters

      public CorroborateContentRequest.Parameters getParameters()
       Optional. Parameters that can be set to override default settings per
       request.
       
      .google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getParameters in interface CorroborateContentRequestOrBuilder
      Returns:
      The parameters.
    • setParameters

       Optional. Parameters that can be set to override default settings per
       request.
       
      .google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setParameters

       Optional. Parameters that can be set to override default settings per
       request.
       
      .google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
    • mergeParameters

       Optional. Parameters that can be set to override default settings per
       request.
       
      .google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearParameters

      public CorroborateContentRequest.Builder clearParameters()
       Optional. Parameters that can be set to override default settings per
       request.
       
      .google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getParametersBuilder

      public CorroborateContentRequest.Parameters.Builder getParametersBuilder()
       Optional. Parameters that can be set to override default settings per
       request.
       
      .google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getParametersOrBuilder

      public CorroborateContentRequest.ParametersOrBuilder getParametersOrBuilder()
       Optional. Parameters that can be set to override default settings per
       request.
       
      .google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getParametersOrBuilder in interface CorroborateContentRequestOrBuilder