Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [common-protos] Add a proto message to describe the resource_type and resource_permission for an API method #1878

Merged
merged 5 commits into from
Aug 1, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Prev Previous commit
Next Next commit
🦉 Updates from OwlBot post-processor
  • Loading branch information
gcf-owl-bot[bot] committed Jul 25, 2023
commit 97e44e9a4fff8634f3b59cc303138d57792cd0ec

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,31 +1,52 @@
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/config_change.proto

package com.google.api;

public interface AdviceOrBuilder extends
public interface AdviceOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.api.Advice)
com.google.protobuf.MessageOrBuilder {

/**
*
*
* <pre>
* Useful description for why this advice was applied and what actions should
* be taken to mitigate any implied risks.
* </pre>
*
* <code>string description = 2;</code>
*
* @return The description.
*/
java.lang.String getDescription();
/**
*
*
* <pre>
* Useful description for why this advice was applied and what actions should
* be taken to mitigate any implied risks.
* </pre>
*
* <code>string description = 2;</code>
*
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
com.google.protobuf.ByteString getDescriptionBytes();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/annotations.proto

package com.google.api;

public final class AnnotationsProto {
private AnnotationsProto() {}

public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
registry.add(com.google.api.AnnotationsProto.http);
}

public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
}

public static final int HTTP_FIELD_NUMBER = 72295728;
/**
*
*
* <pre>
* See `HttpRule`.
* </pre>
*
* <code>extend .google.protobuf.MethodOptions { ... }</code>
*/
public static final com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.DescriptorProtos.MethodOptions, com.google.api.HttpRule>
http =
com.google.protobuf.GeneratedMessage.newFileScopedGeneratedExtension(
com.google.api.HttpRule.class, com.google.api.HttpRule.getDefaultInstance());

public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
}

private static com.google.protobuf.Descriptors.FileDescriptor descriptor;

static {
java.lang.String[] descriptorData = {
"\n\034google/api/annotations.proto\022\ngoogle.a"
+ "pi\032\025google/api/http.proto\032 google/protob"
+ "uf/descriptor.proto:E\n\004http\022\036.google.pro"
+ "tobuf.MethodOptions\030\260\312\274\" \001(\0132\024.google.ap"
+ "i.HttpRuleBn\n\016com.google.apiB\020Annotation"
+ "sProtoP\001ZAgoogle.golang.org/genproto/goo"
+ "gleapis/api/annotations;annotations\242\002\004GA"
+ "PIb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.HttpProto.getDescriptor(),
com.google.protobuf.DescriptorProtos.getDescriptor(),
});
http.internalInit(descriptor.getExtensions().get(0));
com.google.api.HttpProto.getDescriptor();
com.google.protobuf.DescriptorProtos.getDescriptor();
}

// @@protoc_insertion_point(outer_class_scope)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/auth.proto

package com.google.api;

public final class AuthProto {
private AuthProto() {}

public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}

public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
}

static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_api_Authentication_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_api_Authentication_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_api_AuthenticationRule_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_api_AuthenticationRule_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_api_JwtLocation_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_api_JwtLocation_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_api_AuthProvider_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_api_AuthProvider_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_api_OAuthRequirements_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_api_OAuthRequirements_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_api_AuthRequirement_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_api_AuthRequirement_fieldAccessorTable;

public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
}

private static com.google.protobuf.Descriptors.FileDescriptor descriptor;

static {
java.lang.String[] descriptorData = {
"\n\025google/api/auth.proto\022\ngoogle.api\"l\n\016A"
+ "uthentication\022-\n\005rules\030\003 \003(\0132\036.google.ap"
+ "i.AuthenticationRule\022+\n\tproviders\030\004 \003(\0132"
+ "\030.google.api.AuthProvider\"\251\001\n\022Authentica"
+ "tionRule\022\020\n\010selector\030\001 \001(\t\022,\n\005oauth\030\002 \001("
+ "\0132\035.google.api.OAuthRequirements\022 \n\030allo"
+ "w_without_credential\030\005 \001(\010\0221\n\014requiremen"
+ "ts\030\007 \003(\0132\033.google.api.AuthRequirement\"^\n"
+ "\013JwtLocation\022\020\n\006header\030\001 \001(\tH\000\022\017\n\005query\030"
+ "\002 \001(\tH\000\022\020\n\006cookie\030\004 \001(\tH\000\022\024\n\014value_prefi"
+ "x\030\003 \001(\tB\004\n\002in\"\232\001\n\014AuthProvider\022\n\n\002id\030\001 \001"
+ "(\t\022\016\n\006issuer\030\002 \001(\t\022\020\n\010jwks_uri\030\003 \001(\t\022\021\n\t"
+ "audiences\030\004 \001(\t\022\031\n\021authorization_url\030\005 \001"
+ "(\t\022.\n\rjwt_locations\030\006 \003(\0132\027.google.api.J"
+ "wtLocation\"-\n\021OAuthRequirements\022\030\n\020canon"
+ "ical_scopes\030\001 \001(\t\"9\n\017AuthRequirement\022\023\n\013"
+ "provider_id\030\001 \001(\t\022\021\n\taudiences\030\002 \001(\tBk\n\016"
+ "com.google.apiB\tAuthProtoP\001ZEgoogle.gola"
+ "ng.org/genproto/googleapis/api/serviceco"
+ "nfig;serviceconfig\242\002\004GAPIb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
internal_static_google_api_Authentication_descriptor = getDescriptor().getMessageTypes().get(0);
internal_static_google_api_Authentication_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_api_Authentication_descriptor,
new java.lang.String[] {
"Rules", "Providers",
});
internal_static_google_api_AuthenticationRule_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_google_api_AuthenticationRule_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_api_AuthenticationRule_descriptor,
new java.lang.String[] {
"Selector", "Oauth", "AllowWithoutCredential", "Requirements",
});
internal_static_google_api_JwtLocation_descriptor = getDescriptor().getMessageTypes().get(2);
internal_static_google_api_JwtLocation_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_api_JwtLocation_descriptor,
new java.lang.String[] {
"Header", "Query", "Cookie", "ValuePrefix", "In",
});
internal_static_google_api_AuthProvider_descriptor = getDescriptor().getMessageTypes().get(3);
internal_static_google_api_AuthProvider_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_api_AuthProvider_descriptor,
new java.lang.String[] {
"Id", "Issuer", "JwksUri", "Audiences", "AuthorizationUrl", "JwtLocations",
});
internal_static_google_api_OAuthRequirements_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_google_api_OAuthRequirements_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_api_OAuthRequirements_descriptor,
new java.lang.String[] {
"CanonicalScopes",
});
internal_static_google_api_AuthRequirement_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_google_api_AuthRequirement_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_api_AuthRequirement_descriptor,
new java.lang.String[] {
"ProviderId", "Audiences",
});
}

// @@protoc_insertion_point(outer_class_scope)
}
Loading