1 /* 2 * Copyright 2019 The Grafeas Authors. All rights reserved. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 // Generated by the protocol buffer compiler. DO NOT EDIT! 18 // source: grafeas/v1/provenance.proto 19 20 package io.grafeas.v1; 21 22 public interface SourceContextOrBuilder 23 extends 24 // @@protoc_insertion_point(interface_extends:grafeas.v1.SourceContext) 25 com.google.protobuf.MessageOrBuilder { 26 27 /** 28 * 29 * 30 * <pre> 31 * A SourceContext referring to a revision in a Google Cloud Source Repo. 32 * </pre> 33 * 34 * <code>.grafeas.v1.CloudRepoSourceContext cloud_repo = 1;</code> 35 * 36 * @return Whether the cloudRepo field is set. 37 */ hasCloudRepo()38 boolean hasCloudRepo(); 39 /** 40 * 41 * 42 * <pre> 43 * A SourceContext referring to a revision in a Google Cloud Source Repo. 44 * </pre> 45 * 46 * <code>.grafeas.v1.CloudRepoSourceContext cloud_repo = 1;</code> 47 * 48 * @return The cloudRepo. 49 */ getCloudRepo()50 io.grafeas.v1.CloudRepoSourceContext getCloudRepo(); 51 /** 52 * 53 * 54 * <pre> 55 * A SourceContext referring to a revision in a Google Cloud Source Repo. 56 * </pre> 57 * 58 * <code>.grafeas.v1.CloudRepoSourceContext cloud_repo = 1;</code> 59 */ getCloudRepoOrBuilder()60 io.grafeas.v1.CloudRepoSourceContextOrBuilder getCloudRepoOrBuilder(); 61 62 /** 63 * 64 * 65 * <pre> 66 * A SourceContext referring to a Gerrit project. 67 * </pre> 68 * 69 * <code>.grafeas.v1.GerritSourceContext gerrit = 2;</code> 70 * 71 * @return Whether the gerrit field is set. 72 */ hasGerrit()73 boolean hasGerrit(); 74 /** 75 * 76 * 77 * <pre> 78 * A SourceContext referring to a Gerrit project. 79 * </pre> 80 * 81 * <code>.grafeas.v1.GerritSourceContext gerrit = 2;</code> 82 * 83 * @return The gerrit. 84 */ getGerrit()85 io.grafeas.v1.GerritSourceContext getGerrit(); 86 /** 87 * 88 * 89 * <pre> 90 * A SourceContext referring to a Gerrit project. 91 * </pre> 92 * 93 * <code>.grafeas.v1.GerritSourceContext gerrit = 2;</code> 94 */ getGerritOrBuilder()95 io.grafeas.v1.GerritSourceContextOrBuilder getGerritOrBuilder(); 96 97 /** 98 * 99 * 100 * <pre> 101 * A SourceContext referring to any third party Git repo (e.g., GitHub). 102 * </pre> 103 * 104 * <code>.grafeas.v1.GitSourceContext git = 3;</code> 105 * 106 * @return Whether the git field is set. 107 */ hasGit()108 boolean hasGit(); 109 /** 110 * 111 * 112 * <pre> 113 * A SourceContext referring to any third party Git repo (e.g., GitHub). 114 * </pre> 115 * 116 * <code>.grafeas.v1.GitSourceContext git = 3;</code> 117 * 118 * @return The git. 119 */ getGit()120 io.grafeas.v1.GitSourceContext getGit(); 121 /** 122 * 123 * 124 * <pre> 125 * A SourceContext referring to any third party Git repo (e.g., GitHub). 126 * </pre> 127 * 128 * <code>.grafeas.v1.GitSourceContext git = 3;</code> 129 */ getGitOrBuilder()130 io.grafeas.v1.GitSourceContextOrBuilder getGitOrBuilder(); 131 132 /** 133 * 134 * 135 * <pre> 136 * Labels with user defined metadata. 137 * </pre> 138 * 139 * <code>map<string, string> labels = 4;</code> 140 */ getLabelsCount()141 int getLabelsCount(); 142 /** 143 * 144 * 145 * <pre> 146 * Labels with user defined metadata. 147 * </pre> 148 * 149 * <code>map<string, string> labels = 4;</code> 150 */ containsLabels(java.lang.String key)151 boolean containsLabels(java.lang.String key); 152 /** Use {@link #getLabelsMap()} instead. */ 153 @java.lang.Deprecated getLabels()154 java.util.Map<java.lang.String, java.lang.String> getLabels(); 155 /** 156 * 157 * 158 * <pre> 159 * Labels with user defined metadata. 160 * </pre> 161 * 162 * <code>map<string, string> labels = 4;</code> 163 */ getLabelsMap()164 java.util.Map<java.lang.String, java.lang.String> getLabelsMap(); 165 /** 166 * 167 * 168 * <pre> 169 * Labels with user defined metadata. 170 * </pre> 171 * 172 * <code>map<string, string> labels = 4;</code> 173 */ 174 /* nullable */ getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)175 java.lang.String getLabelsOrDefault( 176 java.lang.String key, 177 /* nullable */ 178 java.lang.String defaultValue); 179 /** 180 * 181 * 182 * <pre> 183 * Labels with user defined metadata. 184 * </pre> 185 * 186 * <code>map<string, string> labels = 4;</code> 187 */ getLabelsOrThrow(java.lang.String key)188 java.lang.String getLabelsOrThrow(java.lang.String key); 189 getContextCase()190 public io.grafeas.v1.SourceContext.ContextCase getContextCase(); 191 } 192