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 AllowedOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.Allowed) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp) or the IP protocol number. 31 * </pre> 32 * 33 * <code>optional string I_p_protocol = 488094525;</code> 34 * 35 * @return Whether the iPProtocol field is set. 36 */ hasIPProtocol()37 boolean hasIPProtocol(); 38 /** 39 * 40 * 41 * <pre> 42 * The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp) or the IP protocol number. 43 * </pre> 44 * 45 * <code>optional string I_p_protocol = 488094525;</code> 46 * 47 * @return The iPProtocol. 48 */ getIPProtocol()49 java.lang.String getIPProtocol(); 50 /** 51 * 52 * 53 * <pre> 54 * The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp) or the IP protocol number. 55 * </pre> 56 * 57 * <code>optional string I_p_protocol = 488094525;</code> 58 * 59 * @return The bytes for iPProtocol. 60 */ getIPProtocolBytes()61 com.google.protobuf.ByteString getIPProtocolBytes(); 62 63 /** 64 * 65 * 66 * <pre> 67 * An optional list of ports to which this rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. 68 * </pre> 69 * 70 * <code>repeated string ports = 106854418;</code> 71 * 72 * @return A list containing the ports. 73 */ getPortsList()74 java.util.List<java.lang.String> getPortsList(); 75 /** 76 * 77 * 78 * <pre> 79 * An optional list of ports to which this rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. 80 * </pre> 81 * 82 * <code>repeated string ports = 106854418;</code> 83 * 84 * @return The count of ports. 85 */ getPortsCount()86 int getPortsCount(); 87 /** 88 * 89 * 90 * <pre> 91 * An optional list of ports to which this rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. 92 * </pre> 93 * 94 * <code>repeated string ports = 106854418;</code> 95 * 96 * @param index The index of the element to return. 97 * @return The ports at the given index. 98 */ getPorts(int index)99 java.lang.String getPorts(int index); 100 /** 101 * 102 * 103 * <pre> 104 * An optional list of ports to which this rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. 105 * </pre> 106 * 107 * <code>repeated string ports = 106854418;</code> 108 * 109 * @param index The index of the value to return. 110 * @return The bytes of the ports at the given index. 111 */ getPortsBytes(int index)112 com.google.protobuf.ByteString getPortsBytes(int index); 113 } 114