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 HttpFaultAbortOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.HttpFaultAbort) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * The HTTP status code used to abort the request. The value must be from 200 to 599 inclusive. For gRPC protocol, the gRPC status code is mapped to HTTP status code according to this mapping table. HTTP status 200 is mapped to gRPC status UNKNOWN. Injecting an OK status is currently not supported by Traffic Director. 31 * </pre> 32 * 33 * <code>optional uint32 http_status = 468949897;</code> 34 * 35 * @return Whether the httpStatus field is set. 36 */ hasHttpStatus()37 boolean hasHttpStatus(); 38 /** 39 * 40 * 41 * <pre> 42 * The HTTP status code used to abort the request. The value must be from 200 to 599 inclusive. For gRPC protocol, the gRPC status code is mapped to HTTP status code according to this mapping table. HTTP status 200 is mapped to gRPC status UNKNOWN. Injecting an OK status is currently not supported by Traffic Director. 43 * </pre> 44 * 45 * <code>optional uint32 http_status = 468949897;</code> 46 * 47 * @return The httpStatus. 48 */ getHttpStatus()49 int getHttpStatus(); 50 51 /** 52 * 53 * 54 * <pre> 55 * The percentage of traffic for connections, operations, or requests that is aborted as part of fault injection. The value must be from 0.0 to 100.0 inclusive. 56 * </pre> 57 * 58 * <code>optional double percentage = 151909018;</code> 59 * 60 * @return Whether the percentage field is set. 61 */ hasPercentage()62 boolean hasPercentage(); 63 /** 64 * 65 * 66 * <pre> 67 * The percentage of traffic for connections, operations, or requests that is aborted as part of fault injection. The value must be from 0.0 to 100.0 inclusive. 68 * </pre> 69 * 70 * <code>optional double percentage = 151909018;</code> 71 * 72 * @return The percentage. 73 */ getPercentage()74 double getPercentage(); 75 } 76