Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,13 @@ jobs:
-P enable-integration-tests \
--batch-mode \
--no-transfer-progress
- name: Showcase integration tests - Protobuf gen code 3.21.0
working-directory: java-showcase-3.21.0
run: |
mvn verify \
-P enable-integration-tests \
--batch-mode \
--no-transfer-progress
showcase:
runs-on: ubuntu-22.04
strategy:
Expand Down
2 changes: 2 additions & 0 deletions java-showcase-3.21.0/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This is a copy of [GAPIC Showcase](https://github.com/googleapis/gapic-showcase) with protobuf 3.21.0 gen code.
This is intended to test the compatibility between protobuf-java runtime v4.33.0 and gen code 3.21.0.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This line has trailing whitespace, and the file is missing a final newline. It's good practice to remove trailing whitespace and ensure files end with a newline for consistency and to avoid issues with some tools.

Suggested change
This is intended to test the compatibility between protobuf-java runtime v4.33.0 and gen code 3.21.0.
This is intended to test the compatibility between protobuf-java runtime v4.33.0 and gen code 3.21.0.

34 changes: 34 additions & 0 deletions java-showcase-3.21.0/gapic-showcase-extended/proto/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright 2023 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.

"""
Provides proto_library target
Exports grpc service config
"""
load ("@rules_proto//proto:defs.bzl", "proto_library")

# This is an API workspace, having public visibility by default makes perfect sense.
package(default_visibility = ["//visibility:public"])

# This BUILD file is the framework for gapic-showcase-extended (an extension to the existing gapic-showcase)
# It serves to augment the existing showcase project with generic protos not *yet* suited to the upstream project
#
# gapic-showcase project is used to test the generated client behavior with a showcase server
# gapic-showcase-extension project is used to test the generator's behavior

#proto_library(
# name = "showcase_proto_extended",
# srcs = [],
# deps = []
#)
49 changes: 49 additions & 0 deletions java-showcase-3.21.0/gapic-showcase-extended/proto/wicked.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// Copyright 2023 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.

syntax = "proto3";

import "google/api/client.proto";

package google.showcase.v1beta1;

option go_package = "github.com/googleapis/gapic-showcase/server/genproto";
option java_package = "com.google.showcase.v1beta1";
option java_multiple_files = true;
option ruby_package = "Google::Showcase::V1beta1";

// This service is used to show a Service with either non-enabled or non-eligible
// RPCs for HttpJson (Http 1.1).
// Non-Enabled: Missing the (google.api.http) annotation to enabled it
// Non-Eligible: BIDI and Client side streaming are not supported with Http 1.1
// Service name is reference to `No REST for the Wicked`
service Wicked {
// This service is meant to only run locally on the port 7469 (keypad digits
// for "show").
option (google.api.default_host) = "localhost:7469";

rpc CraftEvilPlan(EvilRequest) returns (EvilResponse);

rpc BrainstormEvilPlans(stream EvilRequest) returns (stream EvilResponse);

rpc PersuadeEvilPlan(stream EvilRequest) returns (EvilResponse);
}

message EvilRequest {
string malicious_idea = 1;
}

message EvilResponse {
string malicious_plan = 1;
}
Loading
Loading