genproto: google.golang.org/genproto/googleapis/datastore/admin/v1 Index | Files

package admin

import "google.golang.org/genproto/googleapis/datastore/admin/v1"

Index

Package Files

datastore_admin.pb.go index.pb.go

Variables

var (
    OperationType_name = map[int32]string{
        0:  "OPERATION_TYPE_UNSPECIFIED",
        1:  "EXPORT_ENTITIES",
        2:  "IMPORT_ENTITIES",
        3:  "CREATE_INDEX",
        4:  "DELETE_INDEX",
    }
    OperationType_value = map[string]int32{
        "OPERATION_TYPE_UNSPECIFIED": 0,
        "EXPORT_ENTITIES":            1,
        "IMPORT_ENTITIES":            2,
        "CREATE_INDEX":               3,
        "DELETE_INDEX":               4,
    }
)

Enum value maps for OperationType.

var (
    CommonMetadata_State_name = map[int32]string{
        0:  "STATE_UNSPECIFIED",
        1:  "INITIALIZING",
        2:  "PROCESSING",
        3:  "CANCELLING",
        4:  "FINALIZING",
        5:  "SUCCESSFUL",
        6:  "FAILED",
        7:  "CANCELLED",
    }
    CommonMetadata_State_value = map[string]int32{
        "STATE_UNSPECIFIED": 0,
        "INITIALIZING":      1,
        "PROCESSING":        2,
        "CANCELLING":        3,
        "FINALIZING":        4,
        "SUCCESSFUL":        5,
        "FAILED":            6,
        "CANCELLED":         7,
    }
)

Enum value maps for CommonMetadata_State.

var (
    Index_AncestorMode_name = map[int32]string{
        0:  "ANCESTOR_MODE_UNSPECIFIED",
        1:  "NONE",
        2:  "ALL_ANCESTORS",
    }
    Index_AncestorMode_value = map[string]int32{
        "ANCESTOR_MODE_UNSPECIFIED": 0,
        "NONE":                      1,
        "ALL_ANCESTORS":             2,
    }
)

Enum value maps for Index_AncestorMode.

var (
    Index_Direction_name = map[int32]string{
        0:  "DIRECTION_UNSPECIFIED",
        1:  "ASCENDING",
        2:  "DESCENDING",
    }
    Index_Direction_value = map[string]int32{
        "DIRECTION_UNSPECIFIED": 0,
        "ASCENDING":             1,
        "DESCENDING":            2,
    }
)

Enum value maps for Index_Direction.

var (
    Index_State_name = map[int32]string{
        0:  "STATE_UNSPECIFIED",
        1:  "CREATING",
        2:  "READY",
        3:  "DELETING",
        4:  "ERROR",
    }
    Index_State_value = map[string]int32{
        "STATE_UNSPECIFIED": 0,
        "CREATING":          1,
        "READY":             2,
        "DELETING":          3,
        "ERROR":             4,
    }
)

Enum value maps for Index_State.

var File_google_datastore_admin_v1_datastore_admin_proto protoreflect.FileDescriptor
var File_google_datastore_admin_v1_index_proto protoreflect.FileDescriptor

func RegisterDatastoreAdminServer Uses

func RegisterDatastoreAdminServer(s *grpc.Server, srv DatastoreAdminServer)

type CommonMetadata Uses

type CommonMetadata struct {

    // The time that work began on the operation.
    StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
    // The time the operation ended, either successfully or otherwise.
    EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
    // The type of the operation. Can be used as a filter in
    // ListOperationsRequest.
    OperationType OperationType `protobuf:"varint,3,opt,name=operation_type,json=operationType,proto3,enum=google.datastore.admin.v1.OperationType" json:"operation_type,omitempty"`
    // The client-assigned labels which were provided when the operation was
    // created. May also include additional labels.
    Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // The current state of the Operation.
    State CommonMetadata_State `protobuf:"varint,5,opt,name=state,proto3,enum=google.datastore.admin.v1.CommonMetadata_State" json:"state,omitempty"`
    // contains filtered or unexported fields
}

Metadata common to all Datastore Admin operations.

func (*CommonMetadata) Descriptor Uses

func (*CommonMetadata) Descriptor() ([]byte, []int)

Deprecated: Use CommonMetadata.ProtoReflect.Descriptor instead.

func (*CommonMetadata) GetEndTime Uses

func (x *CommonMetadata) GetEndTime() *timestamp.Timestamp

func (*CommonMetadata) GetLabels Uses

func (x *CommonMetadata) GetLabels() map[string]string

func (*CommonMetadata) GetOperationType Uses

func (x *CommonMetadata) GetOperationType() OperationType

func (*CommonMetadata) GetStartTime Uses

func (x *CommonMetadata) GetStartTime() *timestamp.Timestamp

func (*CommonMetadata) GetState Uses

func (x *CommonMetadata) GetState() CommonMetadata_State

func (*CommonMetadata) ProtoMessage Uses

func (*CommonMetadata) ProtoMessage()

func (*CommonMetadata) ProtoReflect Uses

func (x *CommonMetadata) ProtoReflect() protoreflect.Message

func (*CommonMetadata) Reset Uses

func (x *CommonMetadata) Reset()

func (*CommonMetadata) String Uses

func (x *CommonMetadata) String() string

type CommonMetadata_State Uses

type CommonMetadata_State int32

The various possible states for an ongoing Operation.

const (
    // Unspecified.
    CommonMetadata_STATE_UNSPECIFIED CommonMetadata_State = 0
    // Request is being prepared for processing.
    CommonMetadata_INITIALIZING CommonMetadata_State = 1
    // Request is actively being processed.
    CommonMetadata_PROCESSING CommonMetadata_State = 2
    // Request is in the process of being cancelled after user called
    // google.longrunning.Operations.CancelOperation on the operation.
    CommonMetadata_CANCELLING CommonMetadata_State = 3
    // Request has been processed and is in its finalization stage.
    CommonMetadata_FINALIZING CommonMetadata_State = 4
    // Request has completed successfully.
    CommonMetadata_SUCCESSFUL CommonMetadata_State = 5
    // Request has finished being processed, but encountered an error.
    CommonMetadata_FAILED CommonMetadata_State = 6
    // Request has finished being cancelled after user called
    // google.longrunning.Operations.CancelOperation.
    CommonMetadata_CANCELLED CommonMetadata_State = 7
)

func (CommonMetadata_State) Descriptor Uses

func (CommonMetadata_State) Descriptor() protoreflect.EnumDescriptor

func (CommonMetadata_State) Enum Uses

func (x CommonMetadata_State) Enum() *CommonMetadata_State

func (CommonMetadata_State) EnumDescriptor Uses

func (CommonMetadata_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use CommonMetadata_State.Descriptor instead.

func (CommonMetadata_State) Number Uses

func (x CommonMetadata_State) Number() protoreflect.EnumNumber

func (CommonMetadata_State) String Uses

func (x CommonMetadata_State) String() string

func (CommonMetadata_State) Type Uses

func (CommonMetadata_State) Type() protoreflect.EnumType

type DatastoreAdminClient Uses

type DatastoreAdminClient interface {
    // Exports a copy of all or a subset of entities from Google Cloud Datastore
    // to another storage system, such as Google Cloud Storage. Recent updates to
    // entities may not be reflected in the export. The export occurs in the
    // background and its progress can be monitored and managed via the
    // Operation resource that is created. The output of an export may only be
    // used once the associated operation is done. If an export operation is
    // cancelled before completion it may leave partial data behind in Google
    // Cloud Storage.
    ExportEntities(ctx context.Context, in *ExportEntitiesRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
    // Imports entities into Google Cloud Datastore. Existing entities with the
    // same key are overwritten. The import occurs in the background and its
    // progress can be monitored and managed via the Operation resource that is
    // created. If an ImportEntities operation is cancelled, it is possible
    // that a subset of the data has already been imported to Cloud Datastore.
    ImportEntities(ctx context.Context, in *ImportEntitiesRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
    // Gets an index.
    GetIndex(ctx context.Context, in *GetIndexRequest, opts ...grpc.CallOption) (*Index, error)
    // Lists the indexes that match the specified filters.  Datastore uses an
    // eventually consistent query to fetch the list of indexes and may
    // occasionally return stale results.
    ListIndexes(ctx context.Context, in *ListIndexesRequest, opts ...grpc.CallOption) (*ListIndexesResponse, error)
}

DatastoreAdminClient is the client API for DatastoreAdmin service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewDatastoreAdminClient Uses

func NewDatastoreAdminClient(cc grpc.ClientConnInterface) DatastoreAdminClient

type DatastoreAdminServer Uses

type DatastoreAdminServer interface {
    // Exports a copy of all or a subset of entities from Google Cloud Datastore
    // to another storage system, such as Google Cloud Storage. Recent updates to
    // entities may not be reflected in the export. The export occurs in the
    // background and its progress can be monitored and managed via the
    // Operation resource that is created. The output of an export may only be
    // used once the associated operation is done. If an export operation is
    // cancelled before completion it may leave partial data behind in Google
    // Cloud Storage.
    ExportEntities(context.Context, *ExportEntitiesRequest) (*longrunning.Operation, error)
    // Imports entities into Google Cloud Datastore. Existing entities with the
    // same key are overwritten. The import occurs in the background and its
    // progress can be monitored and managed via the Operation resource that is
    // created. If an ImportEntities operation is cancelled, it is possible
    // that a subset of the data has already been imported to Cloud Datastore.
    ImportEntities(context.Context, *ImportEntitiesRequest) (*longrunning.Operation, error)
    // Gets an index.
    GetIndex(context.Context, *GetIndexRequest) (*Index, error)
    // Lists the indexes that match the specified filters.  Datastore uses an
    // eventually consistent query to fetch the list of indexes and may
    // occasionally return stale results.
    ListIndexes(context.Context, *ListIndexesRequest) (*ListIndexesResponse, error)
}

DatastoreAdminServer is the server API for DatastoreAdmin service.

type EntityFilter Uses

type EntityFilter struct {

    // If empty, then this represents all kinds.
    Kinds []string `protobuf:"bytes,1,rep,name=kinds,proto3" json:"kinds,omitempty"`
    // An empty list represents all namespaces. This is the preferred
    // usage for projects that don't use namespaces.
    //
    // An empty string element represents the default namespace. This should be
    // used if the project has data in non-default namespaces, but doesn't want to
    // include them.
    // Each namespace in this list must be unique.
    NamespaceIds []string `protobuf:"bytes,2,rep,name=namespace_ids,json=namespaceIds,proto3" json:"namespace_ids,omitempty"`
    // contains filtered or unexported fields
}

Identifies a subset of entities in a project. This is specified as combinations of kinds and namespaces (either or both of which may be all, as described in the following examples). Example usage:

Entire project:

kinds=[], namespace_ids=[]

Kinds Foo and Bar in all namespaces:

kinds=['Foo', 'Bar'], namespace_ids=[]

Kinds Foo and Bar only in the default namespace:

kinds=['Foo', 'Bar'], namespace_ids=['']

Kinds Foo and Bar in both the default and Baz namespaces:

kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz']

The entire Baz namespace:

kinds=[], namespace_ids=['Baz']

func (*EntityFilter) Descriptor Uses

func (*EntityFilter) Descriptor() ([]byte, []int)

Deprecated: Use EntityFilter.ProtoReflect.Descriptor instead.

func (*EntityFilter) GetKinds Uses

func (x *EntityFilter) GetKinds() []string

func (*EntityFilter) GetNamespaceIds Uses

func (x *EntityFilter) GetNamespaceIds() []string

func (*EntityFilter) ProtoMessage Uses

func (*EntityFilter) ProtoMessage()

func (*EntityFilter) ProtoReflect Uses

func (x *EntityFilter) ProtoReflect() protoreflect.Message

func (*EntityFilter) Reset Uses

func (x *EntityFilter) Reset()

func (*EntityFilter) String Uses

func (x *EntityFilter) String() string

type ExportEntitiesMetadata Uses

type ExportEntitiesMetadata struct {

    // Metadata common to all Datastore Admin operations.
    Common *CommonMetadata `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"`
    // An estimate of the number of entities processed.
    ProgressEntities *Progress `protobuf:"bytes,2,opt,name=progress_entities,json=progressEntities,proto3" json:"progress_entities,omitempty"`
    // An estimate of the number of bytes processed.
    ProgressBytes *Progress `protobuf:"bytes,3,opt,name=progress_bytes,json=progressBytes,proto3" json:"progress_bytes,omitempty"`
    // Description of which entities are being exported.
    EntityFilter *EntityFilter `protobuf:"bytes,4,opt,name=entity_filter,json=entityFilter,proto3" json:"entity_filter,omitempty"`
    // Location for the export metadata and data files. This will be the same
    // value as the
    // [google.datastore.admin.v1.ExportEntitiesRequest.output_url_prefix][google.datastore.admin.v1.ExportEntitiesRequest.output_url_prefix]
    // field. The final output location is provided in
    // [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url].
    OutputUrlPrefix string `protobuf:"bytes,5,opt,name=output_url_prefix,json=outputUrlPrefix,proto3" json:"output_url_prefix,omitempty"`
    // contains filtered or unexported fields
}

Metadata for ExportEntities operations.

func (*ExportEntitiesMetadata) Descriptor Uses

func (*ExportEntitiesMetadata) Descriptor() ([]byte, []int)

Deprecated: Use ExportEntitiesMetadata.ProtoReflect.Descriptor instead.

func (*ExportEntitiesMetadata) GetCommon Uses

func (x *ExportEntitiesMetadata) GetCommon() *CommonMetadata

func (*ExportEntitiesMetadata) GetEntityFilter Uses

func (x *ExportEntitiesMetadata) GetEntityFilter() *EntityFilter

func (*ExportEntitiesMetadata) GetOutputUrlPrefix Uses

func (x *ExportEntitiesMetadata) GetOutputUrlPrefix() string

func (*ExportEntitiesMetadata) GetProgressBytes Uses

func (x *ExportEntitiesMetadata) GetProgressBytes() *Progress

func (*ExportEntitiesMetadata) GetProgressEntities Uses

func (x *ExportEntitiesMetadata) GetProgressEntities() *Progress

func (*ExportEntitiesMetadata) ProtoMessage Uses

func (*ExportEntitiesMetadata) ProtoMessage()

func (*ExportEntitiesMetadata) ProtoReflect Uses

func (x *ExportEntitiesMetadata) ProtoReflect() protoreflect.Message

func (*ExportEntitiesMetadata) Reset Uses

func (x *ExportEntitiesMetadata) Reset()

func (*ExportEntitiesMetadata) String Uses

func (x *ExportEntitiesMetadata) String() string

type ExportEntitiesRequest Uses

type ExportEntitiesRequest struct {

    // Required. Project ID against which to make the request.
    ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
    // Client-assigned labels.
    Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // Description of what data from the project is included in the export.
    EntityFilter *EntityFilter `protobuf:"bytes,3,opt,name=entity_filter,json=entityFilter,proto3" json:"entity_filter,omitempty"`
    // Required. Location for the export metadata and data files.
    //
    // The full resource URL of the external storage location. Currently, only
    // Google Cloud Storage is supported. So output_url_prefix should be of the
    // form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the
    // name of the Cloud Storage bucket and `NAMESPACE_PATH` is an optional Cloud
    // Storage namespace path (this is not a Cloud Datastore namespace). For more
    // information about Cloud Storage namespace paths, see
    // [Object name
    // considerations](https://cloud.google.com/storage/docs/naming#object-considerations).
    //
    // The resulting files will be nested deeper than the specified URL prefix.
    // The final output URL will be provided in the
    // [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] field. That
    // value should be used for subsequent ImportEntities operations.
    //
    // By nesting the data files deeper, the same Cloud Storage bucket can be used
    // in multiple ExportEntities operations without conflict.
    OutputUrlPrefix string `protobuf:"bytes,4,opt,name=output_url_prefix,json=outputUrlPrefix,proto3" json:"output_url_prefix,omitempty"`
    // contains filtered or unexported fields
}

The request for [google.datastore.admin.v1.DatastoreAdmin.ExportEntities][google.datastore.admin.v1.DatastoreAdmin.ExportEntities].

func (*ExportEntitiesRequest) Descriptor Uses

func (*ExportEntitiesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ExportEntitiesRequest.ProtoReflect.Descriptor instead.

func (*ExportEntitiesRequest) GetEntityFilter Uses

func (x *ExportEntitiesRequest) GetEntityFilter() *EntityFilter

func (*ExportEntitiesRequest) GetLabels Uses

func (x *ExportEntitiesRequest) GetLabels() map[string]string

func (*ExportEntitiesRequest) GetOutputUrlPrefix Uses

func (x *ExportEntitiesRequest) GetOutputUrlPrefix() string

func (*ExportEntitiesRequest) GetProjectId Uses

func (x *ExportEntitiesRequest) GetProjectId() string

func (*ExportEntitiesRequest) ProtoMessage Uses

func (*ExportEntitiesRequest) ProtoMessage()

func (*ExportEntitiesRequest) ProtoReflect Uses

func (x *ExportEntitiesRequest) ProtoReflect() protoreflect.Message

func (*ExportEntitiesRequest) Reset Uses

func (x *ExportEntitiesRequest) Reset()

func (*ExportEntitiesRequest) String Uses

func (x *ExportEntitiesRequest) String() string

type ExportEntitiesResponse Uses

type ExportEntitiesResponse struct {

    // Location of the output metadata file. This can be used to begin an import
    // into Cloud Datastore (this project or another project). See
    // [google.datastore.admin.v1.ImportEntitiesRequest.input_url][google.datastore.admin.v1.ImportEntitiesRequest.input_url].
    // Only present if the operation completed successfully.
    OutputUrl string `protobuf:"bytes,1,opt,name=output_url,json=outputUrl,proto3" json:"output_url,omitempty"`
    // contains filtered or unexported fields
}

The response for [google.datastore.admin.v1.DatastoreAdmin.ExportEntities][google.datastore.admin.v1.DatastoreAdmin.ExportEntities].

func (*ExportEntitiesResponse) Descriptor Uses

func (*ExportEntitiesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ExportEntitiesResponse.ProtoReflect.Descriptor instead.

func (*ExportEntitiesResponse) GetOutputUrl Uses

func (x *ExportEntitiesResponse) GetOutputUrl() string

func (*ExportEntitiesResponse) ProtoMessage Uses

func (*ExportEntitiesResponse) ProtoMessage()

func (*ExportEntitiesResponse) ProtoReflect Uses

func (x *ExportEntitiesResponse) ProtoReflect() protoreflect.Message

func (*ExportEntitiesResponse) Reset Uses

func (x *ExportEntitiesResponse) Reset()

func (*ExportEntitiesResponse) String Uses

func (x *ExportEntitiesResponse) String() string

type GetIndexRequest Uses

type GetIndexRequest struct {

    // Project ID against which to make the request.
    ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
    // The resource ID of the index to get.
    IndexId string `protobuf:"bytes,3,opt,name=index_id,json=indexId,proto3" json:"index_id,omitempty"`
    // contains filtered or unexported fields
}

The request for [google.datastore.admin.v1.DatastoreAdmin.GetIndex][google.datastore.admin.v1.DatastoreAdmin.GetIndex].

func (*GetIndexRequest) Descriptor Uses

func (*GetIndexRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetIndexRequest.ProtoReflect.Descriptor instead.

func (*GetIndexRequest) GetIndexId Uses

func (x *GetIndexRequest) GetIndexId() string

func (*GetIndexRequest) GetProjectId Uses

func (x *GetIndexRequest) GetProjectId() string

func (*GetIndexRequest) ProtoMessage Uses

func (*GetIndexRequest) ProtoMessage()

func (*GetIndexRequest) ProtoReflect Uses

func (x *GetIndexRequest) ProtoReflect() protoreflect.Message

func (*GetIndexRequest) Reset Uses

func (x *GetIndexRequest) Reset()

func (*GetIndexRequest) String Uses

func (x *GetIndexRequest) String() string

type ImportEntitiesMetadata Uses

type ImportEntitiesMetadata struct {

    // Metadata common to all Datastore Admin operations.
    Common *CommonMetadata `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"`
    // An estimate of the number of entities processed.
    ProgressEntities *Progress `protobuf:"bytes,2,opt,name=progress_entities,json=progressEntities,proto3" json:"progress_entities,omitempty"`
    // An estimate of the number of bytes processed.
    ProgressBytes *Progress `protobuf:"bytes,3,opt,name=progress_bytes,json=progressBytes,proto3" json:"progress_bytes,omitempty"`
    // Description of which entities are being imported.
    EntityFilter *EntityFilter `protobuf:"bytes,4,opt,name=entity_filter,json=entityFilter,proto3" json:"entity_filter,omitempty"`
    // The location of the import metadata file. This will be the same value as
    // the [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] field.
    InputUrl string `protobuf:"bytes,5,opt,name=input_url,json=inputUrl,proto3" json:"input_url,omitempty"`
    // contains filtered or unexported fields
}

Metadata for ImportEntities operations.

func (*ImportEntitiesMetadata) Descriptor Uses

func (*ImportEntitiesMetadata) Descriptor() ([]byte, []int)

Deprecated: Use ImportEntitiesMetadata.ProtoReflect.Descriptor instead.

func (*ImportEntitiesMetadata) GetCommon Uses

func (x *ImportEntitiesMetadata) GetCommon() *CommonMetadata

func (*ImportEntitiesMetadata) GetEntityFilter Uses

func (x *ImportEntitiesMetadata) GetEntityFilter() *EntityFilter

func (*ImportEntitiesMetadata) GetInputUrl Uses

func (x *ImportEntitiesMetadata) GetInputUrl() string

func (*ImportEntitiesMetadata) GetProgressBytes Uses

func (x *ImportEntitiesMetadata) GetProgressBytes() *Progress

func (*ImportEntitiesMetadata) GetProgressEntities Uses

func (x *ImportEntitiesMetadata) GetProgressEntities() *Progress

func (*ImportEntitiesMetadata) ProtoMessage Uses

func (*ImportEntitiesMetadata) ProtoMessage()

func (*ImportEntitiesMetadata) ProtoReflect Uses

func (x *ImportEntitiesMetadata) ProtoReflect() protoreflect.Message

func (*ImportEntitiesMetadata) Reset Uses

func (x *ImportEntitiesMetadata) Reset()

func (*ImportEntitiesMetadata) String Uses

func (x *ImportEntitiesMetadata) String() string

type ImportEntitiesRequest Uses

type ImportEntitiesRequest struct {

    // Required. Project ID against which to make the request.
    ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
    // Client-assigned labels.
    Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // Required. The full resource URL of the external storage location. Currently, only
    // Google Cloud Storage is supported. So input_url should be of the form:
    // `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where
    // `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is
    // an optional Cloud Storage namespace path (this is not a Cloud Datastore
    // namespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written
    // by the ExportEntities operation. For more information about Cloud Storage
    // namespace paths, see
    // [Object name
    // considerations](https://cloud.google.com/storage/docs/naming#object-considerations).
    //
    // For more information, see
    // [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url].
    InputUrl string `protobuf:"bytes,3,opt,name=input_url,json=inputUrl,proto3" json:"input_url,omitempty"`
    // Optionally specify which kinds/namespaces are to be imported. If provided,
    // the list must be a subset of the EntityFilter used in creating the export,
    // otherwise a FAILED_PRECONDITION error will be returned. If no filter is
    // specified then all entities from the export are imported.
    EntityFilter *EntityFilter `protobuf:"bytes,4,opt,name=entity_filter,json=entityFilter,proto3" json:"entity_filter,omitempty"`
    // contains filtered or unexported fields
}

The request for [google.datastore.admin.v1.DatastoreAdmin.ImportEntities][google.datastore.admin.v1.DatastoreAdmin.ImportEntities].

func (*ImportEntitiesRequest) Descriptor Uses

func (*ImportEntitiesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ImportEntitiesRequest.ProtoReflect.Descriptor instead.

func (*ImportEntitiesRequest) GetEntityFilter Uses

func (x *ImportEntitiesRequest) GetEntityFilter() *EntityFilter

func (*ImportEntitiesRequest) GetInputUrl Uses

func (x *ImportEntitiesRequest) GetInputUrl() string

func (*ImportEntitiesRequest) GetLabels Uses

func (x *ImportEntitiesRequest) GetLabels() map[string]string

func (*ImportEntitiesRequest) GetProjectId Uses

func (x *ImportEntitiesRequest) GetProjectId() string

func (*ImportEntitiesRequest) ProtoMessage Uses

func (*ImportEntitiesRequest) ProtoMessage()

func (*ImportEntitiesRequest) ProtoReflect Uses

func (x *ImportEntitiesRequest) ProtoReflect() protoreflect.Message

func (*ImportEntitiesRequest) Reset Uses

func (x *ImportEntitiesRequest) Reset()

func (*ImportEntitiesRequest) String Uses

func (x *ImportEntitiesRequest) String() string

type Index Uses

type Index struct {

    // Output only. Project ID.
    ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
    // Output only. The resource ID of the index.
    IndexId string `protobuf:"bytes,3,opt,name=index_id,json=indexId,proto3" json:"index_id,omitempty"`
    // Required. The entity kind to which this index applies.
    Kind string `protobuf:"bytes,4,opt,name=kind,proto3" json:"kind,omitempty"`
    // Required. The index's ancestor mode.  Must not be ANCESTOR_MODE_UNSPECIFIED.
    Ancestor Index_AncestorMode `protobuf:"varint,5,opt,name=ancestor,proto3,enum=google.datastore.admin.v1.Index_AncestorMode" json:"ancestor,omitempty"`
    // Required. An ordered sequence of property names and their index attributes.
    Properties []*Index_IndexedProperty `protobuf:"bytes,6,rep,name=properties,proto3" json:"properties,omitempty"`
    // Output only. The state of the index.
    State Index_State `protobuf:"varint,7,opt,name=state,proto3,enum=google.datastore.admin.v1.Index_State" json:"state,omitempty"`
    // contains filtered or unexported fields
}

A minimal index definition.

func (*Index) Descriptor Uses

func (*Index) Descriptor() ([]byte, []int)

Deprecated: Use Index.ProtoReflect.Descriptor instead.

func (*Index) GetAncestor Uses

func (x *Index) GetAncestor() Index_AncestorMode

func (*Index) GetIndexId Uses

func (x *Index) GetIndexId() string

func (*Index) GetKind Uses

func (x *Index) GetKind() string

func (*Index) GetProjectId Uses

func (x *Index) GetProjectId() string

func (*Index) GetProperties Uses

func (x *Index) GetProperties() []*Index_IndexedProperty

func (*Index) GetState Uses

func (x *Index) GetState() Index_State

func (*Index) ProtoMessage Uses

func (*Index) ProtoMessage()

func (*Index) ProtoReflect Uses

func (x *Index) ProtoReflect() protoreflect.Message

func (*Index) Reset Uses

func (x *Index) Reset()

func (*Index) String Uses

func (x *Index) String() string

type IndexOperationMetadata Uses

type IndexOperationMetadata struct {

    // Metadata common to all Datastore Admin operations.
    Common *CommonMetadata `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"`
    // An estimate of the number of entities processed.
    ProgressEntities *Progress `protobuf:"bytes,2,opt,name=progress_entities,json=progressEntities,proto3" json:"progress_entities,omitempty"`
    // The index resource ID that this operation is acting on.
    IndexId string `protobuf:"bytes,3,opt,name=index_id,json=indexId,proto3" json:"index_id,omitempty"`
    // contains filtered or unexported fields
}

Metadata for Index operations.

func (*IndexOperationMetadata) Descriptor Uses

func (*IndexOperationMetadata) Descriptor() ([]byte, []int)

Deprecated: Use IndexOperationMetadata.ProtoReflect.Descriptor instead.

func (*IndexOperationMetadata) GetCommon Uses

func (x *IndexOperationMetadata) GetCommon() *CommonMetadata

func (*IndexOperationMetadata) GetIndexId Uses

func (x *IndexOperationMetadata) GetIndexId() string

func (*IndexOperationMetadata) GetProgressEntities Uses

func (x *IndexOperationMetadata) GetProgressEntities() *Progress

func (*IndexOperationMetadata) ProtoMessage Uses

func (*IndexOperationMetadata) ProtoMessage()

func (*IndexOperationMetadata) ProtoReflect Uses

func (x *IndexOperationMetadata) ProtoReflect() protoreflect.Message

func (*IndexOperationMetadata) Reset Uses

func (x *IndexOperationMetadata) Reset()

func (*IndexOperationMetadata) String Uses

func (x *IndexOperationMetadata) String() string

type Index_AncestorMode Uses

type Index_AncestorMode int32

For an ordered index, specifies whether each of the entity's ancestors will be included.

const (
    // The ancestor mode is unspecified.
    Index_ANCESTOR_MODE_UNSPECIFIED Index_AncestorMode = 0
    // Do not include the entity's ancestors in the index.
    Index_NONE Index_AncestorMode = 1
    // Include all the entity's ancestors in the index.
    Index_ALL_ANCESTORS Index_AncestorMode = 2
)

func (Index_AncestorMode) Descriptor Uses

func (Index_AncestorMode) Descriptor() protoreflect.EnumDescriptor

func (Index_AncestorMode) Enum Uses

func (x Index_AncestorMode) Enum() *Index_AncestorMode

func (Index_AncestorMode) EnumDescriptor Uses

func (Index_AncestorMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use Index_AncestorMode.Descriptor instead.

func (Index_AncestorMode) Number Uses

func (x Index_AncestorMode) Number() protoreflect.EnumNumber

func (Index_AncestorMode) String Uses

func (x Index_AncestorMode) String() string

func (Index_AncestorMode) Type Uses

func (Index_AncestorMode) Type() protoreflect.EnumType

type Index_Direction Uses

type Index_Direction int32

The direction determines how a property is indexed.

const (
    // The direction is unspecified.
    Index_DIRECTION_UNSPECIFIED Index_Direction = 0
    // The property's values are indexed so as to support sequencing in
    // ascending order and also query by <, >, <=, >=, and =.
    Index_ASCENDING Index_Direction = 1
    // The property's values are indexed so as to support sequencing in
    // descending order and also query by <, >, <=, >=, and =.
    Index_DESCENDING Index_Direction = 2
)

func (Index_Direction) Descriptor Uses

func (Index_Direction) Descriptor() protoreflect.EnumDescriptor

func (Index_Direction) Enum Uses

func (x Index_Direction) Enum() *Index_Direction

func (Index_Direction) EnumDescriptor Uses

func (Index_Direction) EnumDescriptor() ([]byte, []int)

Deprecated: Use Index_Direction.Descriptor instead.

func (Index_Direction) Number Uses

func (x Index_Direction) Number() protoreflect.EnumNumber

func (Index_Direction) String Uses

func (x Index_Direction) String() string

func (Index_Direction) Type Uses

func (Index_Direction) Type() protoreflect.EnumType

type Index_IndexedProperty Uses

type Index_IndexedProperty struct {

    // Required. The property name to index.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Required. The indexed property's direction.  Must not be DIRECTION_UNSPECIFIED.
    Direction Index_Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=google.datastore.admin.v1.Index_Direction" json:"direction,omitempty"`
    // contains filtered or unexported fields
}

A property of an index.

func (*Index_IndexedProperty) Descriptor Uses

func (*Index_IndexedProperty) Descriptor() ([]byte, []int)

Deprecated: Use Index_IndexedProperty.ProtoReflect.Descriptor instead.

func (*Index_IndexedProperty) GetDirection Uses

func (x *Index_IndexedProperty) GetDirection() Index_Direction

func (*Index_IndexedProperty) GetName Uses

func (x *Index_IndexedProperty) GetName() string

func (*Index_IndexedProperty) ProtoMessage Uses

func (*Index_IndexedProperty) ProtoMessage()

func (*Index_IndexedProperty) ProtoReflect Uses

func (x *Index_IndexedProperty) ProtoReflect() protoreflect.Message

func (*Index_IndexedProperty) Reset Uses

func (x *Index_IndexedProperty) Reset()

func (*Index_IndexedProperty) String Uses

func (x *Index_IndexedProperty) String() string

type Index_State Uses

type Index_State int32

The possible set of states of an index.

const (
    // The state is unspecified.
    Index_STATE_UNSPECIFIED Index_State = 0
    // The index is being created, and cannot be used by queries.
    // There is an active long-running operation for the index.
    // The index is updated when writing an entity.
    // Some index data may exist.
    Index_CREATING Index_State = 1
    // The index is ready to be used.
    // The index is updated when writing an entity.
    // The index is fully populated from all stored entities it applies to.
    Index_READY Index_State = 2
    // The index is being deleted, and cannot be used by queries.
    // There is an active long-running operation for the index.
    // The index is not updated when writing an entity.
    // Some index data may exist.
    Index_DELETING Index_State = 3
    // The index was being created or deleted, but something went wrong.
    // The index cannot by used by queries.
    // There is no active long-running operation for the index,
    // and the most recently finished long-running operation failed.
    // The index is not updated when writing an entity.
    // Some index data may exist.
    Index_ERROR Index_State = 4
)

func (Index_State) Descriptor Uses

func (Index_State) Descriptor() protoreflect.EnumDescriptor

func (Index_State) Enum Uses

func (x Index_State) Enum() *Index_State

func (Index_State) EnumDescriptor Uses

func (Index_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use Index_State.Descriptor instead.

func (Index_State) Number Uses

func (x Index_State) Number() protoreflect.EnumNumber

func (Index_State) String Uses

func (x Index_State) String() string

func (Index_State) Type Uses

func (Index_State) Type() protoreflect.EnumType

type ListIndexesRequest Uses

type ListIndexesRequest struct {

    // Project ID against which to make the request.
    ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
    Filter    string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
    // The maximum number of items to return.  If zero, then all results will be
    // returned.
    PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
    // The next_page_token value returned from a previous List request, if any.
    PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
    // contains filtered or unexported fields
}

The request for [google.datastore.admin.v1.DatastoreAdmin.ListIndexes][google.datastore.admin.v1.DatastoreAdmin.ListIndexes].

func (*ListIndexesRequest) Descriptor Uses

func (*ListIndexesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListIndexesRequest.ProtoReflect.Descriptor instead.

func (*ListIndexesRequest) GetFilter Uses

func (x *ListIndexesRequest) GetFilter() string

func (*ListIndexesRequest) GetPageSize Uses

func (x *ListIndexesRequest) GetPageSize() int32

func (*ListIndexesRequest) GetPageToken Uses

func (x *ListIndexesRequest) GetPageToken() string

func (*ListIndexesRequest) GetProjectId Uses

func (x *ListIndexesRequest) GetProjectId() string

func (*ListIndexesRequest) ProtoMessage Uses

func (*ListIndexesRequest) ProtoMessage()

func (*ListIndexesRequest) ProtoReflect Uses

func (x *ListIndexesRequest) ProtoReflect() protoreflect.Message

func (*ListIndexesRequest) Reset Uses

func (x *ListIndexesRequest) Reset()

func (*ListIndexesRequest) String Uses

func (x *ListIndexesRequest) String() string

type ListIndexesResponse Uses

type ListIndexesResponse struct {

    // The indexes.
    Indexes []*Index `protobuf:"bytes,1,rep,name=indexes,proto3" json:"indexes,omitempty"`
    // The standard List next-page token.
    NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
    // contains filtered or unexported fields
}

The response for [google.datastore.admin.v1.DatastoreAdmin.ListIndexes][google.datastore.admin.v1.DatastoreAdmin.ListIndexes].

func (*ListIndexesResponse) Descriptor Uses

func (*ListIndexesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListIndexesResponse.ProtoReflect.Descriptor instead.

func (*ListIndexesResponse) GetIndexes Uses

func (x *ListIndexesResponse) GetIndexes() []*Index

func (*ListIndexesResponse) GetNextPageToken Uses

func (x *ListIndexesResponse) GetNextPageToken() string

func (*ListIndexesResponse) ProtoMessage Uses

func (*ListIndexesResponse) ProtoMessage()

func (*ListIndexesResponse) ProtoReflect Uses

func (x *ListIndexesResponse) ProtoReflect() protoreflect.Message

func (*ListIndexesResponse) Reset Uses

func (x *ListIndexesResponse) Reset()

func (*ListIndexesResponse) String Uses

func (x *ListIndexesResponse) String() string

type OperationType Uses

type OperationType int32

Operation types.

const (
    // Unspecified.
    OperationType_OPERATION_TYPE_UNSPECIFIED OperationType = 0
    // ExportEntities.
    OperationType_EXPORT_ENTITIES OperationType = 1
    // ImportEntities.
    OperationType_IMPORT_ENTITIES OperationType = 2
    // CreateIndex.
    OperationType_CREATE_INDEX OperationType = 3
    // DeleteIndex.
    OperationType_DELETE_INDEX OperationType = 4
)

func (OperationType) Descriptor Uses

func (OperationType) Descriptor() protoreflect.EnumDescriptor

func (OperationType) Enum Uses

func (x OperationType) Enum() *OperationType

func (OperationType) EnumDescriptor Uses

func (OperationType) EnumDescriptor() ([]byte, []int)

Deprecated: Use OperationType.Descriptor instead.

func (OperationType) Number Uses

func (x OperationType) Number() protoreflect.EnumNumber

func (OperationType) String Uses

func (x OperationType) String() string

func (OperationType) Type Uses

func (OperationType) Type() protoreflect.EnumType

type Progress Uses

type Progress struct {

    // The amount of work that has been completed. Note that this may be greater
    // than work_estimated.
    WorkCompleted int64 `protobuf:"varint,1,opt,name=work_completed,json=workCompleted,proto3" json:"work_completed,omitempty"`
    // An estimate of how much work needs to be performed. May be zero if the
    // work estimate is unavailable.
    WorkEstimated int64 `protobuf:"varint,2,opt,name=work_estimated,json=workEstimated,proto3" json:"work_estimated,omitempty"`
    // contains filtered or unexported fields
}

Measures the progress of a particular metric.

func (*Progress) Descriptor Uses

func (*Progress) Descriptor() ([]byte, []int)

Deprecated: Use Progress.ProtoReflect.Descriptor instead.

func (*Progress) GetWorkCompleted Uses

func (x *Progress) GetWorkCompleted() int64

func (*Progress) GetWorkEstimated Uses

func (x *Progress) GetWorkEstimated() int64

func (*Progress) ProtoMessage Uses

func (*Progress) ProtoMessage()

func (*Progress) ProtoReflect Uses

func (x *Progress) ProtoReflect() protoreflect.Message

func (*Progress) Reset Uses

func (x *Progress) Reset()

func (*Progress) String Uses

func (x *Progress) String() string

type UnimplementedDatastoreAdminServer Uses

type UnimplementedDatastoreAdminServer struct {
}

UnimplementedDatastoreAdminServer can be embedded to have forward compatible implementations.

func (*UnimplementedDatastoreAdminServer) ExportEntities Uses

func (*UnimplementedDatastoreAdminServer) ExportEntities(context.Context, *ExportEntitiesRequest) (*longrunning.Operation, error)

func (*UnimplementedDatastoreAdminServer) GetIndex Uses

func (*UnimplementedDatastoreAdminServer) GetIndex(context.Context, *GetIndexRequest) (*Index, error)

func (*UnimplementedDatastoreAdminServer) ImportEntities Uses

func (*UnimplementedDatastoreAdminServer) ImportEntities(context.Context, *ImportEntitiesRequest) (*longrunning.Operation, error)

func (*UnimplementedDatastoreAdminServer) ListIndexes Uses

func (*UnimplementedDatastoreAdminServer) ListIndexes(context.Context, *ListIndexesRequest) (*ListIndexesResponse, error)

Package admin imports 12 packages (graph). Updated 2020-08-13. Refresh now. Tools for package owners.