Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
chore(regen): updated protos (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed Jan 30, 2020
1 parent a2def67 commit 640401a
Show file tree
Hide file tree
Showing 3 changed files with 122 additions and 126 deletions.
214 changes: 106 additions & 108 deletions src/main/java/io/grafeas/v1/GrafeasOuterClass.java
Expand Up @@ -176,114 +176,111 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ ".UpgradeNoteH\000:5\352A2\n\017grafeas.io/Note\022\037pr"
+ "ojects/{project}/notes/{note}B\006\n\004type\"C\n"
+ "\024GetOccurrenceRequest\022+\n\004name\030\001 \001(\tB\035\340A\002"
+ "\372A\027\n\025grafeas.io/Occurrence\"\224\001\n\026ListOccur"
+ "rencesRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+c"
+ "loudresourcemanager.googleapis.com/Proje"
+ "ct\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n"
+ "\npage_token\030\004 \001(\t\"_\n\027ListOccurrencesResp"
+ "onse\022+\n\013occurrences\030\001 \003(\0132\026.grafeas.v1.O"
+ "ccurrence\022\027\n\017next_page_token\030\002 \001(\t\"F\n\027De"
+ "leteOccurrenceRequest\022+\n\004name\030\001 \001(\tB\035\340A\002"
+ "\372A\027\n\025grafeas.io/Occurrence\"\217\001\n\027CreateOcc"
+ "urrenceRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+"
+ "cloudresourcemanager.googleapis.com/Proj"
+ "ect\022/\n\noccurrence\030\002 \001(\0132\026.grafeas.v1.Occ"
+ "urrenceB\003\340A\002\"\250\001\n\027UpdateOccurrenceRequest"
+ "\022+\n\004name\030\001 \001(\tB\035\340A\002\372A\027\n\025grafeas.io/Occur"
+ "rence\022/\n\noccurrence\030\002 \001(\0132\026.grafeas.v1.O"
+ "ccurrenceB\003\340A\002\022/\n\013update_mask\030\003 \001(\0132\032.go"
+ "ogle.protobuf.FieldMask\"7\n\016GetNoteReques"
+ "t\022%\n\004name\030\001 \001(\tB\027\340A\002\372A\021\n\017grafeas.io/Note"
+ "\"G\n\030GetOccurrenceNoteRequest\022+\n\004name\030\001 \001"
+ "(\tB\035\340A\002\372A\027\n\025grafeas.io/Occurrence\"\216\001\n\020Li"
+ "stNotesRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+"
+ "cloudresourcemanager.googleapis.com/Proj"
+ "ect\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022"
+ "\n\npage_token\030\004 \001(\t\"M\n\021ListNotesResponse\022"
+ "\037\n\005notes\030\001 \003(\0132\020.grafeas.v1.Note\022\027\n\017next"
+ "_page_token\030\002 \001(\t\":\n\021DeleteNoteRequest\022%"
+ "\n\004name\030\001 \001(\tB\027\340A\002\372A\021\n\017grafeas.io/Note\"\223\001"
+ "\n\021CreateNoteRequest\022C\n\006parent\030\001 \001(\tB3\340A\002"
+ "\372A-\n+cloudresourcemanager.googleapis.com"
+ "/Project\022\024\n\007note_id\030\002 \001(\tB\003\340A\002\022#\n\004note\030\003"
+ " \001(\0132\020.grafeas.v1.NoteB\003\340A\002\"\220\001\n\021UpdateNo"
+ "teRequest\022%\n\004name\030\001 \001(\tB\027\340A\002\372A\021\n\017grafeas"
+ ".io/Note\022#\n\004note\030\002 \001(\0132\020.grafeas.v1.Note"
+ "B\003\340A\002\022/\n\013update_mask\030\003 \001(\0132\032.google.prot"
+ "obuf.FieldMask\"z\n\032ListNoteOccurrencesReq"
+ "uest\022%\n\004name\030\001 \001(\tB\027\340A\002\372A\021\n\017grafeas.io/N"
+ "ote\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022"
+ "\n\npage_token\030\004 \001(\t\"c\n\033ListNoteOccurrence"
+ "sResponse\022+\n\013occurrences\030\001 \003(\0132\026.grafeas"
+ ".v1.Occurrence\022\027\n\017next_page_token\030\002 \001(\t\""
+ "\342\001\n\027BatchCreateNotesRequest\022C\n\006parent\030\001 "
+ "\001(\tB3\340A\002\372A-\n+cloudresourcemanager.google"
+ "apis.com/Project\022B\n\005notes\030\002 \003(\0132..grafea"
+ "s.v1.BatchCreateNotesRequest.NotesEntryB"
+ "\003\340A\002\032>\n\nNotesEntry\022\013\n\003key\030\001 \001(\t\022\037\n\005value"
+ "\030\002 \001(\0132\020.grafeas.v1.Note:\0028\001\";\n\030BatchCre"
+ "ateNotesResponse\022\037\n\005notes\030\001 \003(\0132\020.grafea"
+ "s.v1.Note\"\226\001\n\035BatchCreateOccurrencesRequ"
+ "est\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresour"
+ "cemanager.googleapis.com/Project\0220\n\013occu"
+ "rrences\030\002 \003(\0132\026.grafeas.v1.OccurrenceB\003\340"
+ "A\002\"M\n\036BatchCreateOccurrencesResponse\022+\n\013"
+ "occurrences\030\001 \003(\0132\026.grafeas.v1.Occurrenc"
+ "e2\222\020\n\007Grafeas\022}\n\rGetOccurrence\022 .grafeas"
+ ".v1.GetOccurrenceRequest\032\026.grafeas.v1.Oc"
+ "currence\"2\202\323\344\223\002%\022#/v1/{name=projects/*/o"
+ "ccurrences/*}\332A\004name\022\227\001\n\017ListOccurrences"
+ "\022\".grafeas.v1.ListOccurrencesRequest\032#.g"
+ "rafeas.v1.ListOccurrencesResponse\";\202\323\344\223\002"
+ "%\022#/v1/{parent=projects/*}/occurrences\332A"
+ "\rparent,filter\022\203\001\n\020DeleteOccurrence\022#.gr"
+ "afeas.v1.DeleteOccurrenceRequest\032\026.googl"
+ "e.protobuf.Empty\"2\202\323\344\223\002%*#/v1/{name=proj"
+ "ects/*/occurrences/*}\332A\004name\022\234\001\n\020CreateO"
+ "ccurrence\022#.grafeas.v1.CreateOccurrenceR"
+ "equest\032\026.grafeas.v1.Occurrence\"K\202\323\344\223\0021\"#"
+ "/v1/{parent=projects/*}/occurrences:\nocc"
+ "urrence\332A\021parent,occurrence\022\300\001\n\026BatchCre"
+ "ateOccurrences\022).grafeas.v1.BatchCreateO"
+ "ccurrencesRequest\032*.grafeas.v1.BatchCrea"
+ "teOccurrencesResponse\"O\202\323\344\223\0024\"//v1/{pare"
+ "nt=projects/*}/occurrences:batchCreate:\001"
+ "*\332A\022parent,occurrences\022\246\001\n\020UpdateOccurre"
+ "nce\022#.grafeas.v1.UpdateOccurrenceRequest"
+ "\032\026.grafeas.v1.Occurrence\"U\202\323\344\223\00212#/v1/{n"
+ "ame=projects/*/occurrences/*}:\noccurrenc"
+ "e\332A\033name,occurrence,update_mask\022\205\001\n\021GetO"
+ "ccurrenceNote\022$.grafeas.v1.GetOccurrence"
+ "NoteRequest\032\020.grafeas.v1.Note\"8\202\323\344\223\002+\022)/"
+ "v1/{name=projects/*/occurrences/*}/notes"
+ "\332A\004name\022e\n\007GetNote\022\032.grafeas.v1.GetNoteR"
+ "equest\032\020.grafeas.v1.Note\",\202\323\344\223\002\037\022\035/v1/{n"
+ "ame=projects/*/notes/*}\332A\004name\022\177\n\tListNo"
+ "tes\022\034.grafeas.v1.ListNotesRequest\032\035.graf"
+ "eas.v1.ListNotesResponse\"5\202\323\344\223\002\037\022\035/v1/{p"
+ "arent=projects/*}/notes\332A\rparent,filter\022"
+ "q\n\nDeleteNote\022\035.grafeas.v1.DeleteNoteReq"
+ "uest\032\026.google.protobuf.Empty\",\202\323\344\223\002\037*\035/v"
+ "1/{name=projects/*/notes/*}\332A\004name\022\200\001\n\nC"
+ "reateNote\022\035.grafeas.v1.CreateNoteRequest"
+ "\032\020.grafeas.v1.Note\"A\202\323\344\223\002%\"\035/v1/{parent="
+ "projects/*}/notes:\004note\332A\023parent,note_id"
+ ",note\022\242\001\n\020BatchCreateNotes\022#.grafeas.v1."
+ "BatchCreateNotesRequest\032$.grafeas.v1.Bat"
+ "chCreateNotesResponse\"C\202\323\344\223\002.\")/v1/{pare"
+ "nt=projects/*}/notes:batchCreate:\001*\332A\014pa"
+ "rent,notes\022\202\001\n\nUpdateNote\022\035.grafeas.v1.U"
+ "pdateNoteRequest\032\020.grafeas.v1.Note\"C\202\323\344\223"
+ "\002%2\035/v1/{name=projects/*/notes/*}:\004note\332"
+ "A\025name,note,update_mask\022\247\001\n\023ListNoteOccu"
+ "rrences\022&.grafeas.v1.ListNoteOccurrences"
+ "Request\032\'.grafeas.v1.ListNoteOccurrences"
+ "Response\"?\202\323\344\223\002+\022)/v1/{name=projects/*/n"
+ "otes/*}/occurrences\332A\013name,filter\032#\312A co"
+ "ntaineranalysis.googleapis.comBQ\n\rio.gra"
+ "feas.v1P\001Z8google.golang.org/genproto/go"
+ "ogleapis/grafeas/v1;grafeas\242\002\003GRAb\006proto"
+ "3"
+ "\372A\027\n\025grafeas.io/Occurrence\"{\n\026ListOccurr"
+ "encesRequest\022*\n\006parent\030\001 \001(\tB\032\340A\002\372A\024\n\022gr"
+ "afeas.io/Project\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage"
+ "_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"_\n\027ListO"
+ "ccurrencesResponse\022+\n\013occurrences\030\001 \003(\0132"
+ "\026.grafeas.v1.Occurrence\022\027\n\017next_page_tok"
+ "en\030\002 \001(\t\"F\n\027DeleteOccurrenceRequest\022+\n\004n"
+ "ame\030\001 \001(\tB\035\340A\002\372A\027\n\025grafeas.io/Occurrence"
+ "\"v\n\027CreateOccurrenceRequest\022*\n\006parent\030\001 "
+ "\001(\tB\032\340A\002\372A\024\n\022grafeas.io/Project\022/\n\noccur"
+ "rence\030\002 \001(\0132\026.grafeas.v1.OccurrenceB\003\340A\002"
+ "\"\250\001\n\027UpdateOccurrenceRequest\022+\n\004name\030\001 \001"
+ "(\tB\035\340A\002\372A\027\n\025grafeas.io/Occurrence\022/\n\nocc"
+ "urrence\030\002 \001(\0132\026.grafeas.v1.OccurrenceB\003\340"
+ "A\002\022/\n\013update_mask\030\003 \001(\0132\032.google.protobu"
+ "f.FieldMask\"7\n\016GetNoteRequest\022%\n\004name\030\001 "
+ "\001(\tB\027\340A\002\372A\021\n\017grafeas.io/Note\"G\n\030GetOccur"
+ "renceNoteRequest\022+\n\004name\030\001 \001(\tB\035\340A\002\372A\027\n\025"
+ "grafeas.io/Occurrence\"u\n\020ListNotesReques"
+ "t\022*\n\006parent\030\001 \001(\tB\032\340A\002\372A\024\n\022grafeas.io/Pr"
+ "oject\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005"
+ "\022\022\n\npage_token\030\004 \001(\t\"M\n\021ListNotesRespons"
+ "e\022\037\n\005notes\030\001 \003(\0132\020.grafeas.v1.Note\022\027\n\017ne"
+ "xt_page_token\030\002 \001(\t\":\n\021DeleteNoteRequest"
+ "\022%\n\004name\030\001 \001(\tB\027\340A\002\372A\021\n\017grafeas.io/Note\""
+ "z\n\021CreateNoteRequest\022*\n\006parent\030\001 \001(\tB\032\340A"
+ "\002\372A\024\n\022grafeas.io/Project\022\024\n\007note_id\030\002 \001("
+ "\tB\003\340A\002\022#\n\004note\030\003 \001(\0132\020.grafeas.v1.NoteB\003"
+ "\340A\002\"\220\001\n\021UpdateNoteRequest\022%\n\004name\030\001 \001(\tB"
+ "\027\340A\002\372A\021\n\017grafeas.io/Note\022#\n\004note\030\002 \001(\0132\020"
+ ".grafeas.v1.NoteB\003\340A\002\022/\n\013update_mask\030\003 \001"
+ "(\0132\032.google.protobuf.FieldMask\"z\n\032ListNo"
+ "teOccurrencesRequest\022%\n\004name\030\001 \001(\tB\027\340A\002\372"
+ "A\021\n\017grafeas.io/Note\022\016\n\006filter\030\002 \001(\t\022\021\n\tp"
+ "age_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"c\n\033Li"
+ "stNoteOccurrencesResponse\022+\n\013occurrences"
+ "\030\001 \003(\0132\026.grafeas.v1.Occurrence\022\027\n\017next_p"
+ "age_token\030\002 \001(\t\"\311\001\n\027BatchCreateNotesRequ"
+ "est\022*\n\006parent\030\001 \001(\tB\032\340A\002\372A\024\n\022grafeas.io/"
+ "Project\022B\n\005notes\030\002 \003(\0132..grafeas.v1.Batc"
+ "hCreateNotesRequest.NotesEntryB\003\340A\002\032>\n\nN"
+ "otesEntry\022\013\n\003key\030\001 \001(\t\022\037\n\005value\030\002 \001(\0132\020."
+ "grafeas.v1.Note:\0028\001\";\n\030BatchCreateNotesR"
+ "esponse\022\037\n\005notes\030\001 \003(\0132\020.grafeas.v1.Note"
+ "\"}\n\035BatchCreateOccurrencesRequest\022*\n\006par"
+ "ent\030\001 \001(\tB\032\340A\002\372A\024\n\022grafeas.io/Project\0220\n"
+ "\013occurrences\030\002 \003(\0132\026.grafeas.v1.Occurren"
+ "ceB\003\340A\002\"M\n\036BatchCreateOccurrencesRespons"
+ "e\022+\n\013occurrences\030\001 \003(\0132\026.grafeas.v1.Occu"
+ "rrence2\222\020\n\007Grafeas\022}\n\rGetOccurrence\022 .gr"
+ "afeas.v1.GetOccurrenceRequest\032\026.grafeas."
+ "v1.Occurrence\"2\202\323\344\223\002%\022#/v1/{name=project"
+ "s/*/occurrences/*}\332A\004name\022\227\001\n\017ListOccurr"
+ "ences\022\".grafeas.v1.ListOccurrencesReques"
+ "t\032#.grafeas.v1.ListOccurrencesResponse\";"
+ "\202\323\344\223\002%\022#/v1/{parent=projects/*}/occurren"
+ "ces\332A\rparent,filter\022\203\001\n\020DeleteOccurrence"
+ "\022#.grafeas.v1.DeleteOccurrenceRequest\032\026."
+ "google.protobuf.Empty\"2\202\323\344\223\002%*#/v1/{name"
+ "=projects/*/occurrences/*}\332A\004name\022\234\001\n\020Cr"
+ "eateOccurrence\022#.grafeas.v1.CreateOccurr"
+ "enceRequest\032\026.grafeas.v1.Occurrence\"K\202\323\344"
+ "\223\0021\"#/v1/{parent=projects/*}/occurrences"
+ ":\noccurrence\332A\021parent,occurrence\022\300\001\n\026Bat"
+ "chCreateOccurrences\022).grafeas.v1.BatchCr"
+ "eateOccurrencesRequest\032*.grafeas.v1.Batc"
+ "hCreateOccurrencesResponse\"O\202\323\344\223\0024\"//v1/"
+ "{parent=projects/*}/occurrences:batchCre"
+ "ate:\001*\332A\022parent,occurrences\022\246\001\n\020UpdateOc"
+ "currence\022#.grafeas.v1.UpdateOccurrenceRe"
+ "quest\032\026.grafeas.v1.Occurrence\"U\202\323\344\223\00212#/"
+ "v1/{name=projects/*/occurrences/*}:\noccu"
+ "rrence\332A\033name,occurrence,update_mask\022\205\001\n"
+ "\021GetOccurrenceNote\022$.grafeas.v1.GetOccur"
+ "renceNoteRequest\032\020.grafeas.v1.Note\"8\202\323\344\223"
+ "\002+\022)/v1/{name=projects/*/occurrences/*}/"
+ "notes\332A\004name\022e\n\007GetNote\022\032.grafeas.v1.Get"
+ "NoteRequest\032\020.grafeas.v1.Note\",\202\323\344\223\002\037\022\035/"
+ "v1/{name=projects/*/notes/*}\332A\004name\022\177\n\tL"
+ "istNotes\022\034.grafeas.v1.ListNotesRequest\032\035"
+ ".grafeas.v1.ListNotesResponse\"5\202\323\344\223\002\037\022\035/"
+ "v1/{parent=projects/*}/notes\332A\rparent,fi"
+ "lter\022q\n\nDeleteNote\022\035.grafeas.v1.DeleteNo"
+ "teRequest\032\026.google.protobuf.Empty\",\202\323\344\223\002"
+ "\037*\035/v1/{name=projects/*/notes/*}\332A\004name\022"
+ "\200\001\n\nCreateNote\022\035.grafeas.v1.CreateNoteRe"
+ "quest\032\020.grafeas.v1.Note\"A\202\323\344\223\002%\"\035/v1/{pa"
+ "rent=projects/*}/notes:\004note\332A\023parent,no"
+ "te_id,note\022\242\001\n\020BatchCreateNotes\022#.grafea"
+ "s.v1.BatchCreateNotesRequest\032$.grafeas.v"
+ "1.BatchCreateNotesResponse\"C\202\323\344\223\002.\")/v1/"
+ "{parent=projects/*}/notes:batchCreate:\001*"
+ "\332A\014parent,notes\022\202\001\n\nUpdateNote\022\035.grafeas"
+ ".v1.UpdateNoteRequest\032\020.grafeas.v1.Note\""
+ "C\202\323\344\223\002%2\035/v1/{name=projects/*/notes/*}:\004"
+ "note\332A\025name,note,update_mask\022\247\001\n\023ListNot"
+ "eOccurrences\022&.grafeas.v1.ListNoteOccurr"
+ "encesRequest\032\'.grafeas.v1.ListNoteOccurr"
+ "encesResponse\"?\202\323\344\223\002+\022)/v1/{name=project"
+ "s/*/notes/*}/occurrences\332A\013name,filter\032#"
+ "\312A containeranalysis.googleapis.comB|\n\ri"
+ "o.grafeas.v1P\001Z8google.golang.org/genpro"
+ "to/googleapis/grafeas/v1;grafeas\242\002\003GRA\352A"
+ "(\n\022grafeas.io/Project\022\022projects/{project"
+ "}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
Expand Down Expand Up @@ -518,6 +515,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
registry.add(com.google.api.AnnotationsProto.http);
registry.add(com.google.api.ClientProto.methodSignature);
registry.add(com.google.api.ResourceProto.resource);
registry.add(com.google.api.ResourceProto.resourceDefinition);
registry.add(com.google.api.ResourceProto.resourceReference);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
Expand Down
22 changes: 10 additions & 12 deletions src/main/proto/grafeas/v1/grafeas.proto
Expand Up @@ -37,6 +37,10 @@ option go_package = "google.golang.org/genproto/googleapis/grafeas/v1;grafeas";
option java_multiple_files = true;
option java_package = "io.grafeas.v1";
option objc_class_prefix = "GRA";
option (google.api.resource_definition) = {
type: "grafeas.io/Project"
pattern: "projects/{project}"
};

// [Grafeas](https://grafeas.io) API.
//
Expand Down Expand Up @@ -316,8 +320,7 @@ message ListOccurrencesRequest {
// `projects/[PROJECT_ID]`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference).type =
"cloudresourcemanager.googleapis.com/Project"
(google.api.resource_reference).type = "grafeas.io/Project"
];

// The filter expression.
Expand Down Expand Up @@ -357,8 +360,7 @@ message CreateOccurrenceRequest {
// the occurrence is to be created.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference).type =
"cloudresourcemanager.googleapis.com/Project"
(google.api.resource_reference).type = "grafeas.io/Project"
];
// The occurrence to create.
Occurrence occurrence = 2 [(google.api.field_behavior) = REQUIRED];
Expand Down Expand Up @@ -404,8 +406,7 @@ message ListNotesRequest {
// `projects/[PROJECT_ID]`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference).type =
"cloudresourcemanager.googleapis.com/Project"
(google.api.resource_reference).type = "grafeas.io/Project"
];

// The filter expression.
Expand Down Expand Up @@ -445,8 +446,7 @@ message CreateNoteRequest {
// the note is to be created.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference).type =
"cloudresourcemanager.googleapis.com/Project"
(google.api.resource_reference).type = "grafeas.io/Project"
];
// The ID to use for this note.
string note_id = 2 [(google.api.field_behavior) = REQUIRED];
Expand Down Expand Up @@ -498,8 +498,7 @@ message BatchCreateNotesRequest {
// the notes are to be created.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference).type =
"cloudresourcemanager.googleapis.com/Project"
(google.api.resource_reference).type = "grafeas.io/Project"
];

// The notes to create. Max allowed length is 1000.
Expand All @@ -518,8 +517,7 @@ message BatchCreateOccurrencesRequest {
// the occurrences are to be created.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference).type =
"cloudresourcemanager.googleapis.com/Project"
(google.api.resource_reference).type = "grafeas.io/Project"
];

// The occurrences to create. Max allowed length is 1000.
Expand Down

0 comments on commit 640401a

Please sign in to comment.