• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 BackendServiceLogConfigOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.BackendServiceLogConfig)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * Denotes whether to enable logging for the load balancer traffic served by this backend service. The default value is false.
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    * Denotes whether to enable logging for the load balancer traffic served by this backend service. The default value is false.
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    * This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM. Contains a list of optional fields you want to include in the logs. For example: serverInstance, serverGkeDetails.cluster, serverGkeDetails.pod.podNamespace
56    * </pre>
57    *
58    * <code>repeated string optional_fields = 528589944;</code>
59    *
60    * @return A list containing the optionalFields.
61    */
getOptionalFieldsList()62   java.util.List<java.lang.String> getOptionalFieldsList();
63   /**
64    *
65    *
66    * <pre>
67    * This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM. Contains a list of optional fields you want to include in the logs. For example: serverInstance, serverGkeDetails.cluster, serverGkeDetails.pod.podNamespace
68    * </pre>
69    *
70    * <code>repeated string optional_fields = 528589944;</code>
71    *
72    * @return The count of optionalFields.
73    */
getOptionalFieldsCount()74   int getOptionalFieldsCount();
75   /**
76    *
77    *
78    * <pre>
79    * This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM. Contains a list of optional fields you want to include in the logs. For example: serverInstance, serverGkeDetails.cluster, serverGkeDetails.pod.podNamespace
80    * </pre>
81    *
82    * <code>repeated string optional_fields = 528589944;</code>
83    *
84    * @param index The index of the element to return.
85    * @return The optionalFields at the given index.
86    */
getOptionalFields(int index)87   java.lang.String getOptionalFields(int index);
88   /**
89    *
90    *
91    * <pre>
92    * This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM. Contains a list of optional fields you want to include in the logs. For example: serverInstance, serverGkeDetails.cluster, serverGkeDetails.pod.podNamespace
93    * </pre>
94    *
95    * <code>repeated string optional_fields = 528589944;</code>
96    *
97    * @param index The index of the value to return.
98    * @return The bytes of the optionalFields at the given index.
99    */
getOptionalFieldsBytes(int index)100   com.google.protobuf.ByteString getOptionalFieldsBytes(int index);
101 
102   /**
103    *
104    *
105    * <pre>
106    * This field can only be specified if logging is enabled for this backend service. Configures whether all, none or a subset of optional fields should be added to the reported logs. One of [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL.
107    * Check the OptionalMode enum for the list of possible values.
108    * </pre>
109    *
110    * <code>optional string optional_mode = 128697122;</code>
111    *
112    * @return Whether the optionalMode field is set.
113    */
hasOptionalMode()114   boolean hasOptionalMode();
115   /**
116    *
117    *
118    * <pre>
119    * This field can only be specified if logging is enabled for this backend service. Configures whether all, none or a subset of optional fields should be added to the reported logs. One of [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL.
120    * Check the OptionalMode enum for the list of possible values.
121    * </pre>
122    *
123    * <code>optional string optional_mode = 128697122;</code>
124    *
125    * @return The optionalMode.
126    */
getOptionalMode()127   java.lang.String getOptionalMode();
128   /**
129    *
130    *
131    * <pre>
132    * This field can only be specified if logging is enabled for this backend service. Configures whether all, none or a subset of optional fields should be added to the reported logs. One of [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL.
133    * Check the OptionalMode enum for the list of possible values.
134    * </pre>
135    *
136    * <code>optional string optional_mode = 128697122;</code>
137    *
138    * @return The bytes for optionalMode.
139    */
getOptionalModeBytes()140   com.google.protobuf.ByteString getOptionalModeBytes();
141 
142   /**
143    *
144    *
145    * <pre>
146    * This field can only be specified if logging is enabled for this backend service. The value of the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 1.0.
147    * </pre>
148    *
149    * <code>optional float sample_rate = 153193045;</code>
150    *
151    * @return Whether the sampleRate field is set.
152    */
hasSampleRate()153   boolean hasSampleRate();
154   /**
155    *
156    *
157    * <pre>
158    * This field can only be specified if logging is enabled for this backend service. The value of the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 1.0.
159    * </pre>
160    *
161    * <code>optional float sample_rate = 153193045;</code>
162    *
163    * @return The sampleRate.
164    */
getSampleRate()165   float getSampleRate();
166 }
167