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 PacketMirroringFilterOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.PacketMirroringFilter) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored. 31 * </pre> 32 * 33 * <code>repeated string I_p_protocols = 98544854;</code> 34 * 35 * @return A list containing the iPProtocols. 36 */ getIPProtocolsList()37 java.util.List<java.lang.String> getIPProtocolsList(); 38 /** 39 * 40 * 41 * <pre> 42 * Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored. 43 * </pre> 44 * 45 * <code>repeated string I_p_protocols = 98544854;</code> 46 * 47 * @return The count of iPProtocols. 48 */ getIPProtocolsCount()49 int getIPProtocolsCount(); 50 /** 51 * 52 * 53 * <pre> 54 * Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored. 55 * </pre> 56 * 57 * <code>repeated string I_p_protocols = 98544854;</code> 58 * 59 * @param index The index of the element to return. 60 * @return The iPProtocols at the given index. 61 */ getIPProtocols(int index)62 java.lang.String getIPProtocols(int index); 63 /** 64 * 65 * 66 * <pre> 67 * Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored. 68 * </pre> 69 * 70 * <code>repeated string I_p_protocols = 98544854;</code> 71 * 72 * @param index The index of the value to return. 73 * @return The bytes of the iPProtocols at the given index. 74 */ getIPProtocolsBytes(int index)75 com.google.protobuf.ByteString getIPProtocolsBytes(int index); 76 77 /** 78 * 79 * 80 * <pre> 81 * IP CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported. If no ranges are specified, all traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored. 82 * </pre> 83 * 84 * <code>repeated string cidr_ranges = 487901697;</code> 85 * 86 * @return A list containing the cidrRanges. 87 */ getCidrRangesList()88 java.util.List<java.lang.String> getCidrRangesList(); 89 /** 90 * 91 * 92 * <pre> 93 * IP CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported. If no ranges are specified, all traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored. 94 * </pre> 95 * 96 * <code>repeated string cidr_ranges = 487901697;</code> 97 * 98 * @return The count of cidrRanges. 99 */ getCidrRangesCount()100 int getCidrRangesCount(); 101 /** 102 * 103 * 104 * <pre> 105 * IP CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported. If no ranges are specified, all traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored. 106 * </pre> 107 * 108 * <code>repeated string cidr_ranges = 487901697;</code> 109 * 110 * @param index The index of the element to return. 111 * @return The cidrRanges at the given index. 112 */ getCidrRanges(int index)113 java.lang.String getCidrRanges(int index); 114 /** 115 * 116 * 117 * <pre> 118 * IP CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported. If no ranges are specified, all traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored. 119 * </pre> 120 * 121 * <code>repeated string cidr_ranges = 487901697;</code> 122 * 123 * @param index The index of the value to return. 124 * @return The bytes of the cidrRanges at the given index. 125 */ getCidrRangesBytes(int index)126 com.google.protobuf.ByteString getCidrRangesBytes(int index); 127 128 /** 129 * 130 * 131 * <pre> 132 * Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH. 133 * Check the Direction enum for the list of possible values. 134 * </pre> 135 * 136 * <code>optional string direction = 111150975;</code> 137 * 138 * @return Whether the direction field is set. 139 */ hasDirection()140 boolean hasDirection(); 141 /** 142 * 143 * 144 * <pre> 145 * Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH. 146 * Check the Direction enum for the list of possible values. 147 * </pre> 148 * 149 * <code>optional string direction = 111150975;</code> 150 * 151 * @return The direction. 152 */ getDirection()153 java.lang.String getDirection(); 154 /** 155 * 156 * 157 * <pre> 158 * Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH. 159 * Check the Direction enum for the list of possible values. 160 * </pre> 161 * 162 * <code>optional string direction = 111150975;</code> 163 * 164 * @return The bytes for direction. 165 */ getDirectionBytes()166 com.google.protobuf.ByteString getDirectionBytes(); 167 } 168