Interface CreateContextRequestOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    CreateContextRequest, CreateContextRequest.Builder

    public interface CreateContextRequestOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Context getContext()
      Required.
      ContextOrBuilder getContextOrBuilder()
      Required.
      String getParent()
      Required.
      com.google.protobuf.ByteString getParentBytes()
      Required.
      boolean hasContext()
      Required.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getParent

        String getParent()
         Required. The session to create a context for. Supported formats:
         - `projects/<Project ID>/agent/sessions/<Session ID>,
         - `projects/<Project ID>/locations/<Location ID>/agent/sessions/<Session
           ID>`,
         - `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
           ID>/sessions/<Session ID>`,
         - `projects/<Project ID>/locations/<Location
           ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session
           ID>`,
        
         If `Location ID` is not specified we assume default 'us' location. If
         `Environment ID` is not specified, we assume default 'draft' environment.
         If `User ID` is not specified, we assume default '-' user.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        The parent.
      • getParentBytes

        com.google.protobuf.ByteString getParentBytes()
         Required. The session to create a context for. Supported formats:
         - `projects/<Project ID>/agent/sessions/<Session ID>,
         - `projects/<Project ID>/locations/<Location ID>/agent/sessions/<Session
           ID>`,
         - `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
           ID>/sessions/<Session ID>`,
         - `projects/<Project ID>/locations/<Location
           ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session
           ID>`,
        
         If `Location ID` is not specified we assume default 'us' location. If
         `Environment ID` is not specified, we assume default 'draft' environment.
         If `User ID` is not specified, we assume default '-' user.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        The bytes for parent.
      • hasContext

        boolean hasContext()
         Required. The context to create.
         
        .google.cloud.dialogflow.v2beta1.Context context = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        Whether the context field is set.
      • getContext

        Context getContext()
         Required. The context to create.
         
        .google.cloud.dialogflow.v2beta1.Context context = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The context.
      • getContextOrBuilder

        ContextOrBuilder getContextOrBuilder()
         Required. The context to create.
         
        .google.cloud.dialogflow.v2beta1.Context context = 2 [(.google.api.field_behavior) = REQUIRED];