Class BatchUpdateEntitiesRequest.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<BatchUpdateEntitiesRequest.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<BatchUpdateEntitiesRequest.Builder>
      • getDefaultInstanceForType

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

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

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

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

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

        public String getParent()
         Required. The name of the entity type to update or create entities in.
         Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface BatchUpdateEntitiesRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. The name of the entity type to update or create entities in.
         Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface BatchUpdateEntitiesRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public BatchUpdateEntitiesRequest.Builder setParent​(String value)
         Required. The name of the entity type to update or create entities in.
         Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
         
        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 BatchUpdateEntitiesRequest.Builder clearParent()
         Required. The name of the entity type to update or create entities in.
         Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public BatchUpdateEntitiesRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. The name of the entity type to update or create entities in.
         Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
         
        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.
      • getEntitiesCount

        public int getEntitiesCount()
         Required. The entities to update or create.
         
        repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getEntitiesCount in interface BatchUpdateEntitiesRequestOrBuilder
      • setEntities

        public BatchUpdateEntitiesRequest.Builder setEntities​(int index,
                                                              EntityType.Entity value)
         Required. The entities to update or create.
         
        repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];
      • addEntities

        public BatchUpdateEntitiesRequest.Builder addEntities​(int index,
                                                              EntityType.Entity value)
         Required. The entities to update or create.
         
        repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearEntities

        public BatchUpdateEntitiesRequest.Builder clearEntities()
         Required. The entities to update or create.
         
        repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];
      • removeEntities

        public BatchUpdateEntitiesRequest.Builder removeEntities​(int index)
         Required. The entities to update or create.
         
        repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];
      • getEntitiesBuilder

        public EntityType.Entity.Builder getEntitiesBuilder​(int index)
         Required. The entities to update or create.
         
        repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];
      • addEntitiesBuilder

        public EntityType.Entity.Builder addEntitiesBuilder()
         Required. The entities to update or create.
         
        repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];
      • addEntitiesBuilder

        public EntityType.Entity.Builder addEntitiesBuilder​(int index)
         Required. The entities to update or create.
         
        repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];
      • getEntitiesBuilderList

        public List<EntityType.Entity.Builder> getEntitiesBuilderList()
         Required. The entities to update or create.
         
        repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];
      • getLanguageCode

        public String getLanguageCode()
         Optional. The language used to access language-specific data.
         If not specified, the agent's default language is used.
         For more information, see
         [Multilingual intent and entity
         data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
         
        string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLanguageCode in interface BatchUpdateEntitiesRequestOrBuilder
        Returns:
        The languageCode.
      • getLanguageCodeBytes

        public com.google.protobuf.ByteString getLanguageCodeBytes()
         Optional. The language used to access language-specific data.
         If not specified, the agent's default language is used.
         For more information, see
         [Multilingual intent and entity
         data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
         
        string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLanguageCodeBytes in interface BatchUpdateEntitiesRequestOrBuilder
        Returns:
        The bytes for languageCode.
      • setLanguageCode

        public BatchUpdateEntitiesRequest.Builder setLanguageCode​(String value)
         Optional. The language used to access language-specific data.
         If not specified, the agent's default language is used.
         For more information, see
         [Multilingual intent and entity
         data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
         
        string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The languageCode to set.
        Returns:
        This builder for chaining.
      • clearLanguageCode

        public BatchUpdateEntitiesRequest.Builder clearLanguageCode()
         Optional. The language used to access language-specific data.
         If not specified, the agent's default language is used.
         For more information, see
         [Multilingual intent and entity
         data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
         
        string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setLanguageCodeBytes

        public BatchUpdateEntitiesRequest.Builder setLanguageCodeBytes​(com.google.protobuf.ByteString value)
         Optional. The language used to access language-specific data.
         If not specified, the agent's default language is used.
         For more information, see
         [Multilingual intent and entity
         data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
         
        string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for languageCode to set.
        Returns:
        This builder for chaining.
      • hasUpdateMask

        public boolean hasUpdateMask()
         Optional. The mask to control which fields get updated.
         
        .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasUpdateMask in interface BatchUpdateEntitiesRequestOrBuilder
        Returns:
        Whether the updateMask field is set.
      • getUpdateMask

        public com.google.protobuf.FieldMask getUpdateMask()
         Optional. The mask to control which fields get updated.
         
        .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getUpdateMask in interface BatchUpdateEntitiesRequestOrBuilder
        Returns:
        The updateMask.
      • setUpdateMask

        public BatchUpdateEntitiesRequest.Builder setUpdateMask​(com.google.protobuf.FieldMask value)
         Optional. The mask to control which fields get updated.
         
        .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];
      • setUpdateMask

        public BatchUpdateEntitiesRequest.Builder setUpdateMask​(com.google.protobuf.FieldMask.Builder builderForValue)
         Optional. The mask to control which fields get updated.
         
        .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];
      • mergeUpdateMask

        public BatchUpdateEntitiesRequest.Builder mergeUpdateMask​(com.google.protobuf.FieldMask value)
         Optional. The mask to control which fields get updated.
         
        .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];
      • clearUpdateMask

        public BatchUpdateEntitiesRequest.Builder clearUpdateMask()
         Optional. The mask to control which fields get updated.
         
        .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];
      • getUpdateMaskBuilder

        public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
         Optional. The mask to control which fields get updated.
         
        .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];
      • getUpdateMaskOrBuilder

        public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
         Optional. The mask to control which fields get updated.
         
        .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getUpdateMaskOrBuilder in interface BatchUpdateEntitiesRequestOrBuilder
      • setUnknownFields

        public final BatchUpdateEntitiesRequest.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<BatchUpdateEntitiesRequest.Builder>
      • mergeUnknownFields

        public final BatchUpdateEntitiesRequest.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<BatchUpdateEntitiesRequest.Builder>