Packages

Google API protobufs for Elixir/gRPC: Datastore, Bigtable, Pub/Sub, Storage, KMS, Tasks, Secret Manager, BigQuery, IAM, Logging, Long-Running Operations and AI Generative Language

Current section

Files

Jump to
googleapis_proto_ex lib google bigtable admin v2 table.pb.ex
Raw

lib/google/bigtable/admin/v2/table.pb.ex

defmodule Google.Bigtable.Admin.V2.RestoreSourceType do
@moduledoc false
use Protobuf, enum: true, syntax: :proto3
@type t :: integer | :RESTORE_SOURCE_TYPE_UNSPECIFIED | :BACKUP
field :RESTORE_SOURCE_TYPE_UNSPECIFIED, 0
field :BACKUP, 1
end
defmodule Google.Bigtable.Admin.V2.Table.TimestampGranularity do
@moduledoc false
use Protobuf, enum: true, syntax: :proto3
@type t :: integer | :TIMESTAMP_GRANULARITY_UNSPECIFIED | :MILLIS
field :TIMESTAMP_GRANULARITY_UNSPECIFIED, 0
field :MILLIS, 1
end
defmodule Google.Bigtable.Admin.V2.Table.View do
@moduledoc false
use Protobuf, enum: true, syntax: :proto3
@type t :: integer | :VIEW_UNSPECIFIED | :NAME_ONLY | :SCHEMA_VIEW | :REPLICATION_VIEW | :FULL
field :VIEW_UNSPECIFIED, 0
field :NAME_ONLY, 1
field :SCHEMA_VIEW, 2
field :REPLICATION_VIEW, 3
field :FULL, 4
end
defmodule Google.Bigtable.Admin.V2.Table.ClusterState.ReplicationState do
@moduledoc false
use Protobuf, enum: true, syntax: :proto3
@type t ::
integer
| :STATE_NOT_KNOWN
| :INITIALIZING
| :PLANNED_MAINTENANCE
| :UNPLANNED_MAINTENANCE
| :READY
| :READY_OPTIMIZING
field :STATE_NOT_KNOWN, 0
field :INITIALIZING, 1
field :PLANNED_MAINTENANCE, 2
field :UNPLANNED_MAINTENANCE, 3
field :READY, 4
field :READY_OPTIMIZING, 5
end
defmodule Google.Bigtable.Admin.V2.Snapshot.State do
@moduledoc false
use Protobuf, enum: true, syntax: :proto3
@type t :: integer | :STATE_NOT_KNOWN | :READY | :CREATING
field :STATE_NOT_KNOWN, 0
field :READY, 1
field :CREATING, 2
end
defmodule Google.Bigtable.Admin.V2.Backup.State do
@moduledoc false
use Protobuf, enum: true, syntax: :proto3
@type t :: integer | :STATE_UNSPECIFIED | :CREATING | :READY
field :STATE_UNSPECIFIED, 0
field :CREATING, 1
field :READY, 2
end
defmodule Google.Bigtable.Admin.V2.RestoreInfo do
@moduledoc false
use Protobuf, syntax: :proto3
@type t :: %__MODULE__{
source_info: {atom, any},
source_type: Google.Bigtable.Admin.V2.RestoreSourceType.t()
}
defstruct [:source_info, :source_type]
oneof :source_info, 0
field :source_type, 1, type: Google.Bigtable.Admin.V2.RestoreSourceType, enum: true
field :backup_info, 2, type: Google.Bigtable.Admin.V2.BackupInfo, oneof: 0
end
defmodule Google.Bigtable.Admin.V2.Table.ClusterState do
@moduledoc false
use Protobuf, syntax: :proto3
@type t :: %__MODULE__{
replication_state: Google.Bigtable.Admin.V2.Table.ClusterState.ReplicationState.t()
}
defstruct [:replication_state]
field :replication_state, 1,
type: Google.Bigtable.Admin.V2.Table.ClusterState.ReplicationState,
enum: true
end
defmodule Google.Bigtable.Admin.V2.Table.ClusterStatesEntry do
@moduledoc false
use Protobuf, map: true, syntax: :proto3
@type t :: %__MODULE__{
key: String.t(),
value: Google.Bigtable.Admin.V2.Table.ClusterState.t() | nil
}
defstruct [:key, :value]
field :key, 1, type: :string
field :value, 2, type: Google.Bigtable.Admin.V2.Table.ClusterState
end
defmodule Google.Bigtable.Admin.V2.Table.ColumnFamiliesEntry do
@moduledoc false
use Protobuf, map: true, syntax: :proto3
@type t :: %__MODULE__{
key: String.t(),
value: Google.Bigtable.Admin.V2.ColumnFamily.t() | nil
}
defstruct [:key, :value]
field :key, 1, type: :string
field :value, 2, type: Google.Bigtable.Admin.V2.ColumnFamily
end
defmodule Google.Bigtable.Admin.V2.Table do
@moduledoc false
use Protobuf, syntax: :proto3
@type t :: %__MODULE__{
name: String.t(),
cluster_states: %{String.t() => Google.Bigtable.Admin.V2.Table.ClusterState.t() | nil},
column_families: %{String.t() => Google.Bigtable.Admin.V2.ColumnFamily.t() | nil},
granularity: Google.Bigtable.Admin.V2.Table.TimestampGranularity.t(),
restore_info: Google.Bigtable.Admin.V2.RestoreInfo.t() | nil
}
defstruct [:name, :cluster_states, :column_families, :granularity, :restore_info]
field :name, 1, type: :string
field :cluster_states, 2,
repeated: true,
type: Google.Bigtable.Admin.V2.Table.ClusterStatesEntry,
map: true
field :column_families, 3,
repeated: true,
type: Google.Bigtable.Admin.V2.Table.ColumnFamiliesEntry,
map: true
field :granularity, 4, type: Google.Bigtable.Admin.V2.Table.TimestampGranularity, enum: true
field :restore_info, 6, type: Google.Bigtable.Admin.V2.RestoreInfo
end
defmodule Google.Bigtable.Admin.V2.ColumnFamily do
@moduledoc false
use Protobuf, syntax: :proto3
@type t :: %__MODULE__{
gc_rule: Google.Bigtable.Admin.V2.GcRule.t() | nil
}
defstruct [:gc_rule]
field :gc_rule, 1, type: Google.Bigtable.Admin.V2.GcRule
end
defmodule Google.Bigtable.Admin.V2.GcRule.Intersection do
@moduledoc false
use Protobuf, syntax: :proto3
@type t :: %__MODULE__{
rules: [Google.Bigtable.Admin.V2.GcRule.t()]
}
defstruct [:rules]
field :rules, 1, repeated: true, type: Google.Bigtable.Admin.V2.GcRule
end
defmodule Google.Bigtable.Admin.V2.GcRule.Union do
@moduledoc false
use Protobuf, syntax: :proto3
@type t :: %__MODULE__{
rules: [Google.Bigtable.Admin.V2.GcRule.t()]
}
defstruct [:rules]
field :rules, 1, repeated: true, type: Google.Bigtable.Admin.V2.GcRule
end
defmodule Google.Bigtable.Admin.V2.GcRule do
@moduledoc false
use Protobuf, syntax: :proto3
@type t :: %__MODULE__{
rule: {atom, any}
}
defstruct [:rule]
oneof :rule, 0
field :max_num_versions, 1, type: :int32, oneof: 0
field :max_age, 2, type: Google.Protobuf.Duration, oneof: 0
field :intersection, 3, type: Google.Bigtable.Admin.V2.GcRule.Intersection, oneof: 0
field :union, 4, type: Google.Bigtable.Admin.V2.GcRule.Union, oneof: 0
end
defmodule Google.Bigtable.Admin.V2.Snapshot do
@moduledoc false
use Protobuf, syntax: :proto3
@type t :: %__MODULE__{
name: String.t(),
source_table: Google.Bigtable.Admin.V2.Table.t() | nil,
data_size_bytes: integer,
create_time: Google.Protobuf.Timestamp.t() | nil,
delete_time: Google.Protobuf.Timestamp.t() | nil,
state: Google.Bigtable.Admin.V2.Snapshot.State.t(),
description: String.t()
}
defstruct [
:name,
:source_table,
:data_size_bytes,
:create_time,
:delete_time,
:state,
:description
]
field :name, 1, type: :string
field :source_table, 2, type: Google.Bigtable.Admin.V2.Table
field :data_size_bytes, 3, type: :int64
field :create_time, 4, type: Google.Protobuf.Timestamp
field :delete_time, 5, type: Google.Protobuf.Timestamp
field :state, 6, type: Google.Bigtable.Admin.V2.Snapshot.State, enum: true
field :description, 7, type: :string
end
defmodule Google.Bigtable.Admin.V2.Backup do
@moduledoc false
use Protobuf, syntax: :proto3
@type t :: %__MODULE__{
name: String.t(),
source_table: String.t(),
expire_time: Google.Protobuf.Timestamp.t() | nil,
start_time: Google.Protobuf.Timestamp.t() | nil,
end_time: Google.Protobuf.Timestamp.t() | nil,
size_bytes: integer,
state: Google.Bigtable.Admin.V2.Backup.State.t()
}
defstruct [:name, :source_table, :expire_time, :start_time, :end_time, :size_bytes, :state]
field :name, 1, type: :string
field :source_table, 2, type: :string
field :expire_time, 3, type: Google.Protobuf.Timestamp
field :start_time, 4, type: Google.Protobuf.Timestamp
field :end_time, 5, type: Google.Protobuf.Timestamp
field :size_bytes, 6, type: :int64
field :state, 7, type: Google.Bigtable.Admin.V2.Backup.State, enum: true
end
defmodule Google.Bigtable.Admin.V2.BackupInfo do
@moduledoc false
use Protobuf, syntax: :proto3
@type t :: %__MODULE__{
backup: String.t(),
start_time: Google.Protobuf.Timestamp.t() | nil,
end_time: Google.Protobuf.Timestamp.t() | nil,
source_table: String.t()
}
defstruct [:backup, :start_time, :end_time, :source_table]
field :backup, 1, type: :string
field :start_time, 2, type: Google.Protobuf.Timestamp
field :end_time, 3, type: Google.Protobuf.Timestamp
field :source_table, 4, type: :string
end