// Code generated by protoc-gen-goext. DO NOT EDIT.

package searchindex

import (
	common "github.com/yandex-cloud/go-genproto/yandex/cloud/ai/common"
	fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
)

type CreateSearchIndexRequest_IndexType = isCreateSearchIndexRequest_IndexType

func (m *CreateSearchIndexRequest) SetIndexType(v CreateSearchIndexRequest_IndexType) {
	m.IndexType = v
}

func (m *CreateSearchIndexRequest) SetFolderId(v string) {
	m.FolderId = v
}

func (m *CreateSearchIndexRequest) SetFileIds(v []string) {
	m.FileIds = v
}

func (m *CreateSearchIndexRequest) SetName(v string) {
	m.Name = v
}

func (m *CreateSearchIndexRequest) SetDescription(v string) {
	m.Description = v
}

func (m *CreateSearchIndexRequest) SetExpirationConfig(v *common.ExpirationConfig) {
	m.ExpirationConfig = v
}

func (m *CreateSearchIndexRequest) SetLabels(v map[string]string) {
	m.Labels = v
}

func (m *CreateSearchIndexRequest) SetTextSearchIndex(v *TextSearchIndex) {
	m.IndexType = &CreateSearchIndexRequest_TextSearchIndex{
		TextSearchIndex: v,
	}
}

func (m *CreateSearchIndexRequest) SetVectorSearchIndex(v *VectorSearchIndex) {
	m.IndexType = &CreateSearchIndexRequest_VectorSearchIndex{
		VectorSearchIndex: v,
	}
}

func (m *CreateSearchIndexRequest) SetHybridSearchIndex(v *HybridSearchIndex) {
	m.IndexType = &CreateSearchIndexRequest_HybridSearchIndex{
		HybridSearchIndex: v,
	}
}

func (m *GetSearchIndexRequest) SetSearchIndexId(v string) {
	m.SearchIndexId = v
}

func (m *UpdateSearchIndexRequest) SetSearchIndexId(v string) {
	m.SearchIndexId = v
}

func (m *UpdateSearchIndexRequest) SetUpdateMask(v *fieldmaskpb.FieldMask) {
	m.UpdateMask = v
}

func (m *UpdateSearchIndexRequest) SetName(v string) {
	m.Name = v
}

func (m *UpdateSearchIndexRequest) SetDescription(v string) {
	m.Description = v
}

func (m *UpdateSearchIndexRequest) SetExpirationConfig(v *common.ExpirationConfig) {
	m.ExpirationConfig = v
}

func (m *UpdateSearchIndexRequest) SetLabels(v map[string]string) {
	m.Labels = v
}

func (m *DeleteSearchIndexRequest) SetSearchIndexId(v string) {
	m.SearchIndexId = v
}

func (m *ListSearchIndicesRequest) SetFolderId(v string) {
	m.FolderId = v
}

func (m *ListSearchIndicesRequest) SetPageSize(v int64) {
	m.PageSize = v
}

func (m *ListSearchIndicesRequest) SetPageToken(v string) {
	m.PageToken = v
}

func (m *ListSearchIndicesResponse) SetIndices(v []*SearchIndex) {
	m.Indices = v
}

func (m *ListSearchIndicesResponse) SetNextPageToken(v string) {
	m.NextPageToken = v
}
