Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ members = [
"prost",
"prost-build",
"prost-derive",
"prost-googleapis",
"prost-types",
"protobuf",
"tests",
Expand Down
13 changes: 13 additions & 0 deletions prost-googleapis/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[package]
name = "prost-googleapis"
description = "Prost definitions of Google API Protocol Buffers."
version.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true
edition.workspace = true

[dependencies]
prost = { version = "0.14.1", path = "../prost", default-features = false }
prost-types = { version = "0.14.1", path = "../prost-types" }
3,274 changes: 3,274 additions & 0 deletions prost-googleapis/src/google/api/mod.rs

Large diffs are not rendered by default.

53 changes: 53 additions & 0 deletions prost-googleapis/src/google/cloud/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// This file is @generated by prost-build.
/// An enum to be used to mark the essential (for polling) fields in an
/// API-specific Operation object. A custom Operation object may contain many
/// different fields, but only few of them are essential to conduct a successful
/// polling process.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum OperationResponseMapping {
/// Do not use.
Undefined = 0,
/// A field in an API-specific (custom) Operation object which carries the same
/// meaning as google.longrunning.Operation.name.
Name = 1,
/// A field in an API-specific (custom) Operation object which carries the same
/// meaning as google.longrunning.Operation.done. If the annotated field is of
/// an enum type, `annotated_field_name == EnumType.DONE` semantics should be
/// equivalent to `Operation.done == true`. If the annotated field is of type
/// boolean, then it should follow the same semantics as Operation.done.
/// Otherwise, a non-empty value should be treated as `Operation.done == true`.
Status = 2,
/// A field in an API-specific (custom) Operation object which carries the same
/// meaning as google.longrunning.Operation.error.code.
ErrorCode = 3,
/// A field in an API-specific (custom) Operation object which carries the same
/// meaning as google.longrunning.Operation.error.message.
ErrorMessage = 4,
}
impl OperationResponseMapping {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Undefined => "UNDEFINED",
Self::Name => "NAME",
Self::Status => "STATUS",
Self::ErrorCode => "ERROR_CODE",
Self::ErrorMessage => "ERROR_MESSAGE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNDEFINED" => Some(Self::Undefined),
"NAME" => Some(Self::Name),
"STATUS" => Some(Self::Status),
"ERROR_CODE" => Some(Self::ErrorCode),
"ERROR_MESSAGE" => Some(Self::ErrorMessage),
_ => None,
}
}
}
1 change: 1 addition & 0 deletions prost-googleapis/src/google/iam/admin/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod v1;
931 changes: 931 additions & 0 deletions prost-googleapis/src/google/iam/admin/v1/mod.rs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions prost-googleapis/src/google/iam/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pub mod admin;
pub mod v1;
10 changes: 10 additions & 0 deletions prost-googleapis/src/google/iam/v1/logging/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// This file is @generated by prost-build.
/// Audit log information specific to Cloud IAM. This message is serialized
/// as an `Any` type in the `ServiceData` message of an
/// `AuditLog` message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AuditData {
/// Policy delta between the original policy and the newly set policy.
#[prost(message, optional, tag = "2")]
pub policy_delta: ::core::option::Option<super::PolicyDelta>,
}
Loading
Loading