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 FirewallOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.Firewall) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * The list of ALLOW rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection. 31 * </pre> 32 * 33 * <code>repeated .google.cloud.compute.v1.Allowed allowed = 162398632;</code> 34 */ getAllowedList()35 java.util.List<com.google.cloud.compute.v1.Allowed> getAllowedList(); 36 /** 37 * 38 * 39 * <pre> 40 * The list of ALLOW rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection. 41 * </pre> 42 * 43 * <code>repeated .google.cloud.compute.v1.Allowed allowed = 162398632;</code> 44 */ getAllowed(int index)45 com.google.cloud.compute.v1.Allowed getAllowed(int index); 46 /** 47 * 48 * 49 * <pre> 50 * The list of ALLOW rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection. 51 * </pre> 52 * 53 * <code>repeated .google.cloud.compute.v1.Allowed allowed = 162398632;</code> 54 */ getAllowedCount()55 int getAllowedCount(); 56 /** 57 * 58 * 59 * <pre> 60 * The list of ALLOW rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection. 61 * </pre> 62 * 63 * <code>repeated .google.cloud.compute.v1.Allowed allowed = 162398632;</code> 64 */ getAllowedOrBuilderList()65 java.util.List<? extends com.google.cloud.compute.v1.AllowedOrBuilder> getAllowedOrBuilderList(); 66 /** 67 * 68 * 69 * <pre> 70 * The list of ALLOW rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection. 71 * </pre> 72 * 73 * <code>repeated .google.cloud.compute.v1.Allowed allowed = 162398632;</code> 74 */ getAllowedOrBuilder(int index)75 com.google.cloud.compute.v1.AllowedOrBuilder getAllowedOrBuilder(int index); 76 77 /** 78 * 79 * 80 * <pre> 81 * [Output Only] Creation timestamp in RFC3339 text format. 82 * </pre> 83 * 84 * <code>optional string creation_timestamp = 30525366;</code> 85 * 86 * @return Whether the creationTimestamp field is set. 87 */ hasCreationTimestamp()88 boolean hasCreationTimestamp(); 89 /** 90 * 91 * 92 * <pre> 93 * [Output Only] Creation timestamp in RFC3339 text format. 94 * </pre> 95 * 96 * <code>optional string creation_timestamp = 30525366;</code> 97 * 98 * @return The creationTimestamp. 99 */ getCreationTimestamp()100 java.lang.String getCreationTimestamp(); 101 /** 102 * 103 * 104 * <pre> 105 * [Output Only] Creation timestamp in RFC3339 text format. 106 * </pre> 107 * 108 * <code>optional string creation_timestamp = 30525366;</code> 109 * 110 * @return The bytes for creationTimestamp. 111 */ getCreationTimestampBytes()112 com.google.protobuf.ByteString getCreationTimestampBytes(); 113 114 /** 115 * 116 * 117 * <pre> 118 * The list of DENY rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a denied connection. 119 * </pre> 120 * 121 * <code>repeated .google.cloud.compute.v1.Denied denied = 275217307;</code> 122 */ getDeniedList()123 java.util.List<com.google.cloud.compute.v1.Denied> getDeniedList(); 124 /** 125 * 126 * 127 * <pre> 128 * The list of DENY rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a denied connection. 129 * </pre> 130 * 131 * <code>repeated .google.cloud.compute.v1.Denied denied = 275217307;</code> 132 */ getDenied(int index)133 com.google.cloud.compute.v1.Denied getDenied(int index); 134 /** 135 * 136 * 137 * <pre> 138 * The list of DENY rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a denied connection. 139 * </pre> 140 * 141 * <code>repeated .google.cloud.compute.v1.Denied denied = 275217307;</code> 142 */ getDeniedCount()143 int getDeniedCount(); 144 /** 145 * 146 * 147 * <pre> 148 * The list of DENY rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a denied connection. 149 * </pre> 150 * 151 * <code>repeated .google.cloud.compute.v1.Denied denied = 275217307;</code> 152 */ getDeniedOrBuilderList()153 java.util.List<? extends com.google.cloud.compute.v1.DeniedOrBuilder> getDeniedOrBuilderList(); 154 /** 155 * 156 * 157 * <pre> 158 * The list of DENY rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a denied connection. 159 * </pre> 160 * 161 * <code>repeated .google.cloud.compute.v1.Denied denied = 275217307;</code> 162 */ getDeniedOrBuilder(int index)163 com.google.cloud.compute.v1.DeniedOrBuilder getDeniedOrBuilder(int index); 164 165 /** 166 * 167 * 168 * <pre> 169 * An optional description of this resource. Provide this field when you create the resource. 170 * </pre> 171 * 172 * <code>optional string description = 422937596;</code> 173 * 174 * @return Whether the description field is set. 175 */ hasDescription()176 boolean hasDescription(); 177 /** 178 * 179 * 180 * <pre> 181 * An optional description of this resource. Provide this field when you create the resource. 182 * </pre> 183 * 184 * <code>optional string description = 422937596;</code> 185 * 186 * @return The description. 187 */ getDescription()188 java.lang.String getDescription(); 189 /** 190 * 191 * 192 * <pre> 193 * An optional description of this resource. Provide this field when you create the resource. 194 * </pre> 195 * 196 * <code>optional string description = 422937596;</code> 197 * 198 * @return The bytes for description. 199 */ getDescriptionBytes()200 com.google.protobuf.ByteString getDescriptionBytes(); 201 202 /** 203 * 204 * 205 * <pre> 206 * If destination ranges are specified, the firewall rule applies only to traffic that has destination IP address in these ranges. These ranges must be expressed in CIDR format. Both IPv4 and IPv6 are supported. 207 * </pre> 208 * 209 * <code>repeated string destination_ranges = 305699879;</code> 210 * 211 * @return A list containing the destinationRanges. 212 */ getDestinationRangesList()213 java.util.List<java.lang.String> getDestinationRangesList(); 214 /** 215 * 216 * 217 * <pre> 218 * If destination ranges are specified, the firewall rule applies only to traffic that has destination IP address in these ranges. These ranges must be expressed in CIDR format. Both IPv4 and IPv6 are supported. 219 * </pre> 220 * 221 * <code>repeated string destination_ranges = 305699879;</code> 222 * 223 * @return The count of destinationRanges. 224 */ getDestinationRangesCount()225 int getDestinationRangesCount(); 226 /** 227 * 228 * 229 * <pre> 230 * If destination ranges are specified, the firewall rule applies only to traffic that has destination IP address in these ranges. These ranges must be expressed in CIDR format. Both IPv4 and IPv6 are supported. 231 * </pre> 232 * 233 * <code>repeated string destination_ranges = 305699879;</code> 234 * 235 * @param index The index of the element to return. 236 * @return The destinationRanges at the given index. 237 */ getDestinationRanges(int index)238 java.lang.String getDestinationRanges(int index); 239 /** 240 * 241 * 242 * <pre> 243 * If destination ranges are specified, the firewall rule applies only to traffic that has destination IP address in these ranges. These ranges must be expressed in CIDR format. Both IPv4 and IPv6 are supported. 244 * </pre> 245 * 246 * <code>repeated string destination_ranges = 305699879;</code> 247 * 248 * @param index The index of the value to return. 249 * @return The bytes of the destinationRanges at the given index. 250 */ getDestinationRangesBytes(int index)251 com.google.protobuf.ByteString getDestinationRangesBytes(int index); 252 253 /** 254 * 255 * 256 * <pre> 257 * Direction of traffic to which this firewall applies, either `INGRESS` or `EGRESS`. The default is `INGRESS`. For `EGRESS` traffic, you cannot specify the sourceTags fields. 258 * Check the Direction enum for the list of possible values. 259 * </pre> 260 * 261 * <code>optional string direction = 111150975;</code> 262 * 263 * @return Whether the direction field is set. 264 */ hasDirection()265 boolean hasDirection(); 266 /** 267 * 268 * 269 * <pre> 270 * Direction of traffic to which this firewall applies, either `INGRESS` or `EGRESS`. The default is `INGRESS`. For `EGRESS` traffic, you cannot specify the sourceTags fields. 271 * Check the Direction enum for the list of possible values. 272 * </pre> 273 * 274 * <code>optional string direction = 111150975;</code> 275 * 276 * @return The direction. 277 */ getDirection()278 java.lang.String getDirection(); 279 /** 280 * 281 * 282 * <pre> 283 * Direction of traffic to which this firewall applies, either `INGRESS` or `EGRESS`. The default is `INGRESS`. For `EGRESS` traffic, you cannot specify the sourceTags fields. 284 * Check the Direction enum for the list of possible values. 285 * </pre> 286 * 287 * <code>optional string direction = 111150975;</code> 288 * 289 * @return The bytes for direction. 290 */ getDirectionBytes()291 com.google.protobuf.ByteString getDirectionBytes(); 292 293 /** 294 * 295 * 296 * <pre> 297 * Denotes whether the firewall rule is disabled. When set to true, the firewall rule is not enforced and the network behaves as if it did not exist. If this is unspecified, the firewall rule will be enabled. 298 * </pre> 299 * 300 * <code>optional bool disabled = 270940796;</code> 301 * 302 * @return Whether the disabled field is set. 303 */ hasDisabled()304 boolean hasDisabled(); 305 /** 306 * 307 * 308 * <pre> 309 * Denotes whether the firewall rule is disabled. When set to true, the firewall rule is not enforced and the network behaves as if it did not exist. If this is unspecified, the firewall rule will be enabled. 310 * </pre> 311 * 312 * <code>optional bool disabled = 270940796;</code> 313 * 314 * @return The disabled. 315 */ getDisabled()316 boolean getDisabled(); 317 318 /** 319 * 320 * 321 * <pre> 322 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. 323 * </pre> 324 * 325 * <code>optional uint64 id = 3355;</code> 326 * 327 * @return Whether the id field is set. 328 */ hasId()329 boolean hasId(); 330 /** 331 * 332 * 333 * <pre> 334 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. 335 * </pre> 336 * 337 * <code>optional uint64 id = 3355;</code> 338 * 339 * @return The id. 340 */ getId()341 long getId(); 342 343 /** 344 * 345 * 346 * <pre> 347 * [Output Only] Type of the resource. Always compute#firewall for firewall rules. 348 * </pre> 349 * 350 * <code>optional string kind = 3292052;</code> 351 * 352 * @return Whether the kind field is set. 353 */ hasKind()354 boolean hasKind(); 355 /** 356 * 357 * 358 * <pre> 359 * [Output Only] Type of the resource. Always compute#firewall for firewall rules. 360 * </pre> 361 * 362 * <code>optional string kind = 3292052;</code> 363 * 364 * @return The kind. 365 */ getKind()366 java.lang.String getKind(); 367 /** 368 * 369 * 370 * <pre> 371 * [Output Only] Type of the resource. Always compute#firewall for firewall rules. 372 * </pre> 373 * 374 * <code>optional string kind = 3292052;</code> 375 * 376 * @return The bytes for kind. 377 */ getKindBytes()378 com.google.protobuf.ByteString getKindBytes(); 379 380 /** 381 * 382 * 383 * <pre> 384 * This field denotes the logging options for a particular firewall rule. If logging is enabled, logs will be exported to Cloud Logging. 385 * </pre> 386 * 387 * <code>optional .google.cloud.compute.v1.FirewallLogConfig log_config = 351299741;</code> 388 * 389 * @return Whether the logConfig field is set. 390 */ hasLogConfig()391 boolean hasLogConfig(); 392 /** 393 * 394 * 395 * <pre> 396 * This field denotes the logging options for a particular firewall rule. If logging is enabled, logs will be exported to Cloud Logging. 397 * </pre> 398 * 399 * <code>optional .google.cloud.compute.v1.FirewallLogConfig log_config = 351299741;</code> 400 * 401 * @return The logConfig. 402 */ getLogConfig()403 com.google.cloud.compute.v1.FirewallLogConfig getLogConfig(); 404 /** 405 * 406 * 407 * <pre> 408 * This field denotes the logging options for a particular firewall rule. If logging is enabled, logs will be exported to Cloud Logging. 409 * </pre> 410 * 411 * <code>optional .google.cloud.compute.v1.FirewallLogConfig log_config = 351299741;</code> 412 */ getLogConfigOrBuilder()413 com.google.cloud.compute.v1.FirewallLogConfigOrBuilder getLogConfigOrBuilder(); 414 415 /** 416 * 417 * 418 * <pre> 419 * 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. 420 * </pre> 421 * 422 * <code>optional string name = 3373707;</code> 423 * 424 * @return Whether the name field is set. 425 */ hasName()426 boolean hasName(); 427 /** 428 * 429 * 430 * <pre> 431 * 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. 432 * </pre> 433 * 434 * <code>optional string name = 3373707;</code> 435 * 436 * @return The name. 437 */ getName()438 java.lang.String getName(); 439 /** 440 * 441 * 442 * <pre> 443 * 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. 444 * </pre> 445 * 446 * <code>optional string name = 3373707;</code> 447 * 448 * @return The bytes for name. 449 */ getNameBytes()450 com.google.protobuf.ByteString getNameBytes(); 451 452 /** 453 * 454 * 455 * <pre> 456 * URL of the network resource for this firewall rule. If not specified when creating a firewall rule, the default network is used: global/networks/default If you choose to specify this field, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/myproject/global/networks/my-network - projects/myproject/global/networks/my-network - global/networks/default 457 * </pre> 458 * 459 * <code>optional string network = 232872494;</code> 460 * 461 * @return Whether the network field is set. 462 */ hasNetwork()463 boolean hasNetwork(); 464 /** 465 * 466 * 467 * <pre> 468 * URL of the network resource for this firewall rule. If not specified when creating a firewall rule, the default network is used: global/networks/default If you choose to specify this field, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/myproject/global/networks/my-network - projects/myproject/global/networks/my-network - global/networks/default 469 * </pre> 470 * 471 * <code>optional string network = 232872494;</code> 472 * 473 * @return The network. 474 */ getNetwork()475 java.lang.String getNetwork(); 476 /** 477 * 478 * 479 * <pre> 480 * URL of the network resource for this firewall rule. If not specified when creating a firewall rule, the default network is used: global/networks/default If you choose to specify this field, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/myproject/global/networks/my-network - projects/myproject/global/networks/my-network - global/networks/default 481 * </pre> 482 * 483 * <code>optional string network = 232872494;</code> 484 * 485 * @return The bytes for network. 486 */ getNetworkBytes()487 com.google.protobuf.ByteString getNetworkBytes(); 488 489 /** 490 * 491 * 492 * <pre> 493 * Priority for this rule. This is an integer between `0` and `65535`, both inclusive. The default value is `1000`. Relative priorities determine which rule takes effect if multiple rules apply. Lower values indicate higher priority. For example, a rule with priority `0` has higher precedence than a rule with priority `1`. DENY rules take precedence over ALLOW rules if they have equal priority. Note that VPC networks have implied rules with a priority of `65535`. To avoid conflicts with the implied rules, use a priority number less than `65535`. 494 * </pre> 495 * 496 * <code>optional int32 priority = 445151652;</code> 497 * 498 * @return Whether the priority field is set. 499 */ hasPriority()500 boolean hasPriority(); 501 /** 502 * 503 * 504 * <pre> 505 * Priority for this rule. This is an integer between `0` and `65535`, both inclusive. The default value is `1000`. Relative priorities determine which rule takes effect if multiple rules apply. Lower values indicate higher priority. For example, a rule with priority `0` has higher precedence than a rule with priority `1`. DENY rules take precedence over ALLOW rules if they have equal priority. Note that VPC networks have implied rules with a priority of `65535`. To avoid conflicts with the implied rules, use a priority number less than `65535`. 506 * </pre> 507 * 508 * <code>optional int32 priority = 445151652;</code> 509 * 510 * @return The priority. 511 */ getPriority()512 int getPriority(); 513 514 /** 515 * 516 * 517 * <pre> 518 * [Output Only] Server-defined URL for the resource. 519 * </pre> 520 * 521 * <code>optional string self_link = 456214797;</code> 522 * 523 * @return Whether the selfLink field is set. 524 */ hasSelfLink()525 boolean hasSelfLink(); 526 /** 527 * 528 * 529 * <pre> 530 * [Output Only] Server-defined URL for the resource. 531 * </pre> 532 * 533 * <code>optional string self_link = 456214797;</code> 534 * 535 * @return The selfLink. 536 */ getSelfLink()537 java.lang.String getSelfLink(); 538 /** 539 * 540 * 541 * <pre> 542 * [Output Only] Server-defined URL for the resource. 543 * </pre> 544 * 545 * <code>optional string self_link = 456214797;</code> 546 * 547 * @return The bytes for selfLink. 548 */ getSelfLinkBytes()549 com.google.protobuf.ByteString getSelfLinkBytes(); 550 551 /** 552 * 553 * 554 * <pre> 555 * If source ranges are specified, the firewall rule applies only to traffic that has a source IP address in these ranges. These ranges must be expressed in CIDR format. One or both of sourceRanges and sourceTags may be set. If both fields are set, the rule applies to traffic that has a source IP address within sourceRanges OR a source IP from a resource with a matching tag listed in the sourceTags field. The connection does not need to match both fields for the rule to apply. Both IPv4 and IPv6 are supported. 556 * </pre> 557 * 558 * <code>repeated string source_ranges = 200097658;</code> 559 * 560 * @return A list containing the sourceRanges. 561 */ getSourceRangesList()562 java.util.List<java.lang.String> getSourceRangesList(); 563 /** 564 * 565 * 566 * <pre> 567 * If source ranges are specified, the firewall rule applies only to traffic that has a source IP address in these ranges. These ranges must be expressed in CIDR format. One or both of sourceRanges and sourceTags may be set. If both fields are set, the rule applies to traffic that has a source IP address within sourceRanges OR a source IP from a resource with a matching tag listed in the sourceTags field. The connection does not need to match both fields for the rule to apply. Both IPv4 and IPv6 are supported. 568 * </pre> 569 * 570 * <code>repeated string source_ranges = 200097658;</code> 571 * 572 * @return The count of sourceRanges. 573 */ getSourceRangesCount()574 int getSourceRangesCount(); 575 /** 576 * 577 * 578 * <pre> 579 * If source ranges are specified, the firewall rule applies only to traffic that has a source IP address in these ranges. These ranges must be expressed in CIDR format. One or both of sourceRanges and sourceTags may be set. If both fields are set, the rule applies to traffic that has a source IP address within sourceRanges OR a source IP from a resource with a matching tag listed in the sourceTags field. The connection does not need to match both fields for the rule to apply. Both IPv4 and IPv6 are supported. 580 * </pre> 581 * 582 * <code>repeated string source_ranges = 200097658;</code> 583 * 584 * @param index The index of the element to return. 585 * @return The sourceRanges at the given index. 586 */ getSourceRanges(int index)587 java.lang.String getSourceRanges(int index); 588 /** 589 * 590 * 591 * <pre> 592 * If source ranges are specified, the firewall rule applies only to traffic that has a source IP address in these ranges. These ranges must be expressed in CIDR format. One or both of sourceRanges and sourceTags may be set. If both fields are set, the rule applies to traffic that has a source IP address within sourceRanges OR a source IP from a resource with a matching tag listed in the sourceTags field. The connection does not need to match both fields for the rule to apply. Both IPv4 and IPv6 are supported. 593 * </pre> 594 * 595 * <code>repeated string source_ranges = 200097658;</code> 596 * 597 * @param index The index of the value to return. 598 * @return The bytes of the sourceRanges at the given index. 599 */ getSourceRangesBytes(int index)600 com.google.protobuf.ByteString getSourceRangesBytes(int index); 601 602 /** 603 * 604 * 605 * <pre> 606 * If source service accounts are specified, the firewall rules apply only to traffic originating from an instance with a service account in this list. Source service accounts cannot be used to control traffic to an instance's external IP address because service accounts are associated with an instance, not an IP address. sourceRanges can be set at the same time as sourceServiceAccounts. If both are set, the firewall applies to traffic that has a source IP address within the sourceRanges OR a source IP that belongs to an instance with service account listed in sourceServiceAccount. The connection does not need to match both fields for the firewall to apply. sourceServiceAccounts cannot be used at the same time as sourceTags or targetTags. 607 * </pre> 608 * 609 * <code>repeated string source_service_accounts = 105100756;</code> 610 * 611 * @return A list containing the sourceServiceAccounts. 612 */ getSourceServiceAccountsList()613 java.util.List<java.lang.String> getSourceServiceAccountsList(); 614 /** 615 * 616 * 617 * <pre> 618 * If source service accounts are specified, the firewall rules apply only to traffic originating from an instance with a service account in this list. Source service accounts cannot be used to control traffic to an instance's external IP address because service accounts are associated with an instance, not an IP address. sourceRanges can be set at the same time as sourceServiceAccounts. If both are set, the firewall applies to traffic that has a source IP address within the sourceRanges OR a source IP that belongs to an instance with service account listed in sourceServiceAccount. The connection does not need to match both fields for the firewall to apply. sourceServiceAccounts cannot be used at the same time as sourceTags or targetTags. 619 * </pre> 620 * 621 * <code>repeated string source_service_accounts = 105100756;</code> 622 * 623 * @return The count of sourceServiceAccounts. 624 */ getSourceServiceAccountsCount()625 int getSourceServiceAccountsCount(); 626 /** 627 * 628 * 629 * <pre> 630 * If source service accounts are specified, the firewall rules apply only to traffic originating from an instance with a service account in this list. Source service accounts cannot be used to control traffic to an instance's external IP address because service accounts are associated with an instance, not an IP address. sourceRanges can be set at the same time as sourceServiceAccounts. If both are set, the firewall applies to traffic that has a source IP address within the sourceRanges OR a source IP that belongs to an instance with service account listed in sourceServiceAccount. The connection does not need to match both fields for the firewall to apply. sourceServiceAccounts cannot be used at the same time as sourceTags or targetTags. 631 * </pre> 632 * 633 * <code>repeated string source_service_accounts = 105100756;</code> 634 * 635 * @param index The index of the element to return. 636 * @return The sourceServiceAccounts at the given index. 637 */ getSourceServiceAccounts(int index)638 java.lang.String getSourceServiceAccounts(int index); 639 /** 640 * 641 * 642 * <pre> 643 * If source service accounts are specified, the firewall rules apply only to traffic originating from an instance with a service account in this list. Source service accounts cannot be used to control traffic to an instance's external IP address because service accounts are associated with an instance, not an IP address. sourceRanges can be set at the same time as sourceServiceAccounts. If both are set, the firewall applies to traffic that has a source IP address within the sourceRanges OR a source IP that belongs to an instance with service account listed in sourceServiceAccount. The connection does not need to match both fields for the firewall to apply. sourceServiceAccounts cannot be used at the same time as sourceTags or targetTags. 644 * </pre> 645 * 646 * <code>repeated string source_service_accounts = 105100756;</code> 647 * 648 * @param index The index of the value to return. 649 * @return The bytes of the sourceServiceAccounts at the given index. 650 */ getSourceServiceAccountsBytes(int index)651 com.google.protobuf.ByteString getSourceServiceAccountsBytes(int index); 652 653 /** 654 * 655 * 656 * <pre> 657 * If source tags are specified, the firewall rule applies only to traffic with source IPs that match the primary network interfaces of VM instances that have the tag and are in the same VPC network. Source tags cannot be used to control traffic to an instance's external IP address, it only applies to traffic between instances in the same virtual network. Because tags are associated with instances, not IP addresses. One or both of sourceRanges and sourceTags may be set. If both fields are set, the firewall applies to traffic that has a source IP address within sourceRanges OR a source IP from a resource with a matching tag listed in the sourceTags field. The connection does not need to match both fields for the firewall to apply. 658 * </pre> 659 * 660 * <code>repeated string source_tags = 452222397;</code> 661 * 662 * @return A list containing the sourceTags. 663 */ getSourceTagsList()664 java.util.List<java.lang.String> getSourceTagsList(); 665 /** 666 * 667 * 668 * <pre> 669 * If source tags are specified, the firewall rule applies only to traffic with source IPs that match the primary network interfaces of VM instances that have the tag and are in the same VPC network. Source tags cannot be used to control traffic to an instance's external IP address, it only applies to traffic between instances in the same virtual network. Because tags are associated with instances, not IP addresses. One or both of sourceRanges and sourceTags may be set. If both fields are set, the firewall applies to traffic that has a source IP address within sourceRanges OR a source IP from a resource with a matching tag listed in the sourceTags field. The connection does not need to match both fields for the firewall to apply. 670 * </pre> 671 * 672 * <code>repeated string source_tags = 452222397;</code> 673 * 674 * @return The count of sourceTags. 675 */ getSourceTagsCount()676 int getSourceTagsCount(); 677 /** 678 * 679 * 680 * <pre> 681 * If source tags are specified, the firewall rule applies only to traffic with source IPs that match the primary network interfaces of VM instances that have the tag and are in the same VPC network. Source tags cannot be used to control traffic to an instance's external IP address, it only applies to traffic between instances in the same virtual network. Because tags are associated with instances, not IP addresses. One or both of sourceRanges and sourceTags may be set. If both fields are set, the firewall applies to traffic that has a source IP address within sourceRanges OR a source IP from a resource with a matching tag listed in the sourceTags field. The connection does not need to match both fields for the firewall to apply. 682 * </pre> 683 * 684 * <code>repeated string source_tags = 452222397;</code> 685 * 686 * @param index The index of the element to return. 687 * @return The sourceTags at the given index. 688 */ getSourceTags(int index)689 java.lang.String getSourceTags(int index); 690 /** 691 * 692 * 693 * <pre> 694 * If source tags are specified, the firewall rule applies only to traffic with source IPs that match the primary network interfaces of VM instances that have the tag and are in the same VPC network. Source tags cannot be used to control traffic to an instance's external IP address, it only applies to traffic between instances in the same virtual network. Because tags are associated with instances, not IP addresses. One or both of sourceRanges and sourceTags may be set. If both fields are set, the firewall applies to traffic that has a source IP address within sourceRanges OR a source IP from a resource with a matching tag listed in the sourceTags field. The connection does not need to match both fields for the firewall to apply. 695 * </pre> 696 * 697 * <code>repeated string source_tags = 452222397;</code> 698 * 699 * @param index The index of the value to return. 700 * @return The bytes of the sourceTags at the given index. 701 */ getSourceTagsBytes(int index)702 com.google.protobuf.ByteString getSourceTagsBytes(int index); 703 704 /** 705 * 706 * 707 * <pre> 708 * A list of service accounts indicating sets of instances located in the network that may make network connections as specified in allowed[]. targetServiceAccounts cannot be used at the same time as targetTags or sourceTags. If neither targetServiceAccounts nor targetTags are specified, the firewall rule applies to all instances on the specified network. 709 * </pre> 710 * 711 * <code>repeated string target_service_accounts = 457639710;</code> 712 * 713 * @return A list containing the targetServiceAccounts. 714 */ getTargetServiceAccountsList()715 java.util.List<java.lang.String> getTargetServiceAccountsList(); 716 /** 717 * 718 * 719 * <pre> 720 * A list of service accounts indicating sets of instances located in the network that may make network connections as specified in allowed[]. targetServiceAccounts cannot be used at the same time as targetTags or sourceTags. If neither targetServiceAccounts nor targetTags are specified, the firewall rule applies to all instances on the specified network. 721 * </pre> 722 * 723 * <code>repeated string target_service_accounts = 457639710;</code> 724 * 725 * @return The count of targetServiceAccounts. 726 */ getTargetServiceAccountsCount()727 int getTargetServiceAccountsCount(); 728 /** 729 * 730 * 731 * <pre> 732 * A list of service accounts indicating sets of instances located in the network that may make network connections as specified in allowed[]. targetServiceAccounts cannot be used at the same time as targetTags or sourceTags. If neither targetServiceAccounts nor targetTags are specified, the firewall rule applies to all instances on the specified network. 733 * </pre> 734 * 735 * <code>repeated string target_service_accounts = 457639710;</code> 736 * 737 * @param index The index of the element to return. 738 * @return The targetServiceAccounts at the given index. 739 */ getTargetServiceAccounts(int index)740 java.lang.String getTargetServiceAccounts(int index); 741 /** 742 * 743 * 744 * <pre> 745 * A list of service accounts indicating sets of instances located in the network that may make network connections as specified in allowed[]. targetServiceAccounts cannot be used at the same time as targetTags or sourceTags. If neither targetServiceAccounts nor targetTags are specified, the firewall rule applies to all instances on the specified network. 746 * </pre> 747 * 748 * <code>repeated string target_service_accounts = 457639710;</code> 749 * 750 * @param index The index of the value to return. 751 * @return The bytes of the targetServiceAccounts at the given index. 752 */ getTargetServiceAccountsBytes(int index)753 com.google.protobuf.ByteString getTargetServiceAccountsBytes(int index); 754 755 /** 756 * 757 * 758 * <pre> 759 * A list of tags that controls which instances the firewall rule applies to. If targetTags are specified, then the firewall rule applies only to instances in the VPC network that have one of those tags. If no targetTags are specified, the firewall rule applies to all instances on the specified network. 760 * </pre> 761 * 762 * <code>repeated string target_tags = 62901767;</code> 763 * 764 * @return A list containing the targetTags. 765 */ getTargetTagsList()766 java.util.List<java.lang.String> getTargetTagsList(); 767 /** 768 * 769 * 770 * <pre> 771 * A list of tags that controls which instances the firewall rule applies to. If targetTags are specified, then the firewall rule applies only to instances in the VPC network that have one of those tags. If no targetTags are specified, the firewall rule applies to all instances on the specified network. 772 * </pre> 773 * 774 * <code>repeated string target_tags = 62901767;</code> 775 * 776 * @return The count of targetTags. 777 */ getTargetTagsCount()778 int getTargetTagsCount(); 779 /** 780 * 781 * 782 * <pre> 783 * A list of tags that controls which instances the firewall rule applies to. If targetTags are specified, then the firewall rule applies only to instances in the VPC network that have one of those tags. If no targetTags are specified, the firewall rule applies to all instances on the specified network. 784 * </pre> 785 * 786 * <code>repeated string target_tags = 62901767;</code> 787 * 788 * @param index The index of the element to return. 789 * @return The targetTags at the given index. 790 */ getTargetTags(int index)791 java.lang.String getTargetTags(int index); 792 /** 793 * 794 * 795 * <pre> 796 * A list of tags that controls which instances the firewall rule applies to. If targetTags are specified, then the firewall rule applies only to instances in the VPC network that have one of those tags. If no targetTags are specified, the firewall rule applies to all instances on the specified network. 797 * </pre> 798 * 799 * <code>repeated string target_tags = 62901767;</code> 800 * 801 * @param index The index of the value to return. 802 * @return The bytes of the targetTags at the given index. 803 */ getTargetTagsBytes(int index)804 com.google.protobuf.ByteString getTargetTagsBytes(int index); 805 } 806