Skip to content

Commit

Permalink
Regenerate cmd, client, and server directories. (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
googleapis-publisher authored and noahdietz committed Apr 17, 2019
1 parent 65708bd commit 8123dde
Show file tree
Hide file tree
Showing 33 changed files with 232 additions and 296 deletions.
31 changes: 8 additions & 23 deletions client/echo_client.go

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

22 changes: 9 additions & 13 deletions client/identity_client.go

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

40 changes: 18 additions & 22 deletions client/messaging_client.go

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

33 changes: 17 additions & 16 deletions client/testing_client.go

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

28 changes: 9 additions & 19 deletions cmd/gapic-showcase/create-blurb.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import (
"github.com/golang/protobuf/jsonpb"

"os"

timestamppb "github.com/golang/protobuf/ptypes/timestamp"
)

var CreateBlurbInput genprotopb.CreateBlurbRequest
Expand All @@ -31,27 +29,15 @@ func init() {

CreateBlurbInput.Blurb = new(genprotopb.Blurb)

CreateBlurbInput.Blurb.CreateTime = new(timestamppb.Timestamp)

CreateBlurbInput.Blurb.UpdateTime = new(timestamppb.Timestamp)

CreateBlurbCmd.Flags().StringVar(&CreateBlurbInput.Parent, "parent", "", "")

CreateBlurbCmd.Flags().StringVar(&CreateBlurbInput.Blurb.Name, "blurb.name", "", "")

CreateBlurbCmd.Flags().StringVar(&CreateBlurbInput.Blurb.User, "blurb.user", "", "")
CreateBlurbCmd.Flags().StringVar(&CreateBlurbInput.Parent, "parent", "", "Required. The resource name of the chat room or user profile that this blurb will be tied to.")

CreateBlurbCmd.Flags().StringVar(&CreateBlurbInputBlurbContentText.Text, "blurb.content.text", "", "")
CreateBlurbCmd.Flags().StringVar(&CreateBlurbInput.Blurb.Name, "blurb.name", "", "The resource name of the chat room.")

CreateBlurbCmd.Flags().BytesHexVar(&CreateBlurbInputBlurbContentImage.Image, "blurb.content.image", []byte{}, "")
CreateBlurbCmd.Flags().StringVar(&CreateBlurbInput.Blurb.User, "blurb.user", "", "Required. The resource name of the blurb's author.")

CreateBlurbCmd.Flags().Int64Var(&CreateBlurbInput.Blurb.CreateTime.Seconds, "blurb.create_time.seconds", 0, "")
CreateBlurbCmd.Flags().StringVar(&CreateBlurbInputBlurbContentText.Text, "blurb.content.text", "", "The textual content of this blurb.")

CreateBlurbCmd.Flags().Int32Var(&CreateBlurbInput.Blurb.CreateTime.Nanos, "blurb.create_time.nanos", 0, "")

CreateBlurbCmd.Flags().Int64Var(&CreateBlurbInput.Blurb.UpdateTime.Seconds, "blurb.update_time.seconds", 0, "")

CreateBlurbCmd.Flags().Int32Var(&CreateBlurbInput.Blurb.UpdateTime.Nanos, "blurb.update_time.nanos", 0, "")
CreateBlurbCmd.Flags().BytesHexVar(&CreateBlurbInputBlurbContentImage.Image, "blurb.content.image", []byte{}, "The image content of this blurb.")

CreateBlurbCmd.Flags().StringVar(&CreateBlurbInputBlurbContent, "blurb.content", "", "")

Expand All @@ -67,6 +53,10 @@ var CreateBlurbCmd = &cobra.Command{

if CreateBlurbFromFile == "" {

cmd.MarkFlagRequired("parent")

cmd.MarkFlagRequired("blurb.user")

cmd.MarkFlagRequired("blurb.content")

}
Expand Down
22 changes: 5 additions & 17 deletions cmd/gapic-showcase/create-room.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import (
"github.com/golang/protobuf/jsonpb"

"os"

timestamppb "github.com/golang/protobuf/ptypes/timestamp"
)

var CreateRoomInput genprotopb.CreateRoomRequest
Expand All @@ -25,23 +23,11 @@ func init() {

CreateRoomInput.Room = new(genprotopb.Room)

CreateRoomInput.Room.CreateTime = new(timestamppb.Timestamp)

CreateRoomInput.Room.UpdateTime = new(timestamppb.Timestamp)

CreateRoomCmd.Flags().StringVar(&CreateRoomInput.Room.Name, "room.name", "", "")

CreateRoomCmd.Flags().StringVar(&CreateRoomInput.Room.DisplayName, "room.display_name", "", "")
CreateRoomCmd.Flags().StringVar(&CreateRoomInput.Room.Name, "room.name", "", "The resource name of the chat room.")

CreateRoomCmd.Flags().StringVar(&CreateRoomInput.Room.Description, "room.description", "", "")
CreateRoomCmd.Flags().StringVar(&CreateRoomInput.Room.DisplayName, "room.display_name", "", "Required. The human readable name of the chat room.")

CreateRoomCmd.Flags().Int64Var(&CreateRoomInput.Room.CreateTime.Seconds, "room.create_time.seconds", 0, "")

CreateRoomCmd.Flags().Int32Var(&CreateRoomInput.Room.CreateTime.Nanos, "room.create_time.nanos", 0, "")

CreateRoomCmd.Flags().Int64Var(&CreateRoomInput.Room.UpdateTime.Seconds, "room.update_time.seconds", 0, "")

CreateRoomCmd.Flags().Int32Var(&CreateRoomInput.Room.UpdateTime.Nanos, "room.update_time.nanos", 0, "")
CreateRoomCmd.Flags().StringVar(&CreateRoomInput.Room.Description, "room.description", "", "The description of the chat room.")

CreateRoomCmd.Flags().StringVar(&CreateRoomFromFile, "from_file", "", "Absolute path to JSON file containing request payload")

Expand All @@ -55,6 +41,8 @@ var CreateRoomCmd = &cobra.Command{

if CreateRoomFromFile == "" {

cmd.MarkFlagRequired("room.display_name")

}

},
Expand Down
Loading

0 comments on commit 8123dde

Please sign in to comment.