protobug_googleapis_field_behavior_protos 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 561025044094b93f30d695b91500ce8740e8566f47ab75f7bad2eb3d5e43d032
4
+ data.tar.gz: d9f60673f3107a9abdf08d9fe6687b27b798810994b82039120b2f0f7b8f6272
5
+ SHA512:
6
+ metadata.gz: 1d3f447212947d8ed7ab61ad94513a142da30d0eb9164f5370a35ab1b6c61f71866609bfd0392fc3caeea660cd75d4299106b219c59afc7b0c80579b37a461d1
7
+ data.tar.gz: f495310205010d4d711d5be19035e891fe434eaa581874840002650692c0074850bcab124cbf7a28718f247b49d971cc3a5a3c165e95e4641062242f5a6f61bb
@@ -0,0 +1,116 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by protoc-gen-protobug. DO NOT EDIT.
4
+
5
+ # source: google/api/field_behavior.proto
6
+ # syntax: proto3
7
+ # package: google.api
8
+ # options:
9
+ # java_package: "com.google.api"
10
+ # java_outer_classname: "FieldBehaviorProto"
11
+ # java_multiple_files: true
12
+ # go_package: "google.golang.org/genproto/googleapis/api/annotations;annotations"
13
+ # objc_class_prefix: "GAPI"
14
+
15
+ # Copyright 2023 Google LLC
16
+ #
17
+ # Licensed under the Apache License, Version 2.0 (the "License");
18
+ # you may not use this file except in compliance with the License.
19
+ # You may obtain a copy of the License at
20
+ #
21
+ # http://www.apache.org/licenses/LICENSE-2.0
22
+ #
23
+ # Unless required by applicable law or agreed to in writing, software
24
+ # distributed under the License is distributed on an "AS IS" BASIS,
25
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
26
+ # See the License for the specific language governing permissions and
27
+ # limitations under the License.
28
+
29
+ require "protobug"
30
+
31
+ require "google/protobuf/descriptor_pb"
32
+
33
+ module Google
34
+ module Api
35
+ # A designation of a specific field behavior (required, output only, etc.)
36
+ # in protobuf messages.
37
+ #
38
+ # Examples:
39
+ #
40
+ # string name = 1 [(google.api.field_behavior) = REQUIRED];
41
+ # State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
42
+ # google.protobuf.Duration ttl = 1
43
+ # [(google.api.field_behavior) = INPUT_ONLY];
44
+ # google.protobuf.Timestamp expire_time = 1
45
+ # [(google.api.field_behavior) = OUTPUT_ONLY,
46
+ # (google.api.field_behavior) = IMMUTABLE];
47
+ # extension: google.protobuf.FieldOptions
48
+ # field_behavior 1052
49
+
50
+ # An indicator of the behavior of a given field (for example, that a field
51
+ # is required in requests, or given as output but ignored as input).
52
+ # This **does not** change the behavior in protocol buffers itself; it only
53
+ # denotes the behavior and may affect how API tooling handles the field.
54
+ #
55
+ # Note: This enum **may** receive new values in the future.
56
+ class FieldBehavior
57
+ extend Protobug::Enum
58
+
59
+ self.full_name = "google.api.FieldBehavior"
60
+
61
+ # Conventional default for enums. Do not use this.
62
+ FIELD_BEHAVIOR_UNSPECIFIED = new("FIELD_BEHAVIOR_UNSPECIFIED", 0).freeze
63
+ # Specifically denotes a field as optional.
64
+ # While all fields in protocol buffers are optional, this may be specified
65
+ # for emphasis if appropriate.
66
+ OPTIONAL = new("OPTIONAL", 1).freeze
67
+ # Denotes a field as required.
68
+ # This indicates that the field **must** be provided as part of the request,
69
+ # and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
70
+ REQUIRED = new("REQUIRED", 2).freeze
71
+ # Denotes a field as output only.
72
+ # This indicates that the field is provided in responses, but including the
73
+ # field in a request does nothing (the server *must* ignore it and
74
+ # *must not* throw an error as a result of the field's presence).
75
+ OUTPUT_ONLY = new("OUTPUT_ONLY", 3).freeze
76
+ # Denotes a field as input only.
77
+ # This indicates that the field is provided in requests, and the
78
+ # corresponding field is not included in output.
79
+ INPUT_ONLY = new("INPUT_ONLY", 4).freeze
80
+ # Denotes a field as immutable.
81
+ # This indicates that the field may be set once in a request to create a
82
+ # resource, but may not be changed thereafter.
83
+ IMMUTABLE = new("IMMUTABLE", 5).freeze
84
+ # Denotes that a (repeated) field is an unordered list.
85
+ # This indicates that the service may provide the elements of the list
86
+ # in any arbitrary order, rather than the order the user originally
87
+ # provided. Additionally, the list's order may or may not be stable.
88
+ UNORDERED_LIST = new("UNORDERED_LIST", 6).freeze
89
+ # Denotes that this field returns a non-empty default value if not set.
90
+ # This indicates that if the user provides the empty value in a request,
91
+ # a non-empty value will be returned. The user will not be aware of what
92
+ # non-empty value to expect.
93
+ NON_EMPTY_DEFAULT = new("NON_EMPTY_DEFAULT", 7).freeze
94
+ # Denotes that the field in a resource (a message annotated with
95
+ # google.api.resource) is used in the resource name to uniquely identify the
96
+ # resource. For AIP-compliant APIs, this should only be applied to the
97
+ # `name` field on the resource.
98
+ #
99
+ # This behavior should not be applied to references to other resources within
100
+ # the message.
101
+ #
102
+ # The identifier field of resources often have different field behavior
103
+ # depending on the request it is embedded in (e.g. for Create methods name
104
+ # is optional and unused, while for Update methods it is required). Instead
105
+ # of method-specific annotations, only `IDENTIFIER` is required.
106
+ IDENTIFIER = new("IDENTIFIER", 8).freeze
107
+ end
108
+
109
+ def self.register_field_behavior_protos(registry)
110
+ Google::Protobuf.register_descriptor_protos(registry)
111
+ # extension: google.protobuf.FieldOptions
112
+ # TYPE_ENUM 1052
113
+ registry.register(Google::Api::FieldBehavior)
114
+ end
115
+ end
116
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "protobug"
4
+
5
+ require_relative "google/api/field_behavior_pb"
metadata ADDED
@@ -0,0 +1,75 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: protobug_googleapis_field_behavior_protos
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Samuel Giddins
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-04-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: protobug
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 0.1.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 0.1.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: protobug_well_known_protos
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 0.1.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 0.1.0
41
+ description:
42
+ email:
43
+ - segiddins@segiddins.me
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - lib/google/api/field_behavior_pb.rb
49
+ - lib/protobug_googleapis_field_behavior_protos.rb
50
+ homepage: https://github.com/segiddins/protobug/blob/v0.1.0/gen/protobug_googleapis_field_behavior_protos
51
+ licenses:
52
+ - Unlicense
53
+ metadata:
54
+ rubygems_mfa_required: 'true'
55
+ post_install_message:
56
+ rdoc_options: []
57
+ require_paths:
58
+ - lib
59
+ required_ruby_version: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: 3.0.0
64
+ required_rubygems_version: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ requirements: []
70
+ rubygems_version: 3.5.9
71
+ signing_key:
72
+ specification_version: 4
73
+ summary: Compiled protos for protobug from https://github.com/googleapis/googleapis
74
+ (googleapis_field_behavior_protos)
75
+ test_files: []