|
|
|
@ -52,7 +52,7 @@ namespace Google.Protobuf.WellKnownTypes { |
|
|
|
|
} |
|
|
|
|
#region Messages |
|
|
|
|
/// <summary> |
|
|
|
|
/// Api is a light-weight descriptor for a protocol buffer service. |
|
|
|
|
/// Api is a light-weight descriptor for a protocol buffer service. |
|
|
|
|
/// </summary> |
|
|
|
|
public sealed partial class Api : pb::IMessage<Api> { |
|
|
|
|
private static readonly pb::MessageParser<Api> _parser = new pb::MessageParser<Api>(() => new Api()); |
|
|
|
@ -96,8 +96,8 @@ namespace Google.Protobuf.WellKnownTypes { |
|
|
|
|
public const int NameFieldNumber = 1; |
|
|
|
|
private string name_ = ""; |
|
|
|
|
/// <summary> |
|
|
|
|
/// The fully qualified name of this api, including package name |
|
|
|
|
/// followed by the api's simple name. |
|
|
|
|
/// The fully qualified name of this api, including package name |
|
|
|
|
/// followed by the api's simple name. |
|
|
|
|
/// </summary> |
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
|
public string Name { |
|
|
|
@ -113,7 +113,7 @@ namespace Google.Protobuf.WellKnownTypes { |
|
|
|
|
= pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Method.Parser); |
|
|
|
|
private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Method> methods_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Method>(); |
|
|
|
|
/// <summary> |
|
|
|
|
/// The methods of this api, in unspecified order. |
|
|
|
|
/// The methods of this api, in unspecified order. |
|
|
|
|
/// </summary> |
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
|
public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Method> Methods { |
|
|
|
@ -126,7 +126,7 @@ namespace Google.Protobuf.WellKnownTypes { |
|
|
|
|
= pb::FieldCodec.ForMessage(26, global::Google.Protobuf.WellKnownTypes.Option.Parser); |
|
|
|
|
private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option> options_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option>(); |
|
|
|
|
/// <summary> |
|
|
|
|
/// Any metadata attached to the API. |
|
|
|
|
/// Any metadata attached to the API. |
|
|
|
|
/// </summary> |
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
|
public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option> Options { |
|
|
|
@ -137,26 +137,26 @@ namespace Google.Protobuf.WellKnownTypes { |
|
|
|
|
public const int VersionFieldNumber = 4; |
|
|
|
|
private string version_ = ""; |
|
|
|
|
/// <summary> |
|
|
|
|
/// A version string for this api. If specified, must have the form |
|
|
|
|
/// `major-version.minor-version`, as in `1.10`. If the minor version |
|
|
|
|
/// is omitted, it defaults to zero. If the entire version field is |
|
|
|
|
/// empty, the major version is derived from the package name, as |
|
|
|
|
/// outlined below. If the field is not empty, the version in the |
|
|
|
|
/// package name will be verified to be consistent with what is |
|
|
|
|
/// provided here. |
|
|
|
|
/// A version string for this api. If specified, must have the form |
|
|
|
|
/// `major-version.minor-version`, as in `1.10`. If the minor version |
|
|
|
|
/// is omitted, it defaults to zero. If the entire version field is |
|
|
|
|
/// empty, the major version is derived from the package name, as |
|
|
|
|
/// outlined below. If the field is not empty, the version in the |
|
|
|
|
/// package name will be verified to be consistent with what is |
|
|
|
|
/// provided here. |
|
|
|
|
/// |
|
|
|
|
/// The versioning schema uses [semantic |
|
|
|
|
/// versioning](http://semver.org) where the major version number |
|
|
|
|
/// indicates a breaking change and the minor version an additive, |
|
|
|
|
/// non-breaking change. Both version numbers are signals to users |
|
|
|
|
/// what to expect from different versions, and should be carefully |
|
|
|
|
/// chosen based on the product plan. |
|
|
|
|
/// The versioning schema uses [semantic |
|
|
|
|
/// versioning](http://semver.org) where the major version number |
|
|
|
|
/// indicates a breaking change and the minor version an additive, |
|
|
|
|
/// non-breaking change. Both version numbers are signals to users |
|
|
|
|
/// what to expect from different versions, and should be carefully |
|
|
|
|
/// chosen based on the product plan. |
|
|
|
|
/// |
|
|
|
|
/// The major version is also reflected in the package name of the |
|
|
|
|
/// API, which must end in `v<major-version>`, as in |
|
|
|
|
/// `google.feature.v1`. For major versions 0 and 1, the suffix can |
|
|
|
|
/// be omitted. Zero major versions must only be used for |
|
|
|
|
/// experimental, none-GA apis. |
|
|
|
|
/// The major version is also reflected in the package name of the |
|
|
|
|
/// API, which must end in `v<major-version>`, as in |
|
|
|
|
/// `google.feature.v1`. For major versions 0 and 1, the suffix can |
|
|
|
|
/// be omitted. Zero major versions must only be used for |
|
|
|
|
/// experimental, none-GA apis. |
|
|
|
|
/// </summary> |
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
|
public string Version { |
|
|
|
@ -170,8 +170,8 @@ namespace Google.Protobuf.WellKnownTypes { |
|
|
|
|
public const int SourceContextFieldNumber = 5; |
|
|
|
|
private global::Google.Protobuf.WellKnownTypes.SourceContext sourceContext_; |
|
|
|
|
/// <summary> |
|
|
|
|
/// Source context for the protocol buffer service represented by this |
|
|
|
|
/// message. |
|
|
|
|
/// Source context for the protocol buffer service represented by this |
|
|
|
|
/// message. |
|
|
|
|
/// </summary> |
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
|
public global::Google.Protobuf.WellKnownTypes.SourceContext SourceContext { |
|
|
|
@ -187,7 +187,7 @@ namespace Google.Protobuf.WellKnownTypes { |
|
|
|
|
= pb::FieldCodec.ForMessage(50, global::Google.Protobuf.WellKnownTypes.Mixin.Parser); |
|
|
|
|
private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Mixin> mixins_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Mixin>(); |
|
|
|
|
/// <summary> |
|
|
|
|
/// Included APIs. See [Mixin][]. |
|
|
|
|
/// Included APIs. See [Mixin][]. |
|
|
|
|
/// </summary> |
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
|
public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Mixin> Mixins { |
|
|
|
@ -198,7 +198,7 @@ namespace Google.Protobuf.WellKnownTypes { |
|
|
|
|
public const int SyntaxFieldNumber = 7; |
|
|
|
|
private global::Google.Protobuf.WellKnownTypes.Syntax syntax_ = 0; |
|
|
|
|
/// <summary> |
|
|
|
|
/// The source syntax of the service. |
|
|
|
|
/// The source syntax of the service. |
|
|
|
|
/// </summary> |
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
|
public global::Google.Protobuf.WellKnownTypes.Syntax Syntax { |
|
|
|
@ -364,7 +364,7 @@ namespace Google.Protobuf.WellKnownTypes { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// Method represents a method of an api. |
|
|
|
|
/// Method represents a method of an api. |
|
|
|
|
/// </summary> |
|
|
|
|
public sealed partial class Method : pb::IMessage<Method> { |
|
|
|
|
private static readonly pb::MessageParser<Method> _parser = new pb::MessageParser<Method>(() => new Method()); |
|
|
|
@ -408,7 +408,7 @@ namespace Google.Protobuf.WellKnownTypes { |
|
|
|
|
public const int NameFieldNumber = 1; |
|
|
|
|
private string name_ = ""; |
|
|
|
|
/// <summary> |
|
|
|
|
/// The simple name of this method. |
|
|
|
|
/// The simple name of this method. |
|
|
|
|
/// </summary> |
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
|
public string Name { |
|
|
|
@ -422,7 +422,7 @@ namespace Google.Protobuf.WellKnownTypes { |
|
|
|
|
public const int RequestTypeUrlFieldNumber = 2; |
|
|
|
|
private string requestTypeUrl_ = ""; |
|
|
|
|
/// <summary> |
|
|
|
|
/// A URL of the input message type. |
|
|
|
|
/// A URL of the input message type. |
|
|
|
|
/// </summary> |
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
|
public string RequestTypeUrl { |
|
|
|
@ -436,7 +436,7 @@ namespace Google.Protobuf.WellKnownTypes { |
|
|
|
|
public const int RequestStreamingFieldNumber = 3; |
|
|
|
|
private bool requestStreaming_; |
|
|
|
|
/// <summary> |
|
|
|
|
/// If true, the request is streamed. |
|
|
|
|
/// If true, the request is streamed. |
|
|
|
|
/// </summary> |
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
|
public bool RequestStreaming { |
|
|
|
@ -450,7 +450,7 @@ namespace Google.Protobuf.WellKnownTypes { |
|
|
|
|
public const int ResponseTypeUrlFieldNumber = 4; |
|
|
|
|
private string responseTypeUrl_ = ""; |
|
|
|
|
/// <summary> |
|
|
|
|
/// The URL of the output message type. |
|
|
|
|
/// The URL of the output message type. |
|
|
|
|
/// </summary> |
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
|
public string ResponseTypeUrl { |
|
|
|
@ -464,7 +464,7 @@ namespace Google.Protobuf.WellKnownTypes { |
|
|
|
|
public const int ResponseStreamingFieldNumber = 5; |
|
|
|
|
private bool responseStreaming_; |
|
|
|
|
/// <summary> |
|
|
|
|
/// If true, the response is streamed. |
|
|
|
|
/// If true, the response is streamed. |
|
|
|
|
/// </summary> |
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
|
public bool ResponseStreaming { |
|
|
|
@ -480,7 +480,7 @@ namespace Google.Protobuf.WellKnownTypes { |
|
|
|
|
= pb::FieldCodec.ForMessage(50, global::Google.Protobuf.WellKnownTypes.Option.Parser); |
|
|
|
|
private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option> options_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option>(); |
|
|
|
|
/// <summary> |
|
|
|
|
/// Any metadata attached to the method. |
|
|
|
|
/// Any metadata attached to the method. |
|
|
|
|
/// </summary> |
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
|
public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Option> Options { |
|
|
|
@ -491,7 +491,7 @@ namespace Google.Protobuf.WellKnownTypes { |
|
|
|
|
public const int SyntaxFieldNumber = 7; |
|
|
|
|
private global::Google.Protobuf.WellKnownTypes.Syntax syntax_ = 0; |
|
|
|
|
/// <summary> |
|
|
|
|
/// The source syntax of this method. |
|
|
|
|
/// The source syntax of this method. |
|
|
|
|
/// </summary> |
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
|
public global::Google.Protobuf.WellKnownTypes.Syntax Syntax { |
|
|
|
@ -665,83 +665,83 @@ namespace Google.Protobuf.WellKnownTypes { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// Declares an API to be included in this API. The including API must |
|
|
|
|
/// redeclare all the methods from the included API, but documentation |
|
|
|
|
/// and options are inherited as follows: |
|
|
|
|
/// Declares an API to be included in this API. The including API must |
|
|
|
|
/// redeclare all the methods from the included API, but documentation |
|
|
|
|
/// and options are inherited as follows: |
|
|
|
|
/// |
|
|
|
|
/// - If after comment and whitespace stripping, the documentation |
|
|
|
|
/// string of the redeclared method is empty, it will be inherited |
|
|
|
|
/// from the original method. |
|
|
|
|
/// - If after comment and whitespace stripping, the documentation |
|
|
|
|
/// string of the redeclared method is empty, it will be inherited |
|
|
|
|
/// from the original method. |
|
|
|
|
/// |
|
|
|
|
/// - Each annotation belonging to the service config (http, |
|
|
|
|
/// visibility) which is not set in the redeclared method will be |
|
|
|
|
/// inherited. |
|
|
|
|
/// - Each annotation belonging to the service config (http, |
|
|
|
|
/// visibility) which is not set in the redeclared method will be |
|
|
|
|
/// inherited. |
|
|
|
|
/// |
|
|
|
|
/// - If an http annotation is inherited, the path pattern will be |
|
|
|
|
/// modified as follows. Any version prefix will be replaced by the |
|
|
|
|
/// version of the including API plus the [root][] path if specified. |
|
|
|
|
/// - If an http annotation is inherited, the path pattern will be |
|
|
|
|
/// modified as follows. Any version prefix will be replaced by the |
|
|
|
|
/// version of the including API plus the [root][] path if specified. |
|
|
|
|
/// |
|
|
|
|
/// Example of a simple mixin: |
|
|
|
|
/// Example of a simple mixin: |
|
|
|
|
/// |
|
|
|
|
/// package google.acl.v1; |
|
|
|
|
/// service AccessControl { |
|
|
|
|
/// // Get the underlying ACL object. |
|
|
|
|
/// rpc GetAcl(GetAclRequest) returns (Acl) { |
|
|
|
|
/// option (google.api.http).get = "/v1/{resource=**}:getAcl"; |
|
|
|
|
/// } |
|
|
|
|
/// } |
|
|
|
|
/// package google.acl.v1; |
|
|
|
|
/// service AccessControl { |
|
|
|
|
/// // Get the underlying ACL object. |
|
|
|
|
/// rpc GetAcl(GetAclRequest) returns (Acl) { |
|
|
|
|
/// option (google.api.http).get = "/v1/{resource=**}:getAcl"; |
|
|
|
|
/// } |
|
|
|
|
/// } |
|
|
|
|
/// |
|
|
|
|
/// package google.storage.v2; |
|
|
|
|
/// service Storage { |
|
|
|
|
/// rpc GetAcl(GetAclRequest) returns (Acl); |
|
|
|
|
/// package google.storage.v2; |
|
|
|
|
/// service Storage { |
|
|
|
|
/// rpc GetAcl(GetAclRequest) returns (Acl); |
|
|
|
|
/// |
|
|
|
|
/// // Get a data record. |
|
|
|
|
/// rpc GetData(GetDataRequest) returns (Data) { |
|
|
|
|
/// option (google.api.http).get = "/v2/{resource=**}"; |
|
|
|
|
/// } |
|
|
|
|
/// } |
|
|
|
|
/// // Get a data record. |
|
|
|
|
/// rpc GetData(GetDataRequest) returns (Data) { |
|
|
|
|
/// option (google.api.http).get = "/v2/{resource=**}"; |
|
|
|
|
/// } |
|
|
|
|
/// } |
|
|
|
|
/// |
|
|
|
|
/// Example of a mixin configuration: |
|
|
|
|
/// Example of a mixin configuration: |
|
|
|
|
/// |
|
|
|
|
/// apis: |
|
|
|
|
/// - name: google.storage.v2.Storage |
|
|
|
|
/// mixins: |
|
|
|
|
/// - name: google.acl.v1.AccessControl |
|
|
|
|
/// apis: |
|
|
|
|
/// - name: google.storage.v2.Storage |
|
|
|
|
/// mixins: |
|
|
|
|
/// - name: google.acl.v1.AccessControl |
|
|
|
|
/// |
|
|
|
|
/// The mixin construct implies that all methods in `AccessControl` are |
|
|
|
|
/// also declared with same name and request/response types in |
|
|
|
|
/// `Storage`. A documentation generator or annotation processor will |
|
|
|
|
/// see the effective `Storage.GetAcl` method after inherting |
|
|
|
|
/// documentation and annotations as follows: |
|
|
|
|
/// The mixin construct implies that all methods in `AccessControl` are |
|
|
|
|
/// also declared with same name and request/response types in |
|
|
|
|
/// `Storage`. A documentation generator or annotation processor will |
|
|
|
|
/// see the effective `Storage.GetAcl` method after inherting |
|
|
|
|
/// documentation and annotations as follows: |
|
|
|
|
/// |
|
|
|
|
/// service Storage { |
|
|
|
|
/// // Get the underlying ACL object. |
|
|
|
|
/// rpc GetAcl(GetAclRequest) returns (Acl) { |
|
|
|
|
/// option (google.api.http).get = "/v2/{resource=**}:getAcl"; |
|
|
|
|
/// } |
|
|
|
|
/// ... |
|
|
|
|
/// } |
|
|
|
|
/// service Storage { |
|
|
|
|
/// // Get the underlying ACL object. |
|
|
|
|
/// rpc GetAcl(GetAclRequest) returns (Acl) { |
|
|
|
|
/// option (google.api.http).get = "/v2/{resource=**}:getAcl"; |
|
|
|
|
/// } |
|
|
|
|
/// ... |
|
|
|
|
/// } |
|
|
|
|
/// |
|
|
|
|
/// Note how the version in the path pattern changed from `v1` to `v2`. |
|
|
|
|
/// Note how the version in the path pattern changed from `v1` to `v2`. |
|
|
|
|
/// |
|
|
|
|
/// If the `root` field in the mixin is specified, it should be a |
|
|
|
|
/// relative path under which inherited HTTP paths are placed. Example: |
|
|
|
|
/// If the `root` field in the mixin is specified, it should be a |
|
|
|
|
/// relative path under which inherited HTTP paths are placed. Example: |
|
|
|
|
/// |
|
|
|
|
/// apis: |
|
|
|
|
/// - name: google.storage.v2.Storage |
|
|
|
|
/// mixins: |
|
|
|
|
/// - name: google.acl.v1.AccessControl |
|
|
|
|
/// root: acls |
|
|
|
|
/// apis: |
|
|
|
|
/// - name: google.storage.v2.Storage |
|
|
|
|
/// mixins: |
|
|
|
|
/// - name: google.acl.v1.AccessControl |
|
|
|
|
/// root: acls |
|
|
|
|
/// |
|
|
|
|
/// This implies the following inherited HTTP annotation: |
|
|
|
|
/// This implies the following inherited HTTP annotation: |
|
|
|
|
/// |
|
|
|
|
/// service Storage { |
|
|
|
|
/// // Get the underlying ACL object. |
|
|
|
|
/// rpc GetAcl(GetAclRequest) returns (Acl) { |
|
|
|
|
/// option (google.api.http).get = "/v2/acls/{resource=**}:getAcl"; |
|
|
|
|
/// } |
|
|
|
|
/// ... |
|
|
|
|
/// } |
|
|
|
|
/// service Storage { |
|
|
|
|
/// // Get the underlying ACL object. |
|
|
|
|
/// rpc GetAcl(GetAclRequest) returns (Acl) { |
|
|
|
|
/// option (google.api.http).get = "/v2/acls/{resource=**}:getAcl"; |
|
|
|
|
/// } |
|
|
|
|
/// ... |
|
|
|
|
/// } |
|
|
|
|
/// </summary> |
|
|
|
|
public sealed partial class Mixin : pb::IMessage<Mixin> { |
|
|
|
|
private static readonly pb::MessageParser<Mixin> _parser = new pb::MessageParser<Mixin>(() => new Mixin()); |
|
|
|
@ -780,7 +780,7 @@ namespace Google.Protobuf.WellKnownTypes { |
|
|
|
|
public const int NameFieldNumber = 1; |
|
|
|
|
private string name_ = ""; |
|
|
|
|
/// <summary> |
|
|
|
|
/// The fully qualified name of the API which is included. |
|
|
|
|
/// The fully qualified name of the API which is included. |
|
|
|
|
/// </summary> |
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
|
public string Name { |
|
|
|
@ -794,8 +794,8 @@ namespace Google.Protobuf.WellKnownTypes { |
|
|
|
|
public const int RootFieldNumber = 2; |
|
|
|
|
private string root_ = ""; |
|
|
|
|
/// <summary> |
|
|
|
|
/// If non-empty specifies a path under which inherited HTTP paths |
|
|
|
|
/// are rooted. |
|
|
|
|
/// If non-empty specifies a path under which inherited HTTP paths |
|
|
|
|
/// are rooted. |
|
|
|
|
/// </summary> |
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
|
public string Root { |
|
|
|
|