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 HostRuleOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.HostRule) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * An optional description of this resource. Provide this property when you create the resource. 31 * </pre> 32 * 33 * <code>optional string description = 422937596;</code> 34 * 35 * @return Whether the description field is set. 36 */ hasDescription()37 boolean hasDescription(); 38 /** 39 * 40 * 41 * <pre> 42 * An optional description of this resource. Provide this property when you create the resource. 43 * </pre> 44 * 45 * <code>optional string description = 422937596;</code> 46 * 47 * @return The description. 48 */ getDescription()49 java.lang.String getDescription(); 50 /** 51 * 52 * 53 * <pre> 54 * An optional description of this resource. Provide this property when you create the resource. 55 * </pre> 56 * 57 * <code>optional string description = 422937596;</code> 58 * 59 * @return The bytes for description. 60 */ getDescriptionBytes()61 com.google.protobuf.ByteString getDescriptionBytes(); 62 63 /** 64 * 65 * 66 * <pre> 67 * The list of host patterns to match. They must be valid hostnames with optional port numbers in the format host:port. * matches any string of ([a-z0-9-.]*). In that case, * must be the first character, and if followed by anything, the immediate following character must be either - or .. * based matching is not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. 68 * </pre> 69 * 70 * <code>repeated string hosts = 99467211;</code> 71 * 72 * @return A list containing the hosts. 73 */ getHostsList()74 java.util.List<java.lang.String> getHostsList(); 75 /** 76 * 77 * 78 * <pre> 79 * The list of host patterns to match. They must be valid hostnames with optional port numbers in the format host:port. * matches any string of ([a-z0-9-.]*). In that case, * must be the first character, and if followed by anything, the immediate following character must be either - or .. * based matching is not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. 80 * </pre> 81 * 82 * <code>repeated string hosts = 99467211;</code> 83 * 84 * @return The count of hosts. 85 */ getHostsCount()86 int getHostsCount(); 87 /** 88 * 89 * 90 * <pre> 91 * The list of host patterns to match. They must be valid hostnames with optional port numbers in the format host:port. * matches any string of ([a-z0-9-.]*). In that case, * must be the first character, and if followed by anything, the immediate following character must be either - or .. * based matching is not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. 92 * </pre> 93 * 94 * <code>repeated string hosts = 99467211;</code> 95 * 96 * @param index The index of the element to return. 97 * @return The hosts at the given index. 98 */ getHosts(int index)99 java.lang.String getHosts(int index); 100 /** 101 * 102 * 103 * <pre> 104 * The list of host patterns to match. They must be valid hostnames with optional port numbers in the format host:port. * matches any string of ([a-z0-9-.]*). In that case, * must be the first character, and if followed by anything, the immediate following character must be either - or .. * based matching is not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. 105 * </pre> 106 * 107 * <code>repeated string hosts = 99467211;</code> 108 * 109 * @param index The index of the value to return. 110 * @return The bytes of the hosts at the given index. 111 */ getHostsBytes(int index)112 com.google.protobuf.ByteString getHostsBytes(int index); 113 114 /** 115 * 116 * 117 * <pre> 118 * The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion. 119 * </pre> 120 * 121 * <code>optional string path_matcher = 337813272;</code> 122 * 123 * @return Whether the pathMatcher field is set. 124 */ hasPathMatcher()125 boolean hasPathMatcher(); 126 /** 127 * 128 * 129 * <pre> 130 * The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion. 131 * </pre> 132 * 133 * <code>optional string path_matcher = 337813272;</code> 134 * 135 * @return The pathMatcher. 136 */ getPathMatcher()137 java.lang.String getPathMatcher(); 138 /** 139 * 140 * 141 * <pre> 142 * The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion. 143 * </pre> 144 * 145 * <code>optional string path_matcher = 337813272;</code> 146 * 147 * @return The bytes for pathMatcher. 148 */ getPathMatcherBytes()149 com.google.protobuf.ByteString getPathMatcherBytes(); 150 } 151