• 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 NetworkOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.Network)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.
31    * </pre>
32    *
33    * <code>optional string I_pv4_range = 59234358;</code>
34    *
35    * @return Whether the iPv4Range field is set.
36    */
hasIPv4Range()37   boolean hasIPv4Range();
38   /**
39    *
40    *
41    * <pre>
42    * Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.
43    * </pre>
44    *
45    * <code>optional string I_pv4_range = 59234358;</code>
46    *
47    * @return The iPv4Range.
48    */
getIPv4Range()49   java.lang.String getIPv4Range();
50   /**
51    *
52    *
53    * <pre>
54    * Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.
55    * </pre>
56    *
57    * <code>optional string I_pv4_range = 59234358;</code>
58    *
59    * @return The bytes for iPv4Range.
60    */
getIPv4RangeBytes()61   com.google.protobuf.ByteString getIPv4RangeBytes();
62 
63   /**
64    *
65    *
66    * <pre>
67    * Must be set to create a VPC network. If not set, a legacy network is created. When set to true, the VPC network is created in auto mode. When set to false, the VPC network is created in custom mode. An auto mode VPC network starts with one subnet per region. Each subnet has a predetermined range as described in Auto mode VPC network IP ranges. For custom mode VPC networks, you can add subnets using the subnetworks insert method.
68    * </pre>
69    *
70    * <code>optional bool auto_create_subnetworks = 256156690;</code>
71    *
72    * @return Whether the autoCreateSubnetworks field is set.
73    */
hasAutoCreateSubnetworks()74   boolean hasAutoCreateSubnetworks();
75   /**
76    *
77    *
78    * <pre>
79    * Must be set to create a VPC network. If not set, a legacy network is created. When set to true, the VPC network is created in auto mode. When set to false, the VPC network is created in custom mode. An auto mode VPC network starts with one subnet per region. Each subnet has a predetermined range as described in Auto mode VPC network IP ranges. For custom mode VPC networks, you can add subnets using the subnetworks insert method.
80    * </pre>
81    *
82    * <code>optional bool auto_create_subnetworks = 256156690;</code>
83    *
84    * @return The autoCreateSubnetworks.
85    */
getAutoCreateSubnetworks()86   boolean getAutoCreateSubnetworks();
87 
88   /**
89    *
90    *
91    * <pre>
92    * [Output Only] Creation timestamp in RFC3339 text format.
93    * </pre>
94    *
95    * <code>optional string creation_timestamp = 30525366;</code>
96    *
97    * @return Whether the creationTimestamp field is set.
98    */
hasCreationTimestamp()99   boolean hasCreationTimestamp();
100   /**
101    *
102    *
103    * <pre>
104    * [Output Only] Creation timestamp in RFC3339 text format.
105    * </pre>
106    *
107    * <code>optional string creation_timestamp = 30525366;</code>
108    *
109    * @return The creationTimestamp.
110    */
getCreationTimestamp()111   java.lang.String getCreationTimestamp();
112   /**
113    *
114    *
115    * <pre>
116    * [Output Only] Creation timestamp in RFC3339 text format.
117    * </pre>
118    *
119    * <code>optional string creation_timestamp = 30525366;</code>
120    *
121    * @return The bytes for creationTimestamp.
122    */
getCreationTimestampBytes()123   com.google.protobuf.ByteString getCreationTimestampBytes();
124 
125   /**
126    *
127    *
128    * <pre>
129    * An optional description of this resource. Provide this field when you create the resource.
130    * </pre>
131    *
132    * <code>optional string description = 422937596;</code>
133    *
134    * @return Whether the description field is set.
135    */
hasDescription()136   boolean hasDescription();
137   /**
138    *
139    *
140    * <pre>
141    * An optional description of this resource. Provide this field when you create the resource.
142    * </pre>
143    *
144    * <code>optional string description = 422937596;</code>
145    *
146    * @return The description.
147    */
getDescription()148   java.lang.String getDescription();
149   /**
150    *
151    *
152    * <pre>
153    * An optional description of this resource. Provide this field when you create the resource.
154    * </pre>
155    *
156    * <code>optional string description = 422937596;</code>
157    *
158    * @return The bytes for description.
159    */
getDescriptionBytes()160   com.google.protobuf.ByteString getDescriptionBytes();
161 
162   /**
163    *
164    *
165    * <pre>
166    * Enable ULA internal ipv6 on this network. Enabling this feature will assign a /48 from google defined ULA prefix fd20::/20. .
167    * </pre>
168    *
169    * <code>optional bool enable_ula_internal_ipv6 = 423757720;</code>
170    *
171    * @return Whether the enableUlaInternalIpv6 field is set.
172    */
hasEnableUlaInternalIpv6()173   boolean hasEnableUlaInternalIpv6();
174   /**
175    *
176    *
177    * <pre>
178    * Enable ULA internal ipv6 on this network. Enabling this feature will assign a /48 from google defined ULA prefix fd20::/20. .
179    * </pre>
180    *
181    * <code>optional bool enable_ula_internal_ipv6 = 423757720;</code>
182    *
183    * @return The enableUlaInternalIpv6.
184    */
getEnableUlaInternalIpv6()185   boolean getEnableUlaInternalIpv6();
186 
187   /**
188    *
189    *
190    * <pre>
191    * [Output Only] URL of the firewall policy the network is associated with.
192    * </pre>
193    *
194    * <code>optional string firewall_policy = 498173265;</code>
195    *
196    * @return Whether the firewallPolicy field is set.
197    */
hasFirewallPolicy()198   boolean hasFirewallPolicy();
199   /**
200    *
201    *
202    * <pre>
203    * [Output Only] URL of the firewall policy the network is associated with.
204    * </pre>
205    *
206    * <code>optional string firewall_policy = 498173265;</code>
207    *
208    * @return The firewallPolicy.
209    */
getFirewallPolicy()210   java.lang.String getFirewallPolicy();
211   /**
212    *
213    *
214    * <pre>
215    * [Output Only] URL of the firewall policy the network is associated with.
216    * </pre>
217    *
218    * <code>optional string firewall_policy = 498173265;</code>
219    *
220    * @return The bytes for firewallPolicy.
221    */
getFirewallPolicyBytes()222   com.google.protobuf.ByteString getFirewallPolicyBytes();
223 
224   /**
225    *
226    *
227    * <pre>
228    * [Output Only] The gateway address for default routing out of the network, selected by GCP.
229    * </pre>
230    *
231    * <code>optional string gateway_i_pv4 = 178678877;</code>
232    *
233    * @return Whether the gatewayIPv4 field is set.
234    */
hasGatewayIPv4()235   boolean hasGatewayIPv4();
236   /**
237    *
238    *
239    * <pre>
240    * [Output Only] The gateway address for default routing out of the network, selected by GCP.
241    * </pre>
242    *
243    * <code>optional string gateway_i_pv4 = 178678877;</code>
244    *
245    * @return The gatewayIPv4.
246    */
getGatewayIPv4()247   java.lang.String getGatewayIPv4();
248   /**
249    *
250    *
251    * <pre>
252    * [Output Only] The gateway address for default routing out of the network, selected by GCP.
253    * </pre>
254    *
255    * <code>optional string gateway_i_pv4 = 178678877;</code>
256    *
257    * @return The bytes for gatewayIPv4.
258    */
getGatewayIPv4Bytes()259   com.google.protobuf.ByteString getGatewayIPv4Bytes();
260 
261   /**
262    *
263    *
264    * <pre>
265    * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
266    * </pre>
267    *
268    * <code>optional uint64 id = 3355;</code>
269    *
270    * @return Whether the id field is set.
271    */
hasId()272   boolean hasId();
273   /**
274    *
275    *
276    * <pre>
277    * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
278    * </pre>
279    *
280    * <code>optional uint64 id = 3355;</code>
281    *
282    * @return The id.
283    */
getId()284   long getId();
285 
286   /**
287    *
288    *
289    * <pre>
290    * When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the google defined ULA prefix fd20::/20. The input must be a valid /48 ULA IPv6 address and must be within the fd20::/20. Operation will fail if the speficied /48 is already in used by another resource. If the field is not speficied, then a /48 range will be randomly allocated from fd20::/20 and returned via this field. .
291    * </pre>
292    *
293    * <code>optional string internal_ipv6_range = 277456807;</code>
294    *
295    * @return Whether the internalIpv6Range field is set.
296    */
hasInternalIpv6Range()297   boolean hasInternalIpv6Range();
298   /**
299    *
300    *
301    * <pre>
302    * When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the google defined ULA prefix fd20::/20. The input must be a valid /48 ULA IPv6 address and must be within the fd20::/20. Operation will fail if the speficied /48 is already in used by another resource. If the field is not speficied, then a /48 range will be randomly allocated from fd20::/20 and returned via this field. .
303    * </pre>
304    *
305    * <code>optional string internal_ipv6_range = 277456807;</code>
306    *
307    * @return The internalIpv6Range.
308    */
getInternalIpv6Range()309   java.lang.String getInternalIpv6Range();
310   /**
311    *
312    *
313    * <pre>
314    * When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the google defined ULA prefix fd20::/20. The input must be a valid /48 ULA IPv6 address and must be within the fd20::/20. Operation will fail if the speficied /48 is already in used by another resource. If the field is not speficied, then a /48 range will be randomly allocated from fd20::/20 and returned via this field. .
315    * </pre>
316    *
317    * <code>optional string internal_ipv6_range = 277456807;</code>
318    *
319    * @return The bytes for internalIpv6Range.
320    */
getInternalIpv6RangeBytes()321   com.google.protobuf.ByteString getInternalIpv6RangeBytes();
322 
323   /**
324    *
325    *
326    * <pre>
327    * [Output Only] Type of the resource. Always compute#network for networks.
328    * </pre>
329    *
330    * <code>optional string kind = 3292052;</code>
331    *
332    * @return Whether the kind field is set.
333    */
hasKind()334   boolean hasKind();
335   /**
336    *
337    *
338    * <pre>
339    * [Output Only] Type of the resource. Always compute#network for networks.
340    * </pre>
341    *
342    * <code>optional string kind = 3292052;</code>
343    *
344    * @return The kind.
345    */
getKind()346   java.lang.String getKind();
347   /**
348    *
349    *
350    * <pre>
351    * [Output Only] Type of the resource. Always compute#network for networks.
352    * </pre>
353    *
354    * <code>optional string kind = 3292052;</code>
355    *
356    * @return The bytes for kind.
357    */
getKindBytes()358   com.google.protobuf.ByteString getKindBytes();
359 
360   /**
361    *
362    *
363    * <pre>
364    * Maximum Transmission Unit in bytes. The minimum value for this field is 1300 and the maximum value is 8896. The suggested value is 1500, which is the default MTU used on the Internet, or 8896 if you want to use Jumbo frames. If unspecified, the value defaults to 1460.
365    * </pre>
366    *
367    * <code>optional int32 mtu = 108462;</code>
368    *
369    * @return Whether the mtu field is set.
370    */
hasMtu()371   boolean hasMtu();
372   /**
373    *
374    *
375    * <pre>
376    * Maximum Transmission Unit in bytes. The minimum value for this field is 1300 and the maximum value is 8896. The suggested value is 1500, which is the default MTU used on the Internet, or 8896 if you want to use Jumbo frames. If unspecified, the value defaults to 1460.
377    * </pre>
378    *
379    * <code>optional int32 mtu = 108462;</code>
380    *
381    * @return The mtu.
382    */
getMtu()383   int getMtu();
384 
385   /**
386    *
387    *
388    * <pre>
389    * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
390    * </pre>
391    *
392    * <code>optional string name = 3373707;</code>
393    *
394    * @return Whether the name field is set.
395    */
hasName()396   boolean hasName();
397   /**
398    *
399    *
400    * <pre>
401    * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
402    * </pre>
403    *
404    * <code>optional string name = 3373707;</code>
405    *
406    * @return The name.
407    */
getName()408   java.lang.String getName();
409   /**
410    *
411    *
412    * <pre>
413    * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
414    * </pre>
415    *
416    * <code>optional string name = 3373707;</code>
417    *
418    * @return The bytes for name.
419    */
getNameBytes()420   com.google.protobuf.ByteString getNameBytes();
421 
422   /**
423    *
424    *
425    * <pre>
426    * The network firewall policy enforcement order. Can be either AFTER_CLASSIC_FIREWALL or BEFORE_CLASSIC_FIREWALL. Defaults to AFTER_CLASSIC_FIREWALL if the field is not specified.
427    * Check the NetworkFirewallPolicyEnforcementOrder enum for the list of possible values.
428    * </pre>
429    *
430    * <code>optional string network_firewall_policy_enforcement_order = 6504784;</code>
431    *
432    * @return Whether the networkFirewallPolicyEnforcementOrder field is set.
433    */
hasNetworkFirewallPolicyEnforcementOrder()434   boolean hasNetworkFirewallPolicyEnforcementOrder();
435   /**
436    *
437    *
438    * <pre>
439    * The network firewall policy enforcement order. Can be either AFTER_CLASSIC_FIREWALL or BEFORE_CLASSIC_FIREWALL. Defaults to AFTER_CLASSIC_FIREWALL if the field is not specified.
440    * Check the NetworkFirewallPolicyEnforcementOrder enum for the list of possible values.
441    * </pre>
442    *
443    * <code>optional string network_firewall_policy_enforcement_order = 6504784;</code>
444    *
445    * @return The networkFirewallPolicyEnforcementOrder.
446    */
getNetworkFirewallPolicyEnforcementOrder()447   java.lang.String getNetworkFirewallPolicyEnforcementOrder();
448   /**
449    *
450    *
451    * <pre>
452    * The network firewall policy enforcement order. Can be either AFTER_CLASSIC_FIREWALL or BEFORE_CLASSIC_FIREWALL. Defaults to AFTER_CLASSIC_FIREWALL if the field is not specified.
453    * Check the NetworkFirewallPolicyEnforcementOrder enum for the list of possible values.
454    * </pre>
455    *
456    * <code>optional string network_firewall_policy_enforcement_order = 6504784;</code>
457    *
458    * @return The bytes for networkFirewallPolicyEnforcementOrder.
459    */
getNetworkFirewallPolicyEnforcementOrderBytes()460   com.google.protobuf.ByteString getNetworkFirewallPolicyEnforcementOrderBytes();
461 
462   /**
463    *
464    *
465    * <pre>
466    * [Output Only] A list of network peerings for the resource.
467    * </pre>
468    *
469    * <code>repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;</code>
470    */
getPeeringsList()471   java.util.List<com.google.cloud.compute.v1.NetworkPeering> getPeeringsList();
472   /**
473    *
474    *
475    * <pre>
476    * [Output Only] A list of network peerings for the resource.
477    * </pre>
478    *
479    * <code>repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;</code>
480    */
getPeerings(int index)481   com.google.cloud.compute.v1.NetworkPeering getPeerings(int index);
482   /**
483    *
484    *
485    * <pre>
486    * [Output Only] A list of network peerings for the resource.
487    * </pre>
488    *
489    * <code>repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;</code>
490    */
getPeeringsCount()491   int getPeeringsCount();
492   /**
493    *
494    *
495    * <pre>
496    * [Output Only] A list of network peerings for the resource.
497    * </pre>
498    *
499    * <code>repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;</code>
500    */
501   java.util.List<? extends com.google.cloud.compute.v1.NetworkPeeringOrBuilder>
getPeeringsOrBuilderList()502       getPeeringsOrBuilderList();
503   /**
504    *
505    *
506    * <pre>
507    * [Output Only] A list of network peerings for the resource.
508    * </pre>
509    *
510    * <code>repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187;</code>
511    */
getPeeringsOrBuilder(int index)512   com.google.cloud.compute.v1.NetworkPeeringOrBuilder getPeeringsOrBuilder(int index);
513 
514   /**
515    *
516    *
517    * <pre>
518    * The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce.
519    * </pre>
520    *
521    * <code>optional .google.cloud.compute.v1.NetworkRoutingConfig routing_config = 523556059;</code>
522    *
523    * @return Whether the routingConfig field is set.
524    */
hasRoutingConfig()525   boolean hasRoutingConfig();
526   /**
527    *
528    *
529    * <pre>
530    * The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce.
531    * </pre>
532    *
533    * <code>optional .google.cloud.compute.v1.NetworkRoutingConfig routing_config = 523556059;</code>
534    *
535    * @return The routingConfig.
536    */
getRoutingConfig()537   com.google.cloud.compute.v1.NetworkRoutingConfig getRoutingConfig();
538   /**
539    *
540    *
541    * <pre>
542    * The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce.
543    * </pre>
544    *
545    * <code>optional .google.cloud.compute.v1.NetworkRoutingConfig routing_config = 523556059;</code>
546    */
getRoutingConfigOrBuilder()547   com.google.cloud.compute.v1.NetworkRoutingConfigOrBuilder getRoutingConfigOrBuilder();
548 
549   /**
550    *
551    *
552    * <pre>
553    * [Output Only] Server-defined URL for the resource.
554    * </pre>
555    *
556    * <code>optional string self_link = 456214797;</code>
557    *
558    * @return Whether the selfLink field is set.
559    */
hasSelfLink()560   boolean hasSelfLink();
561   /**
562    *
563    *
564    * <pre>
565    * [Output Only] Server-defined URL for the resource.
566    * </pre>
567    *
568    * <code>optional string self_link = 456214797;</code>
569    *
570    * @return The selfLink.
571    */
getSelfLink()572   java.lang.String getSelfLink();
573   /**
574    *
575    *
576    * <pre>
577    * [Output Only] Server-defined URL for the resource.
578    * </pre>
579    *
580    * <code>optional string self_link = 456214797;</code>
581    *
582    * @return The bytes for selfLink.
583    */
getSelfLinkBytes()584   com.google.protobuf.ByteString getSelfLinkBytes();
585 
586   /**
587    *
588    *
589    * <pre>
590    * [Output Only] Server-defined URL for this resource with the resource id.
591    * </pre>
592    *
593    * <code>optional string self_link_with_id = 44520962;</code>
594    *
595    * @return Whether the selfLinkWithId field is set.
596    */
hasSelfLinkWithId()597   boolean hasSelfLinkWithId();
598   /**
599    *
600    *
601    * <pre>
602    * [Output Only] Server-defined URL for this resource with the resource id.
603    * </pre>
604    *
605    * <code>optional string self_link_with_id = 44520962;</code>
606    *
607    * @return The selfLinkWithId.
608    */
getSelfLinkWithId()609   java.lang.String getSelfLinkWithId();
610   /**
611    *
612    *
613    * <pre>
614    * [Output Only] Server-defined URL for this resource with the resource id.
615    * </pre>
616    *
617    * <code>optional string self_link_with_id = 44520962;</code>
618    *
619    * @return The bytes for selfLinkWithId.
620    */
getSelfLinkWithIdBytes()621   com.google.protobuf.ByteString getSelfLinkWithIdBytes();
622 
623   /**
624    *
625    *
626    * <pre>
627    * [Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.
628    * </pre>
629    *
630    * <code>repeated string subnetworks = 415853125;</code>
631    *
632    * @return A list containing the subnetworks.
633    */
getSubnetworksList()634   java.util.List<java.lang.String> getSubnetworksList();
635   /**
636    *
637    *
638    * <pre>
639    * [Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.
640    * </pre>
641    *
642    * <code>repeated string subnetworks = 415853125;</code>
643    *
644    * @return The count of subnetworks.
645    */
getSubnetworksCount()646   int getSubnetworksCount();
647   /**
648    *
649    *
650    * <pre>
651    * [Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.
652    * </pre>
653    *
654    * <code>repeated string subnetworks = 415853125;</code>
655    *
656    * @param index The index of the element to return.
657    * @return The subnetworks at the given index.
658    */
getSubnetworks(int index)659   java.lang.String getSubnetworks(int index);
660   /**
661    *
662    *
663    * <pre>
664    * [Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network.
665    * </pre>
666    *
667    * <code>repeated string subnetworks = 415853125;</code>
668    *
669    * @param index The index of the value to return.
670    * @return The bytes of the subnetworks at the given index.
671    */
getSubnetworksBytes(int index)672   com.google.protobuf.ByteString getSubnetworksBytes(int index);
673 }
674