// Copyright 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

syntax = "proto3";

package designcompose.definition.layout;

option java_multiple_files = true;
option java_package = "com.android.designcompose.definition.layout";
option optimize_for = LITE_RUNTIME;

// Represents a span for a node within a grid layout.
message GridSpan {
  string node_name = 1;
  map<string, string> node_variant = 2;
  uint32 span = 3;
  bool max_span = 4;
}
// Defines the type of grid layout used for a view.
enum GridLayoutType {
  GRID_LAYOUT_TYPE_UNSPECIFIED = 0;
  GRID_LAYOUT_TYPE_FIXED_COLUMNS = 1;
  GRID_LAYOUT_TYPE_FIXED_ROWS = 2;
  GRID_LAYOUT_TYPE_AUTO_COLUMNS = 3;
  GRID_LAYOUT_TYPE_AUTO_ROWS = 4;
  GRID_LAYOUT_TYPE_HORIZONTAL = 5;
  GRID_LAYOUT_TYPE_VERTICAL = 6;
}
