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 RouterNatLogConfigOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.RouterNatLogConfig) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * Indicates whether or not to export logs. This is false by default. 31 * </pre> 32 * 33 * <code>optional bool enable = 311764355;</code> 34 * 35 * @return Whether the enable field is set. 36 */ hasEnable()37 boolean hasEnable(); 38 /** 39 * 40 * 41 * <pre> 42 * Indicates whether or not to export logs. This is false by default. 43 * </pre> 44 * 45 * <code>optional bool enable = 311764355;</code> 46 * 47 * @return The enable. 48 */ getEnable()49 boolean getEnable(); 50 51 /** 52 * 53 * 54 * <pre> 55 * Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. This option can take one of the following values: - ERRORS_ONLY: Export logs only for connection failures. - TRANSLATIONS_ONLY: Export logs only for successful connections. - ALL: Export logs for all connections, successful and unsuccessful. 56 * Check the Filter enum for the list of possible values. 57 * </pre> 58 * 59 * <code>optional string filter = 336120696;</code> 60 * 61 * @return Whether the filter field is set. 62 */ hasFilter()63 boolean hasFilter(); 64 /** 65 * 66 * 67 * <pre> 68 * Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. This option can take one of the following values: - ERRORS_ONLY: Export logs only for connection failures. - TRANSLATIONS_ONLY: Export logs only for successful connections. - ALL: Export logs for all connections, successful and unsuccessful. 69 * Check the Filter enum for the list of possible values. 70 * </pre> 71 * 72 * <code>optional string filter = 336120696;</code> 73 * 74 * @return The filter. 75 */ getFilter()76 java.lang.String getFilter(); 77 /** 78 * 79 * 80 * <pre> 81 * Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. This option can take one of the following values: - ERRORS_ONLY: Export logs only for connection failures. - TRANSLATIONS_ONLY: Export logs only for successful connections. - ALL: Export logs for all connections, successful and unsuccessful. 82 * Check the Filter enum for the list of possible values. 83 * </pre> 84 * 85 * <code>optional string filter = 336120696;</code> 86 * 87 * @return The bytes for filter. 88 */ getFilterBytes()89 com.google.protobuf.ByteString getFilterBytes(); 90 } 91