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 FirewallPolicyOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.FirewallPolicy) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * A list of associations that belong to this firewall policy. 31 * </pre> 32 * 33 * <code>repeated .google.cloud.compute.v1.FirewallPolicyAssociation associations = 508736530; 34 * </code> 35 */ getAssociationsList()36 java.util.List<com.google.cloud.compute.v1.FirewallPolicyAssociation> getAssociationsList(); 37 /** 38 * 39 * 40 * <pre> 41 * A list of associations that belong to this firewall policy. 42 * </pre> 43 * 44 * <code>repeated .google.cloud.compute.v1.FirewallPolicyAssociation associations = 508736530; 45 * </code> 46 */ getAssociations(int index)47 com.google.cloud.compute.v1.FirewallPolicyAssociation getAssociations(int index); 48 /** 49 * 50 * 51 * <pre> 52 * A list of associations that belong to this firewall policy. 53 * </pre> 54 * 55 * <code>repeated .google.cloud.compute.v1.FirewallPolicyAssociation associations = 508736530; 56 * </code> 57 */ getAssociationsCount()58 int getAssociationsCount(); 59 /** 60 * 61 * 62 * <pre> 63 * A list of associations that belong to this firewall policy. 64 * </pre> 65 * 66 * <code>repeated .google.cloud.compute.v1.FirewallPolicyAssociation associations = 508736530; 67 * </code> 68 */ 69 java.util.List<? extends com.google.cloud.compute.v1.FirewallPolicyAssociationOrBuilder> getAssociationsOrBuilderList()70 getAssociationsOrBuilderList(); 71 /** 72 * 73 * 74 * <pre> 75 * A list of associations that belong to this firewall policy. 76 * </pre> 77 * 78 * <code>repeated .google.cloud.compute.v1.FirewallPolicyAssociation associations = 508736530; 79 * </code> 80 */ getAssociationsOrBuilder( int index)81 com.google.cloud.compute.v1.FirewallPolicyAssociationOrBuilder getAssociationsOrBuilder( 82 int index); 83 84 /** 85 * 86 * 87 * <pre> 88 * [Output Only] Creation timestamp in RFC3339 text format. 89 * </pre> 90 * 91 * <code>optional string creation_timestamp = 30525366;</code> 92 * 93 * @return Whether the creationTimestamp field is set. 94 */ hasCreationTimestamp()95 boolean hasCreationTimestamp(); 96 /** 97 * 98 * 99 * <pre> 100 * [Output Only] Creation timestamp in RFC3339 text format. 101 * </pre> 102 * 103 * <code>optional string creation_timestamp = 30525366;</code> 104 * 105 * @return The creationTimestamp. 106 */ getCreationTimestamp()107 java.lang.String getCreationTimestamp(); 108 /** 109 * 110 * 111 * <pre> 112 * [Output Only] Creation timestamp in RFC3339 text format. 113 * </pre> 114 * 115 * <code>optional string creation_timestamp = 30525366;</code> 116 * 117 * @return The bytes for creationTimestamp. 118 */ getCreationTimestampBytes()119 com.google.protobuf.ByteString getCreationTimestampBytes(); 120 121 /** 122 * 123 * 124 * <pre> 125 * An optional description of this resource. Provide this property when you create the resource. 126 * </pre> 127 * 128 * <code>optional string description = 422937596;</code> 129 * 130 * @return Whether the description field is set. 131 */ hasDescription()132 boolean hasDescription(); 133 /** 134 * 135 * 136 * <pre> 137 * An optional description of this resource. Provide this property when you create the resource. 138 * </pre> 139 * 140 * <code>optional string description = 422937596;</code> 141 * 142 * @return The description. 143 */ getDescription()144 java.lang.String getDescription(); 145 /** 146 * 147 * 148 * <pre> 149 * An optional description of this resource. Provide this property when you create the resource. 150 * </pre> 151 * 152 * <code>optional string description = 422937596;</code> 153 * 154 * @return The bytes for description. 155 */ getDescriptionBytes()156 com.google.protobuf.ByteString getDescriptionBytes(); 157 158 /** 159 * 160 * 161 * <pre> 162 * Deprecated, please use short name instead. User-provided name of the Organization firewall policy. The name should be unique in the organization in which the firewall policy is created. This field is not applicable to network firewall policies. This name must be set on creation and cannot be changed. 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])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 163 * </pre> 164 * 165 * <code>optional string display_name = 4473832;</code> 166 * 167 * @return Whether the displayName field is set. 168 */ hasDisplayName()169 boolean hasDisplayName(); 170 /** 171 * 172 * 173 * <pre> 174 * Deprecated, please use short name instead. User-provided name of the Organization firewall policy. The name should be unique in the organization in which the firewall policy is created. This field is not applicable to network firewall policies. This name must be set on creation and cannot be changed. 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])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 175 * </pre> 176 * 177 * <code>optional string display_name = 4473832;</code> 178 * 179 * @return The displayName. 180 */ getDisplayName()181 java.lang.String getDisplayName(); 182 /** 183 * 184 * 185 * <pre> 186 * Deprecated, please use short name instead. User-provided name of the Organization firewall policy. The name should be unique in the organization in which the firewall policy is created. This field is not applicable to network firewall policies. This name must be set on creation and cannot be changed. 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])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 187 * </pre> 188 * 189 * <code>optional string display_name = 4473832;</code> 190 * 191 * @return The bytes for displayName. 192 */ getDisplayNameBytes()193 com.google.protobuf.ByteString getDisplayNameBytes(); 194 195 /** 196 * 197 * 198 * <pre> 199 * Specifies a fingerprint for this resource, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make get() request to the firewall policy. 200 * </pre> 201 * 202 * <code>optional string fingerprint = 234678500;</code> 203 * 204 * @return Whether the fingerprint field is set. 205 */ hasFingerprint()206 boolean hasFingerprint(); 207 /** 208 * 209 * 210 * <pre> 211 * Specifies a fingerprint for this resource, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make get() request to the firewall policy. 212 * </pre> 213 * 214 * <code>optional string fingerprint = 234678500;</code> 215 * 216 * @return The fingerprint. 217 */ getFingerprint()218 java.lang.String getFingerprint(); 219 /** 220 * 221 * 222 * <pre> 223 * Specifies a fingerprint for this resource, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make get() request to the firewall policy. 224 * </pre> 225 * 226 * <code>optional string fingerprint = 234678500;</code> 227 * 228 * @return The bytes for fingerprint. 229 */ getFingerprintBytes()230 com.google.protobuf.ByteString getFingerprintBytes(); 231 232 /** 233 * 234 * 235 * <pre> 236 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. 237 * </pre> 238 * 239 * <code>optional uint64 id = 3355;</code> 240 * 241 * @return Whether the id field is set. 242 */ hasId()243 boolean hasId(); 244 /** 245 * 246 * 247 * <pre> 248 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. 249 * </pre> 250 * 251 * <code>optional uint64 id = 3355;</code> 252 * 253 * @return The id. 254 */ getId()255 long getId(); 256 257 /** 258 * 259 * 260 * <pre> 261 * [Output only] Type of the resource. Always compute#firewallPolicyfor firewall policies 262 * </pre> 263 * 264 * <code>optional string kind = 3292052;</code> 265 * 266 * @return Whether the kind field is set. 267 */ hasKind()268 boolean hasKind(); 269 /** 270 * 271 * 272 * <pre> 273 * [Output only] Type of the resource. Always compute#firewallPolicyfor firewall policies 274 * </pre> 275 * 276 * <code>optional string kind = 3292052;</code> 277 * 278 * @return The kind. 279 */ getKind()280 java.lang.String getKind(); 281 /** 282 * 283 * 284 * <pre> 285 * [Output only] Type of the resource. Always compute#firewallPolicyfor firewall policies 286 * </pre> 287 * 288 * <code>optional string kind = 3292052;</code> 289 * 290 * @return The bytes for kind. 291 */ getKindBytes()292 com.google.protobuf.ByteString getKindBytes(); 293 294 /** 295 * 296 * 297 * <pre> 298 * Name of the resource. For Organization Firewall Policies it's a [Output Only] numeric ID allocated by Google Cloud which uniquely identifies the Organization Firewall Policy. 299 * </pre> 300 * 301 * <code>optional string name = 3373707;</code> 302 * 303 * @return Whether the name field is set. 304 */ hasName()305 boolean hasName(); 306 /** 307 * 308 * 309 * <pre> 310 * Name of the resource. For Organization Firewall Policies it's a [Output Only] numeric ID allocated by Google Cloud which uniquely identifies the Organization Firewall Policy. 311 * </pre> 312 * 313 * <code>optional string name = 3373707;</code> 314 * 315 * @return The name. 316 */ getName()317 java.lang.String getName(); 318 /** 319 * 320 * 321 * <pre> 322 * Name of the resource. For Organization Firewall Policies it's a [Output Only] numeric ID allocated by Google Cloud which uniquely identifies the Organization Firewall Policy. 323 * </pre> 324 * 325 * <code>optional string name = 3373707;</code> 326 * 327 * @return The bytes for name. 328 */ getNameBytes()329 com.google.protobuf.ByteString getNameBytes(); 330 331 /** 332 * 333 * 334 * <pre> 335 * [Output Only] The parent of the firewall policy. This field is not applicable to network firewall policies. 336 * </pre> 337 * 338 * <code>optional string parent = 78317738;</code> 339 * 340 * @return Whether the parent field is set. 341 */ hasParent()342 boolean hasParent(); 343 /** 344 * 345 * 346 * <pre> 347 * [Output Only] The parent of the firewall policy. This field is not applicable to network firewall policies. 348 * </pre> 349 * 350 * <code>optional string parent = 78317738;</code> 351 * 352 * @return The parent. 353 */ getParent()354 java.lang.String getParent(); 355 /** 356 * 357 * 358 * <pre> 359 * [Output Only] The parent of the firewall policy. This field is not applicable to network firewall policies. 360 * </pre> 361 * 362 * <code>optional string parent = 78317738;</code> 363 * 364 * @return The bytes for parent. 365 */ getParentBytes()366 com.google.protobuf.ByteString getParentBytes(); 367 368 /** 369 * 370 * 371 * <pre> 372 * [Output Only] URL of the region where the regional firewall policy resides. This field is not applicable to global firewall policies. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. 373 * </pre> 374 * 375 * <code>optional string region = 138946292;</code> 376 * 377 * @return Whether the region field is set. 378 */ hasRegion()379 boolean hasRegion(); 380 /** 381 * 382 * 383 * <pre> 384 * [Output Only] URL of the region where the regional firewall policy resides. This field is not applicable to global firewall policies. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. 385 * </pre> 386 * 387 * <code>optional string region = 138946292;</code> 388 * 389 * @return The region. 390 */ getRegion()391 java.lang.String getRegion(); 392 /** 393 * 394 * 395 * <pre> 396 * [Output Only] URL of the region where the regional firewall policy resides. This field is not applicable to global firewall policies. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. 397 * </pre> 398 * 399 * <code>optional string region = 138946292;</code> 400 * 401 * @return The bytes for region. 402 */ getRegionBytes()403 com.google.protobuf.ByteString getRegionBytes(); 404 405 /** 406 * 407 * 408 * <pre> 409 * [Output Only] Total count of all firewall policy rule tuples. A firewall policy can not exceed a set number of tuples. 410 * </pre> 411 * 412 * <code>optional int32 rule_tuple_count = 388342037;</code> 413 * 414 * @return Whether the ruleTupleCount field is set. 415 */ hasRuleTupleCount()416 boolean hasRuleTupleCount(); 417 /** 418 * 419 * 420 * <pre> 421 * [Output Only] Total count of all firewall policy rule tuples. A firewall policy can not exceed a set number of tuples. 422 * </pre> 423 * 424 * <code>optional int32 rule_tuple_count = 388342037;</code> 425 * 426 * @return The ruleTupleCount. 427 */ getRuleTupleCount()428 int getRuleTupleCount(); 429 430 /** 431 * 432 * 433 * <pre> 434 * A list of rules that belong to this policy. There must always be a default rule (rule with priority 2147483647 and match "*"). If no rules are provided when creating a firewall policy, a default rule with action "allow" will be added. 435 * </pre> 436 * 437 * <code>repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975;</code> 438 */ getRulesList()439 java.util.List<com.google.cloud.compute.v1.FirewallPolicyRule> getRulesList(); 440 /** 441 * 442 * 443 * <pre> 444 * A list of rules that belong to this policy. There must always be a default rule (rule with priority 2147483647 and match "*"). If no rules are provided when creating a firewall policy, a default rule with action "allow" will be added. 445 * </pre> 446 * 447 * <code>repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975;</code> 448 */ getRules(int index)449 com.google.cloud.compute.v1.FirewallPolicyRule getRules(int index); 450 /** 451 * 452 * 453 * <pre> 454 * A list of rules that belong to this policy. There must always be a default rule (rule with priority 2147483647 and match "*"). If no rules are provided when creating a firewall policy, a default rule with action "allow" will be added. 455 * </pre> 456 * 457 * <code>repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975;</code> 458 */ getRulesCount()459 int getRulesCount(); 460 /** 461 * 462 * 463 * <pre> 464 * A list of rules that belong to this policy. There must always be a default rule (rule with priority 2147483647 and match "*"). If no rules are provided when creating a firewall policy, a default rule with action "allow" will be added. 465 * </pre> 466 * 467 * <code>repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975;</code> 468 */ 469 java.util.List<? extends com.google.cloud.compute.v1.FirewallPolicyRuleOrBuilder> getRulesOrBuilderList()470 getRulesOrBuilderList(); 471 /** 472 * 473 * 474 * <pre> 475 * A list of rules that belong to this policy. There must always be a default rule (rule with priority 2147483647 and match "*"). If no rules are provided when creating a firewall policy, a default rule with action "allow" will be added. 476 * </pre> 477 * 478 * <code>repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975;</code> 479 */ getRulesOrBuilder(int index)480 com.google.cloud.compute.v1.FirewallPolicyRuleOrBuilder getRulesOrBuilder(int index); 481 482 /** 483 * 484 * 485 * <pre> 486 * [Output Only] Server-defined URL for the resource. 487 * </pre> 488 * 489 * <code>optional string self_link = 456214797;</code> 490 * 491 * @return Whether the selfLink field is set. 492 */ hasSelfLink()493 boolean hasSelfLink(); 494 /** 495 * 496 * 497 * <pre> 498 * [Output Only] Server-defined URL for the resource. 499 * </pre> 500 * 501 * <code>optional string self_link = 456214797;</code> 502 * 503 * @return The selfLink. 504 */ getSelfLink()505 java.lang.String getSelfLink(); 506 /** 507 * 508 * 509 * <pre> 510 * [Output Only] Server-defined URL for the resource. 511 * </pre> 512 * 513 * <code>optional string self_link = 456214797;</code> 514 * 515 * @return The bytes for selfLink. 516 */ getSelfLinkBytes()517 com.google.protobuf.ByteString getSelfLinkBytes(); 518 519 /** 520 * 521 * 522 * <pre> 523 * [Output Only] Server-defined URL for this resource with the resource id. 524 * </pre> 525 * 526 * <code>optional string self_link_with_id = 44520962;</code> 527 * 528 * @return Whether the selfLinkWithId field is set. 529 */ hasSelfLinkWithId()530 boolean hasSelfLinkWithId(); 531 /** 532 * 533 * 534 * <pre> 535 * [Output Only] Server-defined URL for this resource with the resource id. 536 * </pre> 537 * 538 * <code>optional string self_link_with_id = 44520962;</code> 539 * 540 * @return The selfLinkWithId. 541 */ getSelfLinkWithId()542 java.lang.String getSelfLinkWithId(); 543 /** 544 * 545 * 546 * <pre> 547 * [Output Only] Server-defined URL for this resource with the resource id. 548 * </pre> 549 * 550 * <code>optional string self_link_with_id = 44520962;</code> 551 * 552 * @return The bytes for selfLinkWithId. 553 */ getSelfLinkWithIdBytes()554 com.google.protobuf.ByteString getSelfLinkWithIdBytes(); 555 556 /** 557 * 558 * 559 * <pre> 560 * User-provided name of the Organization firewall policy. The name should be unique in the organization in which the firewall policy is created. This field is not applicable to network firewall policies. This name must be set on creation and cannot be changed. 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])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 561 * </pre> 562 * 563 * <code>optional string short_name = 492051566;</code> 564 * 565 * @return Whether the shortName field is set. 566 */ hasShortName()567 boolean hasShortName(); 568 /** 569 * 570 * 571 * <pre> 572 * User-provided name of the Organization firewall policy. The name should be unique in the organization in which the firewall policy is created. This field is not applicable to network firewall policies. This name must be set on creation and cannot be changed. 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])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 573 * </pre> 574 * 575 * <code>optional string short_name = 492051566;</code> 576 * 577 * @return The shortName. 578 */ getShortName()579 java.lang.String getShortName(); 580 /** 581 * 582 * 583 * <pre> 584 * User-provided name of the Organization firewall policy. The name should be unique in the organization in which the firewall policy is created. This field is not applicable to network firewall policies. This name must be set on creation and cannot be changed. 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])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 585 * </pre> 586 * 587 * <code>optional string short_name = 492051566;</code> 588 * 589 * @return The bytes for shortName. 590 */ getShortNameBytes()591 com.google.protobuf.ByteString getShortNameBytes(); 592 } 593