# IRPCDeclarativeMetadataStructureAsProtobuf.SetDeclarativeMetadataStructureBeginSessionAsProtobuf

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Administration API](https://developer.m-files.com/APIs/gRPC-API/admin/index.md) > [Declarative metadata structure (protobuf)](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCDeclarativeMetadataStructureAsProtobuf/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCDeclarativeMetadataStructureAsProtobuf/SetDeclarativeMetadataStructureBeginSessionAsProtobuf/

Badges: `Administration API / specialized` `internal: not for applications` `admin` `session` `returns metadata structure version`

Reserved for setting a structure in several parts. Not implemented.

- **Service:** [Declarative metadata structure (protobuf)](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCDeclarativeMetadataStructureAsProtobuf/index.md) `MFiles.IRPCDeclarativeMetadataStructureAsProtobuf`
- **gRPC method:** `/MFiles.IRPCDeclarativeMetadataStructureAsProtobuf/SetDeclarativeMetadataStructureBeginSessionAsProtobuf`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/set-declarative-metadata-structure-begin-session-as-protobuf`
- **Request:** [`SetDeclarativeMetadataStructureBeginSessionAsProtobufRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCDeclarativeMetadataStructureAsProtobuf/SetDeclarativeMetadataStructureBeginSessionAsProtobuf/index.md#request)
- **Response:** [`SetDeclarativeMetadataStructureBeginSessionAsProtobufResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCDeclarativeMetadataStructureAsProtobuf/SetDeclarativeMetadataStructureBeginSessionAsProtobuf/index.md#response)
- **Book and level:** Administration API, specialized
- **Kind:** admin
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** no
- **Returns metadata structure version:** yes (in the mfiles-metadata-version-bin trailer)
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

- Always fails with "Not implemented.", whether or not the feature is enabled.

<a id="request"></a>

## Request: SetDeclarativeMetadataStructureBeginSessionAsProtobufRequest

No fields.

<a id="response"></a>

## Response: SetDeclarativeMetadataStructureBeginSessionAsProtobufResponse

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `session` | `uint32` | Session identifier. |
