• 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 RouterBgpOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.RouterBgp)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or CUSTOM.
31    * Check the AdvertiseMode enum for the list of possible values.
32    * </pre>
33    *
34    * <code>optional string advertise_mode = 312134331;</code>
35    *
36    * @return Whether the advertiseMode field is set.
37    */
hasAdvertiseMode()38   boolean hasAdvertiseMode();
39   /**
40    *
41    *
42    * <pre>
43    * User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or CUSTOM.
44    * Check the AdvertiseMode enum for the list of possible values.
45    * </pre>
46    *
47    * <code>optional string advertise_mode = 312134331;</code>
48    *
49    * @return The advertiseMode.
50    */
getAdvertiseMode()51   java.lang.String getAdvertiseMode();
52   /**
53    *
54    *
55    * <pre>
56    * User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or CUSTOM.
57    * Check the AdvertiseMode enum for the list of possible values.
58    * </pre>
59    *
60    * <code>optional string advertise_mode = 312134331;</code>
61    *
62    * @return The bytes for advertiseMode.
63    */
getAdvertiseModeBytes()64   com.google.protobuf.ByteString getAdvertiseModeBytes();
65 
66   /**
67    *
68    *
69    * <pre>
70    * User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups.
71    * Check the AdvertisedGroups enum for the list of possible values.
72    * </pre>
73    *
74    * <code>repeated string advertised_groups = 21065526;</code>
75    *
76    * @return A list containing the advertisedGroups.
77    */
getAdvertisedGroupsList()78   java.util.List<java.lang.String> getAdvertisedGroupsList();
79   /**
80    *
81    *
82    * <pre>
83    * User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups.
84    * Check the AdvertisedGroups enum for the list of possible values.
85    * </pre>
86    *
87    * <code>repeated string advertised_groups = 21065526;</code>
88    *
89    * @return The count of advertisedGroups.
90    */
getAdvertisedGroupsCount()91   int getAdvertisedGroupsCount();
92   /**
93    *
94    *
95    * <pre>
96    * User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups.
97    * Check the AdvertisedGroups enum for the list of possible values.
98    * </pre>
99    *
100    * <code>repeated string advertised_groups = 21065526;</code>
101    *
102    * @param index The index of the element to return.
103    * @return The advertisedGroups at the given index.
104    */
getAdvertisedGroups(int index)105   java.lang.String getAdvertisedGroups(int index);
106   /**
107    *
108    *
109    * <pre>
110    * User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups.
111    * Check the AdvertisedGroups enum for the list of possible values.
112    * </pre>
113    *
114    * <code>repeated string advertised_groups = 21065526;</code>
115    *
116    * @param index The index of the value to return.
117    * @return The bytes of the advertisedGroups at the given index.
118    */
getAdvertisedGroupsBytes(int index)119   com.google.protobuf.ByteString getAdvertisedGroupsBytes(int index);
120 
121   /**
122    *
123    *
124    * <pre>
125    * User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP ranges will be advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges.
126    * </pre>
127    *
128    * <code>
129    * repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932;
130    * </code>
131    */
getAdvertisedIpRangesList()132   java.util.List<com.google.cloud.compute.v1.RouterAdvertisedIpRange> getAdvertisedIpRangesList();
133   /**
134    *
135    *
136    * <pre>
137    * User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP ranges will be advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges.
138    * </pre>
139    *
140    * <code>
141    * repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932;
142    * </code>
143    */
getAdvertisedIpRanges(int index)144   com.google.cloud.compute.v1.RouterAdvertisedIpRange getAdvertisedIpRanges(int index);
145   /**
146    *
147    *
148    * <pre>
149    * User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP ranges will be advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges.
150    * </pre>
151    *
152    * <code>
153    * repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932;
154    * </code>
155    */
getAdvertisedIpRangesCount()156   int getAdvertisedIpRangesCount();
157   /**
158    *
159    *
160    * <pre>
161    * User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP ranges will be advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges.
162    * </pre>
163    *
164    * <code>
165    * repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932;
166    * </code>
167    */
168   java.util.List<? extends com.google.cloud.compute.v1.RouterAdvertisedIpRangeOrBuilder>
getAdvertisedIpRangesOrBuilderList()169       getAdvertisedIpRangesOrBuilderList();
170   /**
171    *
172    *
173    * <pre>
174    * User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP ranges will be advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges.
175    * </pre>
176    *
177    * <code>
178    * repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932;
179    * </code>
180    */
getAdvertisedIpRangesOrBuilder( int index)181   com.google.cloud.compute.v1.RouterAdvertisedIpRangeOrBuilder getAdvertisedIpRangesOrBuilder(
182       int index);
183 
184   /**
185    *
186    *
187    * <pre>
188    * Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN.
189    * </pre>
190    *
191    * <code>optional uint32 asn = 96892;</code>
192    *
193    * @return Whether the asn field is set.
194    */
hasAsn()195   boolean hasAsn();
196   /**
197    *
198    *
199    * <pre>
200    * Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN.
201    * </pre>
202    *
203    * <code>optional uint32 asn = 96892;</code>
204    *
205    * @return The asn.
206    */
getAsn()207   int getAsn();
208 
209   /**
210    *
211    *
212    * <pre>
213    * The interval in seconds between BGP keepalive messages that are sent to the peer. Hold time is three times the interval at which keepalive messages are sent, and the hold time is the maximum number of seconds allowed to elapse between successive keepalive messages that BGP receives from a peer. BGP will use the smaller of either the local hold time value or the peer's hold time value as the hold time for the BGP connection between the two peers. If set, this value must be between 20 and 60. The default is 20.
214    * </pre>
215    *
216    * <code>optional uint32 keepalive_interval = 276771516;</code>
217    *
218    * @return Whether the keepaliveInterval field is set.
219    */
hasKeepaliveInterval()220   boolean hasKeepaliveInterval();
221   /**
222    *
223    *
224    * <pre>
225    * The interval in seconds between BGP keepalive messages that are sent to the peer. Hold time is three times the interval at which keepalive messages are sent, and the hold time is the maximum number of seconds allowed to elapse between successive keepalive messages that BGP receives from a peer. BGP will use the smaller of either the local hold time value or the peer's hold time value as the hold time for the BGP connection between the two peers. If set, this value must be between 20 and 60. The default is 20.
226    * </pre>
227    *
228    * <code>optional uint32 keepalive_interval = 276771516;</code>
229    *
230    * @return The keepaliveInterval.
231    */
getKeepaliveInterval()232   int getKeepaliveInterval();
233 }
234