Skip to content

Commit

Permalink
feat: add support for field generate_omitted_as_internal in selective…
Browse files Browse the repository at this point in the history
… gapic generation

PiperOrigin-RevId: 721375937

Source-Link: googleapis/googleapis@78733bf

Source-Link: googleapis/googleapis-gen@a1335fa
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlYXBpcy1jb21tb24tcHJvdG9zLy5Pd2xCb3QueWFtbCIsImgiOiJhMTMzNWZhOTQ2Mzk5NzlhMzgzMWUwNjAzNWFhYzQ0YTI0ZmRhY2M0In0=
  • Loading branch information
gcf-owl-bot[bot] committed Jan 30, 2025
1 parent 0231193 commit 0f90a08
Show file tree
Hide file tree
Showing 124 changed files with 4,529 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from google.api import http_pb2 as _http_pb2
from google.protobuf import descriptor_pb2 as _descriptor_pb2
from google.protobuf import descriptor as _descriptor
from typing import ClassVar as _ClassVar

DESCRIPTOR: _descriptor.FileDescriptor
HTTP_FIELD_NUMBER: _ClassVar[int]
http: _descriptor.FieldDescriptor

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
from google.protobuf.internal import containers as _containers
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union

DESCRIPTOR: _descriptor.FileDescriptor

class Authentication(_message.Message):
__slots__ = ("rules", "providers")
RULES_FIELD_NUMBER: _ClassVar[int]
PROVIDERS_FIELD_NUMBER: _ClassVar[int]
rules: _containers.RepeatedCompositeFieldContainer[AuthenticationRule]
providers: _containers.RepeatedCompositeFieldContainer[AuthProvider]
def __init__(self, rules: _Optional[_Iterable[_Union[AuthenticationRule, _Mapping]]] = ..., providers: _Optional[_Iterable[_Union[AuthProvider, _Mapping]]] = ...) -> None: ...

class AuthenticationRule(_message.Message):
__slots__ = ("selector", "oauth", "allow_without_credential", "requirements")
SELECTOR_FIELD_NUMBER: _ClassVar[int]
OAUTH_FIELD_NUMBER: _ClassVar[int]
ALLOW_WITHOUT_CREDENTIAL_FIELD_NUMBER: _ClassVar[int]
REQUIREMENTS_FIELD_NUMBER: _ClassVar[int]
selector: str
oauth: OAuthRequirements
allow_without_credential: bool
requirements: _containers.RepeatedCompositeFieldContainer[AuthRequirement]
def __init__(self, selector: _Optional[str] = ..., oauth: _Optional[_Union[OAuthRequirements, _Mapping]] = ..., allow_without_credential: bool = ..., requirements: _Optional[_Iterable[_Union[AuthRequirement, _Mapping]]] = ...) -> None: ...

class JwtLocation(_message.Message):
__slots__ = ("header", "query", "cookie", "value_prefix")
HEADER_FIELD_NUMBER: _ClassVar[int]
QUERY_FIELD_NUMBER: _ClassVar[int]
COOKIE_FIELD_NUMBER: _ClassVar[int]
VALUE_PREFIX_FIELD_NUMBER: _ClassVar[int]
header: str
query: str
cookie: str
value_prefix: str
def __init__(self, header: _Optional[str] = ..., query: _Optional[str] = ..., cookie: _Optional[str] = ..., value_prefix: _Optional[str] = ...) -> None: ...

class AuthProvider(_message.Message):
__slots__ = ("id", "issuer", "jwks_uri", "audiences", "authorization_url", "jwt_locations")
ID_FIELD_NUMBER: _ClassVar[int]
ISSUER_FIELD_NUMBER: _ClassVar[int]
JWKS_URI_FIELD_NUMBER: _ClassVar[int]
AUDIENCES_FIELD_NUMBER: _ClassVar[int]
AUTHORIZATION_URL_FIELD_NUMBER: _ClassVar[int]
JWT_LOCATIONS_FIELD_NUMBER: _ClassVar[int]
id: str
issuer: str
jwks_uri: str
audiences: str
authorization_url: str
jwt_locations: _containers.RepeatedCompositeFieldContainer[JwtLocation]
def __init__(self, id: _Optional[str] = ..., issuer: _Optional[str] = ..., jwks_uri: _Optional[str] = ..., audiences: _Optional[str] = ..., authorization_url: _Optional[str] = ..., jwt_locations: _Optional[_Iterable[_Union[JwtLocation, _Mapping]]] = ...) -> None: ...

class OAuthRequirements(_message.Message):
__slots__ = ("canonical_scopes",)
CANONICAL_SCOPES_FIELD_NUMBER: _ClassVar[int]
canonical_scopes: str
def __init__(self, canonical_scopes: _Optional[str] = ...) -> None: ...

class AuthRequirement(_message.Message):
__slots__ = ("provider_id", "audiences")
PROVIDER_ID_FIELD_NUMBER: _ClassVar[int]
AUDIENCES_FIELD_NUMBER: _ClassVar[int]
provider_id: str
audiences: str
def __init__(self, provider_id: _Optional[str] = ..., audiences: _Optional[str] = ...) -> None: ...

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
from google.protobuf.internal import containers as _containers
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union

DESCRIPTOR: _descriptor.FileDescriptor

class Backend(_message.Message):
__slots__ = ("rules",)
RULES_FIELD_NUMBER: _ClassVar[int]
rules: _containers.RepeatedCompositeFieldContainer[BackendRule]
def __init__(self, rules: _Optional[_Iterable[_Union[BackendRule, _Mapping]]] = ...) -> None: ...

class BackendRule(_message.Message):
__slots__ = ("selector", "address", "deadline", "min_deadline", "operation_deadline", "path_translation", "jwt_audience", "disable_auth", "protocol", "overrides_by_request_protocol")
class PathTranslation(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
__slots__ = ()
PATH_TRANSLATION_UNSPECIFIED: _ClassVar[BackendRule.PathTranslation]
CONSTANT_ADDRESS: _ClassVar[BackendRule.PathTranslation]
APPEND_PATH_TO_ADDRESS: _ClassVar[BackendRule.PathTranslation]
PATH_TRANSLATION_UNSPECIFIED: BackendRule.PathTranslation
CONSTANT_ADDRESS: BackendRule.PathTranslation
APPEND_PATH_TO_ADDRESS: BackendRule.PathTranslation
class OverridesByRequestProtocolEntry(_message.Message):
__slots__ = ("key", "value")
KEY_FIELD_NUMBER: _ClassVar[int]
VALUE_FIELD_NUMBER: _ClassVar[int]
key: str
value: BackendRule
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[BackendRule, _Mapping]] = ...) -> None: ...
SELECTOR_FIELD_NUMBER: _ClassVar[int]
ADDRESS_FIELD_NUMBER: _ClassVar[int]
DEADLINE_FIELD_NUMBER: _ClassVar[int]
MIN_DEADLINE_FIELD_NUMBER: _ClassVar[int]
OPERATION_DEADLINE_FIELD_NUMBER: _ClassVar[int]
PATH_TRANSLATION_FIELD_NUMBER: _ClassVar[int]
JWT_AUDIENCE_FIELD_NUMBER: _ClassVar[int]
DISABLE_AUTH_FIELD_NUMBER: _ClassVar[int]
PROTOCOL_FIELD_NUMBER: _ClassVar[int]
OVERRIDES_BY_REQUEST_PROTOCOL_FIELD_NUMBER: _ClassVar[int]
selector: str
address: str
deadline: float
min_deadline: float
operation_deadline: float
path_translation: BackendRule.PathTranslation
jwt_audience: str
disable_auth: bool
protocol: str
overrides_by_request_protocol: _containers.MessageMap[str, BackendRule]
def __init__(self, selector: _Optional[str] = ..., address: _Optional[str] = ..., deadline: _Optional[float] = ..., min_deadline: _Optional[float] = ..., operation_deadline: _Optional[float] = ..., path_translation: _Optional[_Union[BackendRule.PathTranslation, str]] = ..., jwt_audience: _Optional[str] = ..., disable_auth: bool = ..., protocol: _Optional[str] = ..., overrides_by_request_protocol: _Optional[_Mapping[str, BackendRule]] = ...) -> None: ...

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from google.protobuf.internal import containers as _containers
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union

DESCRIPTOR: _descriptor.FileDescriptor

class Billing(_message.Message):
__slots__ = ("consumer_destinations",)
class BillingDestination(_message.Message):
__slots__ = ("monitored_resource", "metrics")
MONITORED_RESOURCE_FIELD_NUMBER: _ClassVar[int]
METRICS_FIELD_NUMBER: _ClassVar[int]
monitored_resource: str
metrics: _containers.RepeatedScalarFieldContainer[str]
def __init__(self, monitored_resource: _Optional[str] = ..., metrics: _Optional[_Iterable[str]] = ...) -> None: ...
CONSUMER_DESTINATIONS_FIELD_NUMBER: _ClassVar[int]
consumer_destinations: _containers.RepeatedCompositeFieldContainer[Billing.BillingDestination]
def __init__(self, consumer_destinations: _Optional[_Iterable[_Union[Billing.BillingDestination, _Mapping]]] = ...) -> None: ...
Loading

0 comments on commit 0f90a08

Please sign in to comment.