Class IngestContextReferencesRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<IngestContextReferencesRequest.Builder>
com.google.cloud.dialogflow.v2.IngestContextReferencesRequest.Builder
All Implemented Interfaces:
IngestContextReferencesRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
IngestContextReferencesRequest

public static final class IngestContextReferencesRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<IngestContextReferencesRequest.Builder> implements IngestContextReferencesRequestOrBuilder
 The request message for [ConversationsService.IngestContextReferences][].
 
Protobuf type google.cloud.dialogflow.v2.IngestContextReferencesRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<IngestContextReferencesRequest.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<IngestContextReferencesRequest.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<IngestContextReferencesRequest.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<IngestContextReferencesRequest.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<IngestContextReferencesRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public IngestContextReferencesRequest.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<IngestContextReferencesRequest.Builder>
      Throws:
      IOException
    • getConversation

      public String getConversation()
       Required. Resource identifier of the conversation to ingest context
       information for. Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>`.
       
      string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getConversation in interface IngestContextReferencesRequestOrBuilder
      Returns:
      The conversation.
    • getConversationBytes

      public com.google.protobuf.ByteString getConversationBytes()
       Required. Resource identifier of the conversation to ingest context
       information for. Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>`.
       
      string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getConversationBytes in interface IngestContextReferencesRequestOrBuilder
      Returns:
      The bytes for conversation.
    • setConversation

      public IngestContextReferencesRequest.Builder setConversation(String value)
       Required. Resource identifier of the conversation to ingest context
       information for. Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>`.
       
      string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The conversation to set.
      Returns:
      This builder for chaining.
    • clearConversation

      public IngestContextReferencesRequest.Builder clearConversation()
       Required. Resource identifier of the conversation to ingest context
       information for. Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>`.
       
      string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setConversationBytes

      public IngestContextReferencesRequest.Builder setConversationBytes(com.google.protobuf.ByteString value)
       Required. Resource identifier of the conversation to ingest context
       information for. Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>`.
       
      string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for conversation to set.
      Returns:
      This builder for chaining.
    • getContextReferencesCount

      public int getContextReferencesCount()
      Description copied from interface: IngestContextReferencesRequestOrBuilder
       Required. The context references to ingest. The key is the name of the
       context reference and the value contains the contents of the context
       reference. The key is used to incorporate ingested context references to
       enhance the generator.
       
      map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> context_references = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContextReferencesCount in interface IngestContextReferencesRequestOrBuilder
    • containsContextReferences

      public boolean containsContextReferences(String key)
       Required. The context references to ingest. The key is the name of the
       context reference and the value contains the contents of the context
       reference. The key is used to incorporate ingested context references to
       enhance the generator.
       
      map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> context_references = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      containsContextReferences in interface IngestContextReferencesRequestOrBuilder
    • getContextReferences

      @Deprecated public Map<String,Conversation.ContextReference> getContextReferences()
      Deprecated.
      Specified by:
      getContextReferences in interface IngestContextReferencesRequestOrBuilder
    • getContextReferencesMap

      public Map<String,Conversation.ContextReference> getContextReferencesMap()
       Required. The context references to ingest. The key is the name of the
       context reference and the value contains the contents of the context
       reference. The key is used to incorporate ingested context references to
       enhance the generator.
       
      map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> context_references = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContextReferencesMap in interface IngestContextReferencesRequestOrBuilder
    • getContextReferencesOrDefault

      public Conversation.ContextReference getContextReferencesOrDefault(String key, Conversation.ContextReference defaultValue)
       Required. The context references to ingest. The key is the name of the
       context reference and the value contains the contents of the context
       reference. The key is used to incorporate ingested context references to
       enhance the generator.
       
      map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> context_references = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContextReferencesOrDefault in interface IngestContextReferencesRequestOrBuilder
    • getContextReferencesOrThrow

      public Conversation.ContextReference getContextReferencesOrThrow(String key)
       Required. The context references to ingest. The key is the name of the
       context reference and the value contains the contents of the context
       reference. The key is used to incorporate ingested context references to
       enhance the generator.
       
      map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> context_references = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContextReferencesOrThrow in interface IngestContextReferencesRequestOrBuilder
    • clearContextReferences

      public IngestContextReferencesRequest.Builder clearContextReferences()
    • removeContextReferences

      public IngestContextReferencesRequest.Builder removeContextReferences(String key)
       Required. The context references to ingest. The key is the name of the
       context reference and the value contains the contents of the context
       reference. The key is used to incorporate ingested context references to
       enhance the generator.
       
      map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> context_references = 2 [(.google.api.field_behavior) = REQUIRED];
    • getMutableContextReferences

      @Deprecated public Map<String,Conversation.ContextReference> getMutableContextReferences()
      Deprecated.
      Use alternate mutation accessors instead.
    • putContextReferences

       Required. The context references to ingest. The key is the name of the
       context reference and the value contains the contents of the context
       reference. The key is used to incorporate ingested context references to
       enhance the generator.
       
      map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> context_references = 2 [(.google.api.field_behavior) = REQUIRED];
    • putAllContextReferences

       Required. The context references to ingest. The key is the name of the
       context reference and the value contains the contents of the context
       reference. The key is used to incorporate ingested context references to
       enhance the generator.
       
      map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> context_references = 2 [(.google.api.field_behavior) = REQUIRED];
    • putContextReferencesBuilderIfAbsent

      public Conversation.ContextReference.Builder putContextReferencesBuilderIfAbsent(String key)
       Required. The context references to ingest. The key is the name of the
       context reference and the value contains the contents of the context
       reference. The key is used to incorporate ingested context references to
       enhance the generator.
       
      map<string, .google.cloud.dialogflow.v2.Conversation.ContextReference> context_references = 2 [(.google.api.field_behavior) = REQUIRED];