1 /* 2 * Copyright 2020 Google LLC 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 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/cloud/compute/v1/compute.proto 18 19 package com.google.cloud.compute.v1; 20 21 public interface WarningOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.Warning) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 31 * Check the Code enum for the list of possible values. 32 * </pre> 33 * 34 * <code>optional string code = 3059181;</code> 35 * 36 * @return Whether the code field is set. 37 */ hasCode()38 boolean hasCode(); 39 /** 40 * 41 * 42 * <pre> 43 * [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 44 * Check the Code enum for the list of possible values. 45 * </pre> 46 * 47 * <code>optional string code = 3059181;</code> 48 * 49 * @return The code. 50 */ getCode()51 java.lang.String getCode(); 52 /** 53 * 54 * 55 * <pre> 56 * [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 57 * Check the Code enum for the list of possible values. 58 * </pre> 59 * 60 * <code>optional string code = 3059181;</code> 61 * 62 * @return The bytes for code. 63 */ getCodeBytes()64 com.google.protobuf.ByteString getCodeBytes(); 65 66 /** 67 * 68 * 69 * <pre> 70 * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 71 * </pre> 72 * 73 * <code>repeated .google.cloud.compute.v1.Data data = 3076010;</code> 74 */ getDataList()75 java.util.List<com.google.cloud.compute.v1.Data> getDataList(); 76 /** 77 * 78 * 79 * <pre> 80 * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 81 * </pre> 82 * 83 * <code>repeated .google.cloud.compute.v1.Data data = 3076010;</code> 84 */ getData(int index)85 com.google.cloud.compute.v1.Data getData(int index); 86 /** 87 * 88 * 89 * <pre> 90 * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 91 * </pre> 92 * 93 * <code>repeated .google.cloud.compute.v1.Data data = 3076010;</code> 94 */ getDataCount()95 int getDataCount(); 96 /** 97 * 98 * 99 * <pre> 100 * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 101 * </pre> 102 * 103 * <code>repeated .google.cloud.compute.v1.Data data = 3076010;</code> 104 */ getDataOrBuilderList()105 java.util.List<? extends com.google.cloud.compute.v1.DataOrBuilder> getDataOrBuilderList(); 106 /** 107 * 108 * 109 * <pre> 110 * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 111 * </pre> 112 * 113 * <code>repeated .google.cloud.compute.v1.Data data = 3076010;</code> 114 */ getDataOrBuilder(int index)115 com.google.cloud.compute.v1.DataOrBuilder getDataOrBuilder(int index); 116 117 /** 118 * 119 * 120 * <pre> 121 * [Output Only] A human-readable description of the warning code. 122 * </pre> 123 * 124 * <code>optional string message = 418054151;</code> 125 * 126 * @return Whether the message field is set. 127 */ hasMessage()128 boolean hasMessage(); 129 /** 130 * 131 * 132 * <pre> 133 * [Output Only] A human-readable description of the warning code. 134 * </pre> 135 * 136 * <code>optional string message = 418054151;</code> 137 * 138 * @return The message. 139 */ getMessage()140 java.lang.String getMessage(); 141 /** 142 * 143 * 144 * <pre> 145 * [Output Only] A human-readable description of the warning code. 146 * </pre> 147 * 148 * <code>optional string message = 418054151;</code> 149 * 150 * @return The bytes for message. 151 */ getMessageBytes()152 com.google.protobuf.ByteString getMessageBytes(); 153 } 154