Skip to content

Commit

Permalink
add images.proto (#49)
Browse files Browse the repository at this point in the history
* Syncing protocol buffers

* add generated images.proto changes

* rtx -> mise, for java-build.yml

* update poms

---------

Co-authored-by: Working Group Two Maintainers <[email protected]>
  • Loading branch information
jorunfa and Working Group Two Maintainers authored Apr 5, 2024
1 parent bf50790 commit 961d2e3
Show file tree
Hide file tree
Showing 32 changed files with 392 additions and 74 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/java-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup rtx
uses: jdx/rtx-action@v1
- name: Setup mise
uses: jdx/mise-action@v2.0.3
- name: Make Maven Wrapper executable
if: contains(matrix.os, 'win') == false
run: chmod +x mvnw
Expand Down
Binary file modified image.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion wgtwo/annotations/annotations.pb.go

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

2 changes: 1 addition & 1 deletion wgtwo/callforward/v0/callforward.pb.go

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

2 changes: 1 addition & 1 deletion wgtwo/common/v0/errors.pb.go

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

2 changes: 1 addition & 1 deletion wgtwo/common/v0/phonenumber.pb.go

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

2 changes: 1 addition & 1 deletion wgtwo/common/v0/types.pb.go

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

2 changes: 1 addition & 1 deletion wgtwo/common/v1/phonenumber.pb.go

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

2 changes: 1 addition & 1 deletion wgtwo/common/v1/types.pb.go

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

2 changes: 1 addition & 1 deletion wgtwo/consents/v0/consents.pb.go

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

2 changes: 1 addition & 1 deletion wgtwo/consents/v1/consent_events.pb.go

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

2 changes: 1 addition & 1 deletion wgtwo/data/v1/content_filtering.pb.go

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

2 changes: 1 addition & 1 deletion wgtwo/events/v0/events.pb.go

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

2 changes: 1 addition & 1 deletion wgtwo/events/v1/events.pb.go

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

166 changes: 166 additions & 0 deletions wgtwo/images/v0/images.pb.go

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

29 changes: 29 additions & 0 deletions wgtwo/images/v0/images.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// Copyright 2023 Working Group Two AS
//
// 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
//
// http://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";

package wgtwo.images.v0;

option go_package = "github.com/working-group-two/wgtwoapis/wgtwo/images/v0";
option java_package = "com.wgtwo.api.v0.images";
option java_outer_classname = "ImagesProto";

message Image {
// Image URL
// The URL might change and should not be stored by the client.
// Example: "https://example.com/image.png"
string url = 1;
}
78 changes: 78 additions & 0 deletions wgtwo/images/v0/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.wgtwo.api.v0</groupId>
<artifactId>grpc-pom</artifactId>
<version>0.1.11-SNAPSHOT</version>
<relativePath>../../pom-v0.xml</relativePath>
</parent>

<name>${project.groupId} images</name>
<artifactId>images</artifactId>
<groupId>com.wgtwo.api.v0.grpc</groupId>
<version>0.1.11-SNAPSHOT</version>
<packaging>jar</packaging>

<properties>
<maven.deploy.skip>false</maven.deploy.skip>
</properties>

<dependencies>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-protobuf</artifactId>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-stub</artifactId>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
</dependency>
</dependencies>

<build>
<extensions>
<extension>
<groupId>kr.motd.maven</groupId>
<artifactId>os-maven-plugin</artifactId>
</extension>
</extensions>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<configuration>
<includes>
<include>wgtwo/annotations/annotations.proto</include>
<include>wgtwo/images/v0/*.proto</include>
</includes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>javadoc-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>javadoc</classifier>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
Loading

0 comments on commit 961d2e3

Please sign in to comment.