/* * Copyright 2019 The Grafeas Authors. All rights reserved. * * 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. */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: grafeas/v1/provenance.proto package io.grafeas.v1; public interface SourceContextOrBuilder extends // @@protoc_insertion_point(interface_extends:grafeas.v1.SourceContext) com.google.protobuf.MessageOrBuilder { /** * * *
* A SourceContext referring to a revision in a Google Cloud Source Repo. ** *
.grafeas.v1.CloudRepoSourceContext cloud_repo = 1;
*
* @return Whether the cloudRepo field is set.
*/
boolean hasCloudRepo();
/**
*
*
* * A SourceContext referring to a revision in a Google Cloud Source Repo. ** *
.grafeas.v1.CloudRepoSourceContext cloud_repo = 1;
*
* @return The cloudRepo.
*/
io.grafeas.v1.CloudRepoSourceContext getCloudRepo();
/**
*
*
* * A SourceContext referring to a revision in a Google Cloud Source Repo. ** *
.grafeas.v1.CloudRepoSourceContext cloud_repo = 1;
*/
io.grafeas.v1.CloudRepoSourceContextOrBuilder getCloudRepoOrBuilder();
/**
*
*
* * A SourceContext referring to a Gerrit project. ** *
.grafeas.v1.GerritSourceContext gerrit = 2;
*
* @return Whether the gerrit field is set.
*/
boolean hasGerrit();
/**
*
*
* * A SourceContext referring to a Gerrit project. ** *
.grafeas.v1.GerritSourceContext gerrit = 2;
*
* @return The gerrit.
*/
io.grafeas.v1.GerritSourceContext getGerrit();
/**
*
*
* * A SourceContext referring to a Gerrit project. ** *
.grafeas.v1.GerritSourceContext gerrit = 2;
*/
io.grafeas.v1.GerritSourceContextOrBuilder getGerritOrBuilder();
/**
*
*
* * A SourceContext referring to any third party Git repo (e.g., GitHub). ** *
.grafeas.v1.GitSourceContext git = 3;
*
* @return Whether the git field is set.
*/
boolean hasGit();
/**
*
*
* * A SourceContext referring to any third party Git repo (e.g., GitHub). ** *
.grafeas.v1.GitSourceContext git = 3;
*
* @return The git.
*/
io.grafeas.v1.GitSourceContext getGit();
/**
*
*
* * A SourceContext referring to any third party Git repo (e.g., GitHub). ** *
.grafeas.v1.GitSourceContext git = 3;
*/
io.grafeas.v1.GitSourceContextOrBuilder getGitOrBuilder();
/**
*
*
* * Labels with user defined metadata. ** *
map<string, string> labels = 4;
*/
int getLabelsCount();
/**
*
*
* * Labels with user defined metadata. ** *
map<string, string> labels = 4;
*/
boolean containsLabels(java.lang.String key);
/** Use {@link #getLabelsMap()} instead. */
@java.lang.Deprecated
java.util.Map* Labels with user defined metadata. ** *
map<string, string> labels = 4;
*/
java.util.Map* Labels with user defined metadata. ** *
map<string, string> labels = 4;
*/
/* nullable */
java.lang.String getLabelsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue);
/**
*
*
* * Labels with user defined metadata. ** *
map<string, string> labels = 4;
*/
java.lang.String getLabelsOrThrow(java.lang.String key);
public io.grafeas.v1.SourceContext.ContextCase getContextCase();
}