Skip to content

Commit

Permalink
feat: [common-protos] Add a proto message to describe the `resource_t…
Browse files Browse the repository at this point in the history
…ype` and `resource_permission` for an API method (#1878)

* feat: Add a proto message to describe the `resource_type` and `resource_permission` for an API method

PiperOrigin-RevId: 550688034

Source-Link: googleapis/googleapis@52a738b

Source-Link: googleapis/googleapis-gen@a4242e4
Copy-Tag: eyJwIjoiamF2YS1jb21tb24tcHJvdG9zLy5Pd2xCb3QueWFtbCIsImgiOiJhNDI0MmU0ODdjYjcxYWRjNWNiYzVjMzU2MzQ4Yjc3ZmY0NzdmMDNhIn0=

* feat: Add a proto message to describe the `resource_type` and `resource_permission` for an API method

PiperOrigin-RevId: 550688034

Source-Link: googleapis/googleapis@52a738b

Source-Link: googleapis/googleapis-gen@a4242e4
Copy-Tag: eyJwIjoiamF2YS1jb21tb24tcHJvdG9zLy5Pd2xCb3QueWFtbCIsImgiOiJhNDI0MmU0ODdjYjcxYWRjNWNiYzVjMzU2MzQ4Yjc3ZmY0NzdmMDNhIn0=

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Aug 1, 2023
1 parent 9d87ed3 commit 3e27ca9
Show file tree
Hide file tree
Showing 10 changed files with 3,239 additions and 7 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,55 @@ public interface ControlOrBuilder
* @return The bytes for environment.
*/
com.google.protobuf.ByteString getEnvironmentBytes();

/**
*
*
* <pre>
* Defines policies applying to the API methods of the service.
* </pre>
*
* <code>repeated .google.api.MethodPolicy method_policies = 4;</code>
*/
java.util.List<com.google.api.MethodPolicy> getMethodPoliciesList();
/**
*
*
* <pre>
* Defines policies applying to the API methods of the service.
* </pre>
*
* <code>repeated .google.api.MethodPolicy method_policies = 4;</code>
*/
com.google.api.MethodPolicy getMethodPolicies(int index);
/**
*
*
* <pre>
* Defines policies applying to the API methods of the service.
* </pre>
*
* <code>repeated .google.api.MethodPolicy method_policies = 4;</code>
*/
int getMethodPoliciesCount();
/**
*
*
* <pre>
* Defines policies applying to the API methods of the service.
* </pre>
*
* <code>repeated .google.api.MethodPolicy method_policies = 4;</code>
*/
java.util.List<? extends com.google.api.MethodPolicyOrBuilder> getMethodPoliciesOrBuilderList();
/**
*
*
* <pre>
* Defines policies applying to the API methods of the service.
* </pre>
*
* <code>repeated .google.api.MethodPolicy method_policies = 4;</code>
*/
com.google.api.MethodPolicyOrBuilder getMethodPoliciesOrBuilder(int index);
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {

static {
java.lang.String[] descriptorData = {
"\n\030google/api/control.proto\022\ngoogle.api\"\036"
+ "\n\007Control\022\023\n\013environment\030\001 \001(\tBn\n\016com.go"
+ "ogle.apiB\014ControlProtoP\001ZEgoogle.golang."
+ "org/genproto/googleapis/api/serviceconfi"
+ "g;serviceconfig\242\002\004GAPIb\006proto3"
"\n\030google/api/control.proto\022\ngoogle.api\032\027"
+ "google/api/policy.proto\"Q\n\007Control\022\023\n\013en"
+ "vironment\030\001 \001(\t\0221\n\017method_policies\030\004 \003(\013"
+ "2\030.google.api.MethodPolicyBn\n\016com.google"
+ ".apiB\014ControlProtoP\001ZEgoogle.golang.org/"
+ "genproto/googleapis/api/serviceconfig;se"
+ "rviceconfig\242\002\004GAPIb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.PolicyProto.getDescriptor(),
});
internal_static_google_api_Control_descriptor = getDescriptor().getMessageTypes().get(0);
internal_static_google_api_Control_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_api_Control_descriptor,
new java.lang.String[] {
"Environment",
"Environment", "MethodPolicies",
});
com.google.api.PolicyProto.getDescriptor();
}

// @@protoc_insertion_point(outer_class_scope)
Expand Down
Loading

0 comments on commit 3e27ca9

Please sign in to comment.