Class DeleteAllContextsRequest.Builder

    • Method Detail

      • getDescriptor

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

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

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

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

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

        public DeleteAllContextsRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 int index,
                                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DeleteAllContextsRequest.Builder>
      • addRepeatedField

        public DeleteAllContextsRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DeleteAllContextsRequest.Builder>
      • isInitialized

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

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

        public String getParent()
         Required. The name of the session to delete all contexts from. 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) = { ... }
        Specified by:
        getParent in interface DeleteAllContextsRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. The name of the session to delete all contexts from. 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) = { ... }
        Specified by:
        getParentBytes in interface DeleteAllContextsRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public DeleteAllContextsRequest.Builder setParent​(String value)
         Required. The name of the session to delete all contexts from. 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) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public DeleteAllContextsRequest.Builder clearParent()
         Required. The name of the session to delete all contexts from. 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:
        This builder for chaining.
      • setParentBytes

        public DeleteAllContextsRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. The name of the session to delete all contexts from. 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) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final DeleteAllContextsRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DeleteAllContextsRequest.Builder>
      • mergeUnknownFields

        public final DeleteAllContextsRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DeleteAllContextsRequest.Builder>