1 /* 2 * Copyright 2019 The Grafeas Authors. All rights reserved. 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 17 // Generated by the protocol buffer compiler. DO NOT EDIT! 18 // source: grafeas/v1/intoto_provenance.proto 19 20 package io.grafeas.v1; 21 22 /** 23 * 24 * 25 * <pre> 26 * Steps taken to build the artifact. 27 * For a TaskRun, typically each container corresponds to one step in the 28 * recipe. 29 * </pre> 30 * 31 * Protobuf type {@code grafeas.v1.Recipe} 32 */ 33 public final class Recipe extends com.google.protobuf.GeneratedMessageV3 34 implements 35 // @@protoc_insertion_point(message_implements:grafeas.v1.Recipe) 36 RecipeOrBuilder { 37 private static final long serialVersionUID = 0L; 38 // Use Recipe.newBuilder() to construct. Recipe(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)39 private Recipe(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 40 super(builder); 41 } 42 Recipe()43 private Recipe() { 44 type_ = ""; 45 entryPoint_ = ""; 46 arguments_ = java.util.Collections.emptyList(); 47 environment_ = java.util.Collections.emptyList(); 48 } 49 50 @java.lang.Override 51 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)52 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 53 return new Recipe(); 54 } 55 56 @java.lang.Override getUnknownFields()57 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 58 return this.unknownFields; 59 } 60 getDescriptor()61 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 62 return io.grafeas.v1.InTotoProvenanceProto.internal_static_grafeas_v1_Recipe_descriptor; 63 } 64 65 @java.lang.Override 66 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()67 internalGetFieldAccessorTable() { 68 return io.grafeas.v1.InTotoProvenanceProto.internal_static_grafeas_v1_Recipe_fieldAccessorTable 69 .ensureFieldAccessorsInitialized( 70 io.grafeas.v1.Recipe.class, io.grafeas.v1.Recipe.Builder.class); 71 } 72 73 public static final int TYPE_FIELD_NUMBER = 1; 74 75 @SuppressWarnings("serial") 76 private volatile java.lang.Object type_ = ""; 77 /** 78 * 79 * 80 * <pre> 81 * URI indicating what type of recipe was performed. It determines the meaning 82 * of recipe.entryPoint, recipe.arguments, recipe.environment, and materials. 83 * </pre> 84 * 85 * <code>string type = 1;</code> 86 * 87 * @return The type. 88 */ 89 @java.lang.Override getType()90 public java.lang.String getType() { 91 java.lang.Object ref = type_; 92 if (ref instanceof java.lang.String) { 93 return (java.lang.String) ref; 94 } else { 95 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 96 java.lang.String s = bs.toStringUtf8(); 97 type_ = s; 98 return s; 99 } 100 } 101 /** 102 * 103 * 104 * <pre> 105 * URI indicating what type of recipe was performed. It determines the meaning 106 * of recipe.entryPoint, recipe.arguments, recipe.environment, and materials. 107 * </pre> 108 * 109 * <code>string type = 1;</code> 110 * 111 * @return The bytes for type. 112 */ 113 @java.lang.Override getTypeBytes()114 public com.google.protobuf.ByteString getTypeBytes() { 115 java.lang.Object ref = type_; 116 if (ref instanceof java.lang.String) { 117 com.google.protobuf.ByteString b = 118 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 119 type_ = b; 120 return b; 121 } else { 122 return (com.google.protobuf.ByteString) ref; 123 } 124 } 125 126 public static final int DEFINED_IN_MATERIAL_FIELD_NUMBER = 2; 127 private long definedInMaterial_ = 0L; 128 /** 129 * 130 * 131 * <pre> 132 * Index in materials containing the recipe steps that are not implied by 133 * recipe.type. For example, if the recipe type were "make", then this would 134 * point to the source containing the Makefile, not the make program itself. 135 * Set to -1 if the recipe doesn't come from a material, as zero is default 136 * unset value for int64. 137 * </pre> 138 * 139 * <code>int64 defined_in_material = 2;</code> 140 * 141 * @return The definedInMaterial. 142 */ 143 @java.lang.Override getDefinedInMaterial()144 public long getDefinedInMaterial() { 145 return definedInMaterial_; 146 } 147 148 public static final int ENTRY_POINT_FIELD_NUMBER = 3; 149 150 @SuppressWarnings("serial") 151 private volatile java.lang.Object entryPoint_ = ""; 152 /** 153 * 154 * 155 * <pre> 156 * String identifying the entry point into the build. 157 * This is often a path to a configuration file and/or a target label within 158 * that file. The syntax and meaning are defined by recipe.type. For example, 159 * if the recipe type were "make", then this would reference the directory in 160 * which to run make as well as which target to use. 161 * </pre> 162 * 163 * <code>string entry_point = 3;</code> 164 * 165 * @return The entryPoint. 166 */ 167 @java.lang.Override getEntryPoint()168 public java.lang.String getEntryPoint() { 169 java.lang.Object ref = entryPoint_; 170 if (ref instanceof java.lang.String) { 171 return (java.lang.String) ref; 172 } else { 173 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 174 java.lang.String s = bs.toStringUtf8(); 175 entryPoint_ = s; 176 return s; 177 } 178 } 179 /** 180 * 181 * 182 * <pre> 183 * String identifying the entry point into the build. 184 * This is often a path to a configuration file and/or a target label within 185 * that file. The syntax and meaning are defined by recipe.type. For example, 186 * if the recipe type were "make", then this would reference the directory in 187 * which to run make as well as which target to use. 188 * </pre> 189 * 190 * <code>string entry_point = 3;</code> 191 * 192 * @return The bytes for entryPoint. 193 */ 194 @java.lang.Override getEntryPointBytes()195 public com.google.protobuf.ByteString getEntryPointBytes() { 196 java.lang.Object ref = entryPoint_; 197 if (ref instanceof java.lang.String) { 198 com.google.protobuf.ByteString b = 199 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 200 entryPoint_ = b; 201 return b; 202 } else { 203 return (com.google.protobuf.ByteString) ref; 204 } 205 } 206 207 public static final int ARGUMENTS_FIELD_NUMBER = 4; 208 209 @SuppressWarnings("serial") 210 private java.util.List<com.google.protobuf.Any> arguments_; 211 /** 212 * 213 * 214 * <pre> 215 * Collection of all external inputs that influenced the build on top of 216 * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe 217 * type were "make", then this might be the flags passed to make aside from 218 * the target, which is captured in recipe.entryPoint. Since the arguments 219 * field can greatly vary in structure, depending on the builder and recipe 220 * type, this is of form "Any". 221 * </pre> 222 * 223 * <code>repeated .google.protobuf.Any arguments = 4;</code> 224 */ 225 @java.lang.Override getArgumentsList()226 public java.util.List<com.google.protobuf.Any> getArgumentsList() { 227 return arguments_; 228 } 229 /** 230 * 231 * 232 * <pre> 233 * Collection of all external inputs that influenced the build on top of 234 * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe 235 * type were "make", then this might be the flags passed to make aside from 236 * the target, which is captured in recipe.entryPoint. Since the arguments 237 * field can greatly vary in structure, depending on the builder and recipe 238 * type, this is of form "Any". 239 * </pre> 240 * 241 * <code>repeated .google.protobuf.Any arguments = 4;</code> 242 */ 243 @java.lang.Override getArgumentsOrBuilderList()244 public java.util.List<? extends com.google.protobuf.AnyOrBuilder> getArgumentsOrBuilderList() { 245 return arguments_; 246 } 247 /** 248 * 249 * 250 * <pre> 251 * Collection of all external inputs that influenced the build on top of 252 * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe 253 * type were "make", then this might be the flags passed to make aside from 254 * the target, which is captured in recipe.entryPoint. Since the arguments 255 * field can greatly vary in structure, depending on the builder and recipe 256 * type, this is of form "Any". 257 * </pre> 258 * 259 * <code>repeated .google.protobuf.Any arguments = 4;</code> 260 */ 261 @java.lang.Override getArgumentsCount()262 public int getArgumentsCount() { 263 return arguments_.size(); 264 } 265 /** 266 * 267 * 268 * <pre> 269 * Collection of all external inputs that influenced the build on top of 270 * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe 271 * type were "make", then this might be the flags passed to make aside from 272 * the target, which is captured in recipe.entryPoint. Since the arguments 273 * field can greatly vary in structure, depending on the builder and recipe 274 * type, this is of form "Any". 275 * </pre> 276 * 277 * <code>repeated .google.protobuf.Any arguments = 4;</code> 278 */ 279 @java.lang.Override getArguments(int index)280 public com.google.protobuf.Any getArguments(int index) { 281 return arguments_.get(index); 282 } 283 /** 284 * 285 * 286 * <pre> 287 * Collection of all external inputs that influenced the build on top of 288 * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe 289 * type were "make", then this might be the flags passed to make aside from 290 * the target, which is captured in recipe.entryPoint. Since the arguments 291 * field can greatly vary in structure, depending on the builder and recipe 292 * type, this is of form "Any". 293 * </pre> 294 * 295 * <code>repeated .google.protobuf.Any arguments = 4;</code> 296 */ 297 @java.lang.Override getArgumentsOrBuilder(int index)298 public com.google.protobuf.AnyOrBuilder getArgumentsOrBuilder(int index) { 299 return arguments_.get(index); 300 } 301 302 public static final int ENVIRONMENT_FIELD_NUMBER = 5; 303 304 @SuppressWarnings("serial") 305 private java.util.List<com.google.protobuf.Any> environment_; 306 /** 307 * 308 * 309 * <pre> 310 * Any other builder-controlled inputs necessary for correctly evaluating the 311 * recipe. Usually only needed for reproducing the build but not evaluated as 312 * part of policy. Since the environment field can greatly vary in structure, 313 * depending on the builder and recipe type, this is of form "Any". 314 * </pre> 315 * 316 * <code>repeated .google.protobuf.Any environment = 5;</code> 317 */ 318 @java.lang.Override getEnvironmentList()319 public java.util.List<com.google.protobuf.Any> getEnvironmentList() { 320 return environment_; 321 } 322 /** 323 * 324 * 325 * <pre> 326 * Any other builder-controlled inputs necessary for correctly evaluating the 327 * recipe. Usually only needed for reproducing the build but not evaluated as 328 * part of policy. Since the environment field can greatly vary in structure, 329 * depending on the builder and recipe type, this is of form "Any". 330 * </pre> 331 * 332 * <code>repeated .google.protobuf.Any environment = 5;</code> 333 */ 334 @java.lang.Override getEnvironmentOrBuilderList()335 public java.util.List<? extends com.google.protobuf.AnyOrBuilder> getEnvironmentOrBuilderList() { 336 return environment_; 337 } 338 /** 339 * 340 * 341 * <pre> 342 * Any other builder-controlled inputs necessary for correctly evaluating the 343 * recipe. Usually only needed for reproducing the build but not evaluated as 344 * part of policy. Since the environment field can greatly vary in structure, 345 * depending on the builder and recipe type, this is of form "Any". 346 * </pre> 347 * 348 * <code>repeated .google.protobuf.Any environment = 5;</code> 349 */ 350 @java.lang.Override getEnvironmentCount()351 public int getEnvironmentCount() { 352 return environment_.size(); 353 } 354 /** 355 * 356 * 357 * <pre> 358 * Any other builder-controlled inputs necessary for correctly evaluating the 359 * recipe. Usually only needed for reproducing the build but not evaluated as 360 * part of policy. Since the environment field can greatly vary in structure, 361 * depending on the builder and recipe type, this is of form "Any". 362 * </pre> 363 * 364 * <code>repeated .google.protobuf.Any environment = 5;</code> 365 */ 366 @java.lang.Override getEnvironment(int index)367 public com.google.protobuf.Any getEnvironment(int index) { 368 return environment_.get(index); 369 } 370 /** 371 * 372 * 373 * <pre> 374 * Any other builder-controlled inputs necessary for correctly evaluating the 375 * recipe. Usually only needed for reproducing the build but not evaluated as 376 * part of policy. Since the environment field can greatly vary in structure, 377 * depending on the builder and recipe type, this is of form "Any". 378 * </pre> 379 * 380 * <code>repeated .google.protobuf.Any environment = 5;</code> 381 */ 382 @java.lang.Override getEnvironmentOrBuilder(int index)383 public com.google.protobuf.AnyOrBuilder getEnvironmentOrBuilder(int index) { 384 return environment_.get(index); 385 } 386 387 private byte memoizedIsInitialized = -1; 388 389 @java.lang.Override isInitialized()390 public final boolean isInitialized() { 391 byte isInitialized = memoizedIsInitialized; 392 if (isInitialized == 1) return true; 393 if (isInitialized == 0) return false; 394 395 memoizedIsInitialized = 1; 396 return true; 397 } 398 399 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)400 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 401 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { 402 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); 403 } 404 if (definedInMaterial_ != 0L) { 405 output.writeInt64(2, definedInMaterial_); 406 } 407 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryPoint_)) { 408 com.google.protobuf.GeneratedMessageV3.writeString(output, 3, entryPoint_); 409 } 410 for (int i = 0; i < arguments_.size(); i++) { 411 output.writeMessage(4, arguments_.get(i)); 412 } 413 for (int i = 0; i < environment_.size(); i++) { 414 output.writeMessage(5, environment_.get(i)); 415 } 416 getUnknownFields().writeTo(output); 417 } 418 419 @java.lang.Override getSerializedSize()420 public int getSerializedSize() { 421 int size = memoizedSize; 422 if (size != -1) return size; 423 424 size = 0; 425 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { 426 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); 427 } 428 if (definedInMaterial_ != 0L) { 429 size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, definedInMaterial_); 430 } 431 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryPoint_)) { 432 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, entryPoint_); 433 } 434 for (int i = 0; i < arguments_.size(); i++) { 435 size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, arguments_.get(i)); 436 } 437 for (int i = 0; i < environment_.size(); i++) { 438 size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, environment_.get(i)); 439 } 440 size += getUnknownFields().getSerializedSize(); 441 memoizedSize = size; 442 return size; 443 } 444 445 @java.lang.Override equals(final java.lang.Object obj)446 public boolean equals(final java.lang.Object obj) { 447 if (obj == this) { 448 return true; 449 } 450 if (!(obj instanceof io.grafeas.v1.Recipe)) { 451 return super.equals(obj); 452 } 453 io.grafeas.v1.Recipe other = (io.grafeas.v1.Recipe) obj; 454 455 if (!getType().equals(other.getType())) return false; 456 if (getDefinedInMaterial() != other.getDefinedInMaterial()) return false; 457 if (!getEntryPoint().equals(other.getEntryPoint())) return false; 458 if (!getArgumentsList().equals(other.getArgumentsList())) return false; 459 if (!getEnvironmentList().equals(other.getEnvironmentList())) return false; 460 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 461 return true; 462 } 463 464 @java.lang.Override hashCode()465 public int hashCode() { 466 if (memoizedHashCode != 0) { 467 return memoizedHashCode; 468 } 469 int hash = 41; 470 hash = (19 * hash) + getDescriptor().hashCode(); 471 hash = (37 * hash) + TYPE_FIELD_NUMBER; 472 hash = (53 * hash) + getType().hashCode(); 473 hash = (37 * hash) + DEFINED_IN_MATERIAL_FIELD_NUMBER; 474 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDefinedInMaterial()); 475 hash = (37 * hash) + ENTRY_POINT_FIELD_NUMBER; 476 hash = (53 * hash) + getEntryPoint().hashCode(); 477 if (getArgumentsCount() > 0) { 478 hash = (37 * hash) + ARGUMENTS_FIELD_NUMBER; 479 hash = (53 * hash) + getArgumentsList().hashCode(); 480 } 481 if (getEnvironmentCount() > 0) { 482 hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER; 483 hash = (53 * hash) + getEnvironmentList().hashCode(); 484 } 485 hash = (29 * hash) + getUnknownFields().hashCode(); 486 memoizedHashCode = hash; 487 return hash; 488 } 489 parseFrom(java.nio.ByteBuffer data)490 public static io.grafeas.v1.Recipe parseFrom(java.nio.ByteBuffer data) 491 throws com.google.protobuf.InvalidProtocolBufferException { 492 return PARSER.parseFrom(data); 493 } 494 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)495 public static io.grafeas.v1.Recipe parseFrom( 496 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 497 throws com.google.protobuf.InvalidProtocolBufferException { 498 return PARSER.parseFrom(data, extensionRegistry); 499 } 500 parseFrom(com.google.protobuf.ByteString data)501 public static io.grafeas.v1.Recipe parseFrom(com.google.protobuf.ByteString data) 502 throws com.google.protobuf.InvalidProtocolBufferException { 503 return PARSER.parseFrom(data); 504 } 505 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)506 public static io.grafeas.v1.Recipe parseFrom( 507 com.google.protobuf.ByteString data, 508 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 509 throws com.google.protobuf.InvalidProtocolBufferException { 510 return PARSER.parseFrom(data, extensionRegistry); 511 } 512 parseFrom(byte[] data)513 public static io.grafeas.v1.Recipe parseFrom(byte[] data) 514 throws com.google.protobuf.InvalidProtocolBufferException { 515 return PARSER.parseFrom(data); 516 } 517 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)518 public static io.grafeas.v1.Recipe parseFrom( 519 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 520 throws com.google.protobuf.InvalidProtocolBufferException { 521 return PARSER.parseFrom(data, extensionRegistry); 522 } 523 parseFrom(java.io.InputStream input)524 public static io.grafeas.v1.Recipe parseFrom(java.io.InputStream input) 525 throws java.io.IOException { 526 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 527 } 528 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)529 public static io.grafeas.v1.Recipe parseFrom( 530 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 531 throws java.io.IOException { 532 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 533 PARSER, input, extensionRegistry); 534 } 535 parseDelimitedFrom(java.io.InputStream input)536 public static io.grafeas.v1.Recipe parseDelimitedFrom(java.io.InputStream input) 537 throws java.io.IOException { 538 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 539 } 540 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)541 public static io.grafeas.v1.Recipe parseDelimitedFrom( 542 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 543 throws java.io.IOException { 544 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 545 PARSER, input, extensionRegistry); 546 } 547 parseFrom(com.google.protobuf.CodedInputStream input)548 public static io.grafeas.v1.Recipe parseFrom(com.google.protobuf.CodedInputStream input) 549 throws java.io.IOException { 550 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 551 } 552 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)553 public static io.grafeas.v1.Recipe parseFrom( 554 com.google.protobuf.CodedInputStream input, 555 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 556 throws java.io.IOException { 557 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 558 PARSER, input, extensionRegistry); 559 } 560 561 @java.lang.Override newBuilderForType()562 public Builder newBuilderForType() { 563 return newBuilder(); 564 } 565 newBuilder()566 public static Builder newBuilder() { 567 return DEFAULT_INSTANCE.toBuilder(); 568 } 569 newBuilder(io.grafeas.v1.Recipe prototype)570 public static Builder newBuilder(io.grafeas.v1.Recipe prototype) { 571 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 572 } 573 574 @java.lang.Override toBuilder()575 public Builder toBuilder() { 576 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 577 } 578 579 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)580 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 581 Builder builder = new Builder(parent); 582 return builder; 583 } 584 /** 585 * 586 * 587 * <pre> 588 * Steps taken to build the artifact. 589 * For a TaskRun, typically each container corresponds to one step in the 590 * recipe. 591 * </pre> 592 * 593 * Protobuf type {@code grafeas.v1.Recipe} 594 */ 595 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 596 implements 597 // @@protoc_insertion_point(builder_implements:grafeas.v1.Recipe) 598 io.grafeas.v1.RecipeOrBuilder { getDescriptor()599 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 600 return io.grafeas.v1.InTotoProvenanceProto.internal_static_grafeas_v1_Recipe_descriptor; 601 } 602 603 @java.lang.Override 604 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()605 internalGetFieldAccessorTable() { 606 return io.grafeas.v1.InTotoProvenanceProto 607 .internal_static_grafeas_v1_Recipe_fieldAccessorTable 608 .ensureFieldAccessorsInitialized( 609 io.grafeas.v1.Recipe.class, io.grafeas.v1.Recipe.Builder.class); 610 } 611 612 // Construct using io.grafeas.v1.Recipe.newBuilder() Builder()613 private Builder() {} 614 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)615 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 616 super(parent); 617 } 618 619 @java.lang.Override clear()620 public Builder clear() { 621 super.clear(); 622 bitField0_ = 0; 623 type_ = ""; 624 definedInMaterial_ = 0L; 625 entryPoint_ = ""; 626 if (argumentsBuilder_ == null) { 627 arguments_ = java.util.Collections.emptyList(); 628 } else { 629 arguments_ = null; 630 argumentsBuilder_.clear(); 631 } 632 bitField0_ = (bitField0_ & ~0x00000008); 633 if (environmentBuilder_ == null) { 634 environment_ = java.util.Collections.emptyList(); 635 } else { 636 environment_ = null; 637 environmentBuilder_.clear(); 638 } 639 bitField0_ = (bitField0_ & ~0x00000010); 640 return this; 641 } 642 643 @java.lang.Override getDescriptorForType()644 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 645 return io.grafeas.v1.InTotoProvenanceProto.internal_static_grafeas_v1_Recipe_descriptor; 646 } 647 648 @java.lang.Override getDefaultInstanceForType()649 public io.grafeas.v1.Recipe getDefaultInstanceForType() { 650 return io.grafeas.v1.Recipe.getDefaultInstance(); 651 } 652 653 @java.lang.Override build()654 public io.grafeas.v1.Recipe build() { 655 io.grafeas.v1.Recipe result = buildPartial(); 656 if (!result.isInitialized()) { 657 throw newUninitializedMessageException(result); 658 } 659 return result; 660 } 661 662 @java.lang.Override buildPartial()663 public io.grafeas.v1.Recipe buildPartial() { 664 io.grafeas.v1.Recipe result = new io.grafeas.v1.Recipe(this); 665 buildPartialRepeatedFields(result); 666 if (bitField0_ != 0) { 667 buildPartial0(result); 668 } 669 onBuilt(); 670 return result; 671 } 672 buildPartialRepeatedFields(io.grafeas.v1.Recipe result)673 private void buildPartialRepeatedFields(io.grafeas.v1.Recipe result) { 674 if (argumentsBuilder_ == null) { 675 if (((bitField0_ & 0x00000008) != 0)) { 676 arguments_ = java.util.Collections.unmodifiableList(arguments_); 677 bitField0_ = (bitField0_ & ~0x00000008); 678 } 679 result.arguments_ = arguments_; 680 } else { 681 result.arguments_ = argumentsBuilder_.build(); 682 } 683 if (environmentBuilder_ == null) { 684 if (((bitField0_ & 0x00000010) != 0)) { 685 environment_ = java.util.Collections.unmodifiableList(environment_); 686 bitField0_ = (bitField0_ & ~0x00000010); 687 } 688 result.environment_ = environment_; 689 } else { 690 result.environment_ = environmentBuilder_.build(); 691 } 692 } 693 buildPartial0(io.grafeas.v1.Recipe result)694 private void buildPartial0(io.grafeas.v1.Recipe result) { 695 int from_bitField0_ = bitField0_; 696 if (((from_bitField0_ & 0x00000001) != 0)) { 697 result.type_ = type_; 698 } 699 if (((from_bitField0_ & 0x00000002) != 0)) { 700 result.definedInMaterial_ = definedInMaterial_; 701 } 702 if (((from_bitField0_ & 0x00000004) != 0)) { 703 result.entryPoint_ = entryPoint_; 704 } 705 } 706 707 @java.lang.Override clone()708 public Builder clone() { 709 return super.clone(); 710 } 711 712 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)713 public Builder setField( 714 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 715 return super.setField(field, value); 716 } 717 718 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)719 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 720 return super.clearField(field); 721 } 722 723 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)724 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 725 return super.clearOneof(oneof); 726 } 727 728 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)729 public Builder setRepeatedField( 730 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 731 return super.setRepeatedField(field, index, value); 732 } 733 734 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)735 public Builder addRepeatedField( 736 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 737 return super.addRepeatedField(field, value); 738 } 739 740 @java.lang.Override mergeFrom(com.google.protobuf.Message other)741 public Builder mergeFrom(com.google.protobuf.Message other) { 742 if (other instanceof io.grafeas.v1.Recipe) { 743 return mergeFrom((io.grafeas.v1.Recipe) other); 744 } else { 745 super.mergeFrom(other); 746 return this; 747 } 748 } 749 mergeFrom(io.grafeas.v1.Recipe other)750 public Builder mergeFrom(io.grafeas.v1.Recipe other) { 751 if (other == io.grafeas.v1.Recipe.getDefaultInstance()) return this; 752 if (!other.getType().isEmpty()) { 753 type_ = other.type_; 754 bitField0_ |= 0x00000001; 755 onChanged(); 756 } 757 if (other.getDefinedInMaterial() != 0L) { 758 setDefinedInMaterial(other.getDefinedInMaterial()); 759 } 760 if (!other.getEntryPoint().isEmpty()) { 761 entryPoint_ = other.entryPoint_; 762 bitField0_ |= 0x00000004; 763 onChanged(); 764 } 765 if (argumentsBuilder_ == null) { 766 if (!other.arguments_.isEmpty()) { 767 if (arguments_.isEmpty()) { 768 arguments_ = other.arguments_; 769 bitField0_ = (bitField0_ & ~0x00000008); 770 } else { 771 ensureArgumentsIsMutable(); 772 arguments_.addAll(other.arguments_); 773 } 774 onChanged(); 775 } 776 } else { 777 if (!other.arguments_.isEmpty()) { 778 if (argumentsBuilder_.isEmpty()) { 779 argumentsBuilder_.dispose(); 780 argumentsBuilder_ = null; 781 arguments_ = other.arguments_; 782 bitField0_ = (bitField0_ & ~0x00000008); 783 argumentsBuilder_ = 784 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 785 ? getArgumentsFieldBuilder() 786 : null; 787 } else { 788 argumentsBuilder_.addAllMessages(other.arguments_); 789 } 790 } 791 } 792 if (environmentBuilder_ == null) { 793 if (!other.environment_.isEmpty()) { 794 if (environment_.isEmpty()) { 795 environment_ = other.environment_; 796 bitField0_ = (bitField0_ & ~0x00000010); 797 } else { 798 ensureEnvironmentIsMutable(); 799 environment_.addAll(other.environment_); 800 } 801 onChanged(); 802 } 803 } else { 804 if (!other.environment_.isEmpty()) { 805 if (environmentBuilder_.isEmpty()) { 806 environmentBuilder_.dispose(); 807 environmentBuilder_ = null; 808 environment_ = other.environment_; 809 bitField0_ = (bitField0_ & ~0x00000010); 810 environmentBuilder_ = 811 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 812 ? getEnvironmentFieldBuilder() 813 : null; 814 } else { 815 environmentBuilder_.addAllMessages(other.environment_); 816 } 817 } 818 } 819 this.mergeUnknownFields(other.getUnknownFields()); 820 onChanged(); 821 return this; 822 } 823 824 @java.lang.Override isInitialized()825 public final boolean isInitialized() { 826 return true; 827 } 828 829 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)830 public Builder mergeFrom( 831 com.google.protobuf.CodedInputStream input, 832 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 833 throws java.io.IOException { 834 if (extensionRegistry == null) { 835 throw new java.lang.NullPointerException(); 836 } 837 try { 838 boolean done = false; 839 while (!done) { 840 int tag = input.readTag(); 841 switch (tag) { 842 case 0: 843 done = true; 844 break; 845 case 10: 846 { 847 type_ = input.readStringRequireUtf8(); 848 bitField0_ |= 0x00000001; 849 break; 850 } // case 10 851 case 16: 852 { 853 definedInMaterial_ = input.readInt64(); 854 bitField0_ |= 0x00000002; 855 break; 856 } // case 16 857 case 26: 858 { 859 entryPoint_ = input.readStringRequireUtf8(); 860 bitField0_ |= 0x00000004; 861 break; 862 } // case 26 863 case 34: 864 { 865 com.google.protobuf.Any m = 866 input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); 867 if (argumentsBuilder_ == null) { 868 ensureArgumentsIsMutable(); 869 arguments_.add(m); 870 } else { 871 argumentsBuilder_.addMessage(m); 872 } 873 break; 874 } // case 34 875 case 42: 876 { 877 com.google.protobuf.Any m = 878 input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); 879 if (environmentBuilder_ == null) { 880 ensureEnvironmentIsMutable(); 881 environment_.add(m); 882 } else { 883 environmentBuilder_.addMessage(m); 884 } 885 break; 886 } // case 42 887 default: 888 { 889 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 890 done = true; // was an endgroup tag 891 } 892 break; 893 } // default: 894 } // switch (tag) 895 } // while (!done) 896 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 897 throw e.unwrapIOException(); 898 } finally { 899 onChanged(); 900 } // finally 901 return this; 902 } 903 904 private int bitField0_; 905 906 private java.lang.Object type_ = ""; 907 /** 908 * 909 * 910 * <pre> 911 * URI indicating what type of recipe was performed. It determines the meaning 912 * of recipe.entryPoint, recipe.arguments, recipe.environment, and materials. 913 * </pre> 914 * 915 * <code>string type = 1;</code> 916 * 917 * @return The type. 918 */ getType()919 public java.lang.String getType() { 920 java.lang.Object ref = type_; 921 if (!(ref instanceof java.lang.String)) { 922 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 923 java.lang.String s = bs.toStringUtf8(); 924 type_ = s; 925 return s; 926 } else { 927 return (java.lang.String) ref; 928 } 929 } 930 /** 931 * 932 * 933 * <pre> 934 * URI indicating what type of recipe was performed. It determines the meaning 935 * of recipe.entryPoint, recipe.arguments, recipe.environment, and materials. 936 * </pre> 937 * 938 * <code>string type = 1;</code> 939 * 940 * @return The bytes for type. 941 */ getTypeBytes()942 public com.google.protobuf.ByteString getTypeBytes() { 943 java.lang.Object ref = type_; 944 if (ref instanceof String) { 945 com.google.protobuf.ByteString b = 946 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 947 type_ = b; 948 return b; 949 } else { 950 return (com.google.protobuf.ByteString) ref; 951 } 952 } 953 /** 954 * 955 * 956 * <pre> 957 * URI indicating what type of recipe was performed. It determines the meaning 958 * of recipe.entryPoint, recipe.arguments, recipe.environment, and materials. 959 * </pre> 960 * 961 * <code>string type = 1;</code> 962 * 963 * @param value The type to set. 964 * @return This builder for chaining. 965 */ setType(java.lang.String value)966 public Builder setType(java.lang.String value) { 967 if (value == null) { 968 throw new NullPointerException(); 969 } 970 type_ = value; 971 bitField0_ |= 0x00000001; 972 onChanged(); 973 return this; 974 } 975 /** 976 * 977 * 978 * <pre> 979 * URI indicating what type of recipe was performed. It determines the meaning 980 * of recipe.entryPoint, recipe.arguments, recipe.environment, and materials. 981 * </pre> 982 * 983 * <code>string type = 1;</code> 984 * 985 * @return This builder for chaining. 986 */ clearType()987 public Builder clearType() { 988 type_ = getDefaultInstance().getType(); 989 bitField0_ = (bitField0_ & ~0x00000001); 990 onChanged(); 991 return this; 992 } 993 /** 994 * 995 * 996 * <pre> 997 * URI indicating what type of recipe was performed. It determines the meaning 998 * of recipe.entryPoint, recipe.arguments, recipe.environment, and materials. 999 * </pre> 1000 * 1001 * <code>string type = 1;</code> 1002 * 1003 * @param value The bytes for type to set. 1004 * @return This builder for chaining. 1005 */ setTypeBytes(com.google.protobuf.ByteString value)1006 public Builder setTypeBytes(com.google.protobuf.ByteString value) { 1007 if (value == null) { 1008 throw new NullPointerException(); 1009 } 1010 checkByteStringIsUtf8(value); 1011 type_ = value; 1012 bitField0_ |= 0x00000001; 1013 onChanged(); 1014 return this; 1015 } 1016 1017 private long definedInMaterial_; 1018 /** 1019 * 1020 * 1021 * <pre> 1022 * Index in materials containing the recipe steps that are not implied by 1023 * recipe.type. For example, if the recipe type were "make", then this would 1024 * point to the source containing the Makefile, not the make program itself. 1025 * Set to -1 if the recipe doesn't come from a material, as zero is default 1026 * unset value for int64. 1027 * </pre> 1028 * 1029 * <code>int64 defined_in_material = 2;</code> 1030 * 1031 * @return The definedInMaterial. 1032 */ 1033 @java.lang.Override getDefinedInMaterial()1034 public long getDefinedInMaterial() { 1035 return definedInMaterial_; 1036 } 1037 /** 1038 * 1039 * 1040 * <pre> 1041 * Index in materials containing the recipe steps that are not implied by 1042 * recipe.type. For example, if the recipe type were "make", then this would 1043 * point to the source containing the Makefile, not the make program itself. 1044 * Set to -1 if the recipe doesn't come from a material, as zero is default 1045 * unset value for int64. 1046 * </pre> 1047 * 1048 * <code>int64 defined_in_material = 2;</code> 1049 * 1050 * @param value The definedInMaterial to set. 1051 * @return This builder for chaining. 1052 */ setDefinedInMaterial(long value)1053 public Builder setDefinedInMaterial(long value) { 1054 1055 definedInMaterial_ = value; 1056 bitField0_ |= 0x00000002; 1057 onChanged(); 1058 return this; 1059 } 1060 /** 1061 * 1062 * 1063 * <pre> 1064 * Index in materials containing the recipe steps that are not implied by 1065 * recipe.type. For example, if the recipe type were "make", then this would 1066 * point to the source containing the Makefile, not the make program itself. 1067 * Set to -1 if the recipe doesn't come from a material, as zero is default 1068 * unset value for int64. 1069 * </pre> 1070 * 1071 * <code>int64 defined_in_material = 2;</code> 1072 * 1073 * @return This builder for chaining. 1074 */ clearDefinedInMaterial()1075 public Builder clearDefinedInMaterial() { 1076 bitField0_ = (bitField0_ & ~0x00000002); 1077 definedInMaterial_ = 0L; 1078 onChanged(); 1079 return this; 1080 } 1081 1082 private java.lang.Object entryPoint_ = ""; 1083 /** 1084 * 1085 * 1086 * <pre> 1087 * String identifying the entry point into the build. 1088 * This is often a path to a configuration file and/or a target label within 1089 * that file. The syntax and meaning are defined by recipe.type. For example, 1090 * if the recipe type were "make", then this would reference the directory in 1091 * which to run make as well as which target to use. 1092 * </pre> 1093 * 1094 * <code>string entry_point = 3;</code> 1095 * 1096 * @return The entryPoint. 1097 */ getEntryPoint()1098 public java.lang.String getEntryPoint() { 1099 java.lang.Object ref = entryPoint_; 1100 if (!(ref instanceof java.lang.String)) { 1101 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1102 java.lang.String s = bs.toStringUtf8(); 1103 entryPoint_ = s; 1104 return s; 1105 } else { 1106 return (java.lang.String) ref; 1107 } 1108 } 1109 /** 1110 * 1111 * 1112 * <pre> 1113 * String identifying the entry point into the build. 1114 * This is often a path to a configuration file and/or a target label within 1115 * that file. The syntax and meaning are defined by recipe.type. For example, 1116 * if the recipe type were "make", then this would reference the directory in 1117 * which to run make as well as which target to use. 1118 * </pre> 1119 * 1120 * <code>string entry_point = 3;</code> 1121 * 1122 * @return The bytes for entryPoint. 1123 */ getEntryPointBytes()1124 public com.google.protobuf.ByteString getEntryPointBytes() { 1125 java.lang.Object ref = entryPoint_; 1126 if (ref instanceof String) { 1127 com.google.protobuf.ByteString b = 1128 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1129 entryPoint_ = b; 1130 return b; 1131 } else { 1132 return (com.google.protobuf.ByteString) ref; 1133 } 1134 } 1135 /** 1136 * 1137 * 1138 * <pre> 1139 * String identifying the entry point into the build. 1140 * This is often a path to a configuration file and/or a target label within 1141 * that file. The syntax and meaning are defined by recipe.type. For example, 1142 * if the recipe type were "make", then this would reference the directory in 1143 * which to run make as well as which target to use. 1144 * </pre> 1145 * 1146 * <code>string entry_point = 3;</code> 1147 * 1148 * @param value The entryPoint to set. 1149 * @return This builder for chaining. 1150 */ setEntryPoint(java.lang.String value)1151 public Builder setEntryPoint(java.lang.String value) { 1152 if (value == null) { 1153 throw new NullPointerException(); 1154 } 1155 entryPoint_ = value; 1156 bitField0_ |= 0x00000004; 1157 onChanged(); 1158 return this; 1159 } 1160 /** 1161 * 1162 * 1163 * <pre> 1164 * String identifying the entry point into the build. 1165 * This is often a path to a configuration file and/or a target label within 1166 * that file. The syntax and meaning are defined by recipe.type. For example, 1167 * if the recipe type were "make", then this would reference the directory in 1168 * which to run make as well as which target to use. 1169 * </pre> 1170 * 1171 * <code>string entry_point = 3;</code> 1172 * 1173 * @return This builder for chaining. 1174 */ clearEntryPoint()1175 public Builder clearEntryPoint() { 1176 entryPoint_ = getDefaultInstance().getEntryPoint(); 1177 bitField0_ = (bitField0_ & ~0x00000004); 1178 onChanged(); 1179 return this; 1180 } 1181 /** 1182 * 1183 * 1184 * <pre> 1185 * String identifying the entry point into the build. 1186 * This is often a path to a configuration file and/or a target label within 1187 * that file. The syntax and meaning are defined by recipe.type. For example, 1188 * if the recipe type were "make", then this would reference the directory in 1189 * which to run make as well as which target to use. 1190 * </pre> 1191 * 1192 * <code>string entry_point = 3;</code> 1193 * 1194 * @param value The bytes for entryPoint to set. 1195 * @return This builder for chaining. 1196 */ setEntryPointBytes(com.google.protobuf.ByteString value)1197 public Builder setEntryPointBytes(com.google.protobuf.ByteString value) { 1198 if (value == null) { 1199 throw new NullPointerException(); 1200 } 1201 checkByteStringIsUtf8(value); 1202 entryPoint_ = value; 1203 bitField0_ |= 0x00000004; 1204 onChanged(); 1205 return this; 1206 } 1207 1208 private java.util.List<com.google.protobuf.Any> arguments_ = java.util.Collections.emptyList(); 1209 ensureArgumentsIsMutable()1210 private void ensureArgumentsIsMutable() { 1211 if (!((bitField0_ & 0x00000008) != 0)) { 1212 arguments_ = new java.util.ArrayList<com.google.protobuf.Any>(arguments_); 1213 bitField0_ |= 0x00000008; 1214 } 1215 } 1216 1217 private com.google.protobuf.RepeatedFieldBuilderV3< 1218 com.google.protobuf.Any, 1219 com.google.protobuf.Any.Builder, 1220 com.google.protobuf.AnyOrBuilder> 1221 argumentsBuilder_; 1222 1223 /** 1224 * 1225 * 1226 * <pre> 1227 * Collection of all external inputs that influenced the build on top of 1228 * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe 1229 * type were "make", then this might be the flags passed to make aside from 1230 * the target, which is captured in recipe.entryPoint. Since the arguments 1231 * field can greatly vary in structure, depending on the builder and recipe 1232 * type, this is of form "Any". 1233 * </pre> 1234 * 1235 * <code>repeated .google.protobuf.Any arguments = 4;</code> 1236 */ getArgumentsList()1237 public java.util.List<com.google.protobuf.Any> getArgumentsList() { 1238 if (argumentsBuilder_ == null) { 1239 return java.util.Collections.unmodifiableList(arguments_); 1240 } else { 1241 return argumentsBuilder_.getMessageList(); 1242 } 1243 } 1244 /** 1245 * 1246 * 1247 * <pre> 1248 * Collection of all external inputs that influenced the build on top of 1249 * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe 1250 * type were "make", then this might be the flags passed to make aside from 1251 * the target, which is captured in recipe.entryPoint. Since the arguments 1252 * field can greatly vary in structure, depending on the builder and recipe 1253 * type, this is of form "Any". 1254 * </pre> 1255 * 1256 * <code>repeated .google.protobuf.Any arguments = 4;</code> 1257 */ getArgumentsCount()1258 public int getArgumentsCount() { 1259 if (argumentsBuilder_ == null) { 1260 return arguments_.size(); 1261 } else { 1262 return argumentsBuilder_.getCount(); 1263 } 1264 } 1265 /** 1266 * 1267 * 1268 * <pre> 1269 * Collection of all external inputs that influenced the build on top of 1270 * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe 1271 * type were "make", then this might be the flags passed to make aside from 1272 * the target, which is captured in recipe.entryPoint. Since the arguments 1273 * field can greatly vary in structure, depending on the builder and recipe 1274 * type, this is of form "Any". 1275 * </pre> 1276 * 1277 * <code>repeated .google.protobuf.Any arguments = 4;</code> 1278 */ getArguments(int index)1279 public com.google.protobuf.Any getArguments(int index) { 1280 if (argumentsBuilder_ == null) { 1281 return arguments_.get(index); 1282 } else { 1283 return argumentsBuilder_.getMessage(index); 1284 } 1285 } 1286 /** 1287 * 1288 * 1289 * <pre> 1290 * Collection of all external inputs that influenced the build on top of 1291 * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe 1292 * type were "make", then this might be the flags passed to make aside from 1293 * the target, which is captured in recipe.entryPoint. Since the arguments 1294 * field can greatly vary in structure, depending on the builder and recipe 1295 * type, this is of form "Any". 1296 * </pre> 1297 * 1298 * <code>repeated .google.protobuf.Any arguments = 4;</code> 1299 */ setArguments(int index, com.google.protobuf.Any value)1300 public Builder setArguments(int index, com.google.protobuf.Any value) { 1301 if (argumentsBuilder_ == null) { 1302 if (value == null) { 1303 throw new NullPointerException(); 1304 } 1305 ensureArgumentsIsMutable(); 1306 arguments_.set(index, value); 1307 onChanged(); 1308 } else { 1309 argumentsBuilder_.setMessage(index, value); 1310 } 1311 return this; 1312 } 1313 /** 1314 * 1315 * 1316 * <pre> 1317 * Collection of all external inputs that influenced the build on top of 1318 * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe 1319 * type were "make", then this might be the flags passed to make aside from 1320 * the target, which is captured in recipe.entryPoint. Since the arguments 1321 * field can greatly vary in structure, depending on the builder and recipe 1322 * type, this is of form "Any". 1323 * </pre> 1324 * 1325 * <code>repeated .google.protobuf.Any arguments = 4;</code> 1326 */ setArguments(int index, com.google.protobuf.Any.Builder builderForValue)1327 public Builder setArguments(int index, com.google.protobuf.Any.Builder builderForValue) { 1328 if (argumentsBuilder_ == null) { 1329 ensureArgumentsIsMutable(); 1330 arguments_.set(index, builderForValue.build()); 1331 onChanged(); 1332 } else { 1333 argumentsBuilder_.setMessage(index, builderForValue.build()); 1334 } 1335 return this; 1336 } 1337 /** 1338 * 1339 * 1340 * <pre> 1341 * Collection of all external inputs that influenced the build on top of 1342 * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe 1343 * type were "make", then this might be the flags passed to make aside from 1344 * the target, which is captured in recipe.entryPoint. Since the arguments 1345 * field can greatly vary in structure, depending on the builder and recipe 1346 * type, this is of form "Any". 1347 * </pre> 1348 * 1349 * <code>repeated .google.protobuf.Any arguments = 4;</code> 1350 */ addArguments(com.google.protobuf.Any value)1351 public Builder addArguments(com.google.protobuf.Any value) { 1352 if (argumentsBuilder_ == null) { 1353 if (value == null) { 1354 throw new NullPointerException(); 1355 } 1356 ensureArgumentsIsMutable(); 1357 arguments_.add(value); 1358 onChanged(); 1359 } else { 1360 argumentsBuilder_.addMessage(value); 1361 } 1362 return this; 1363 } 1364 /** 1365 * 1366 * 1367 * <pre> 1368 * Collection of all external inputs that influenced the build on top of 1369 * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe 1370 * type were "make", then this might be the flags passed to make aside from 1371 * the target, which is captured in recipe.entryPoint. Since the arguments 1372 * field can greatly vary in structure, depending on the builder and recipe 1373 * type, this is of form "Any". 1374 * </pre> 1375 * 1376 * <code>repeated .google.protobuf.Any arguments = 4;</code> 1377 */ addArguments(int index, com.google.protobuf.Any value)1378 public Builder addArguments(int index, com.google.protobuf.Any value) { 1379 if (argumentsBuilder_ == null) { 1380 if (value == null) { 1381 throw new NullPointerException(); 1382 } 1383 ensureArgumentsIsMutable(); 1384 arguments_.add(index, value); 1385 onChanged(); 1386 } else { 1387 argumentsBuilder_.addMessage(index, value); 1388 } 1389 return this; 1390 } 1391 /** 1392 * 1393 * 1394 * <pre> 1395 * Collection of all external inputs that influenced the build on top of 1396 * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe 1397 * type were "make", then this might be the flags passed to make aside from 1398 * the target, which is captured in recipe.entryPoint. Since the arguments 1399 * field can greatly vary in structure, depending on the builder and recipe 1400 * type, this is of form "Any". 1401 * </pre> 1402 * 1403 * <code>repeated .google.protobuf.Any arguments = 4;</code> 1404 */ addArguments(com.google.protobuf.Any.Builder builderForValue)1405 public Builder addArguments(com.google.protobuf.Any.Builder builderForValue) { 1406 if (argumentsBuilder_ == null) { 1407 ensureArgumentsIsMutable(); 1408 arguments_.add(builderForValue.build()); 1409 onChanged(); 1410 } else { 1411 argumentsBuilder_.addMessage(builderForValue.build()); 1412 } 1413 return this; 1414 } 1415 /** 1416 * 1417 * 1418 * <pre> 1419 * Collection of all external inputs that influenced the build on top of 1420 * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe 1421 * type were "make", then this might be the flags passed to make aside from 1422 * the target, which is captured in recipe.entryPoint. Since the arguments 1423 * field can greatly vary in structure, depending on the builder and recipe 1424 * type, this is of form "Any". 1425 * </pre> 1426 * 1427 * <code>repeated .google.protobuf.Any arguments = 4;</code> 1428 */ addArguments(int index, com.google.protobuf.Any.Builder builderForValue)1429 public Builder addArguments(int index, com.google.protobuf.Any.Builder builderForValue) { 1430 if (argumentsBuilder_ == null) { 1431 ensureArgumentsIsMutable(); 1432 arguments_.add(index, builderForValue.build()); 1433 onChanged(); 1434 } else { 1435 argumentsBuilder_.addMessage(index, builderForValue.build()); 1436 } 1437 return this; 1438 } 1439 /** 1440 * 1441 * 1442 * <pre> 1443 * Collection of all external inputs that influenced the build on top of 1444 * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe 1445 * type were "make", then this might be the flags passed to make aside from 1446 * the target, which is captured in recipe.entryPoint. Since the arguments 1447 * field can greatly vary in structure, depending on the builder and recipe 1448 * type, this is of form "Any". 1449 * </pre> 1450 * 1451 * <code>repeated .google.protobuf.Any arguments = 4;</code> 1452 */ addAllArguments(java.lang.Iterable<? extends com.google.protobuf.Any> values)1453 public Builder addAllArguments(java.lang.Iterable<? extends com.google.protobuf.Any> values) { 1454 if (argumentsBuilder_ == null) { 1455 ensureArgumentsIsMutable(); 1456 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, arguments_); 1457 onChanged(); 1458 } else { 1459 argumentsBuilder_.addAllMessages(values); 1460 } 1461 return this; 1462 } 1463 /** 1464 * 1465 * 1466 * <pre> 1467 * Collection of all external inputs that influenced the build on top of 1468 * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe 1469 * type were "make", then this might be the flags passed to make aside from 1470 * the target, which is captured in recipe.entryPoint. Since the arguments 1471 * field can greatly vary in structure, depending on the builder and recipe 1472 * type, this is of form "Any". 1473 * </pre> 1474 * 1475 * <code>repeated .google.protobuf.Any arguments = 4;</code> 1476 */ clearArguments()1477 public Builder clearArguments() { 1478 if (argumentsBuilder_ == null) { 1479 arguments_ = java.util.Collections.emptyList(); 1480 bitField0_ = (bitField0_ & ~0x00000008); 1481 onChanged(); 1482 } else { 1483 argumentsBuilder_.clear(); 1484 } 1485 return this; 1486 } 1487 /** 1488 * 1489 * 1490 * <pre> 1491 * Collection of all external inputs that influenced the build on top of 1492 * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe 1493 * type were "make", then this might be the flags passed to make aside from 1494 * the target, which is captured in recipe.entryPoint. Since the arguments 1495 * field can greatly vary in structure, depending on the builder and recipe 1496 * type, this is of form "Any". 1497 * </pre> 1498 * 1499 * <code>repeated .google.protobuf.Any arguments = 4;</code> 1500 */ removeArguments(int index)1501 public Builder removeArguments(int index) { 1502 if (argumentsBuilder_ == null) { 1503 ensureArgumentsIsMutable(); 1504 arguments_.remove(index); 1505 onChanged(); 1506 } else { 1507 argumentsBuilder_.remove(index); 1508 } 1509 return this; 1510 } 1511 /** 1512 * 1513 * 1514 * <pre> 1515 * Collection of all external inputs that influenced the build on top of 1516 * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe 1517 * type were "make", then this might be the flags passed to make aside from 1518 * the target, which is captured in recipe.entryPoint. Since the arguments 1519 * field can greatly vary in structure, depending on the builder and recipe 1520 * type, this is of form "Any". 1521 * </pre> 1522 * 1523 * <code>repeated .google.protobuf.Any arguments = 4;</code> 1524 */ getArgumentsBuilder(int index)1525 public com.google.protobuf.Any.Builder getArgumentsBuilder(int index) { 1526 return getArgumentsFieldBuilder().getBuilder(index); 1527 } 1528 /** 1529 * 1530 * 1531 * <pre> 1532 * Collection of all external inputs that influenced the build on top of 1533 * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe 1534 * type were "make", then this might be the flags passed to make aside from 1535 * the target, which is captured in recipe.entryPoint. Since the arguments 1536 * field can greatly vary in structure, depending on the builder and recipe 1537 * type, this is of form "Any". 1538 * </pre> 1539 * 1540 * <code>repeated .google.protobuf.Any arguments = 4;</code> 1541 */ getArgumentsOrBuilder(int index)1542 public com.google.protobuf.AnyOrBuilder getArgumentsOrBuilder(int index) { 1543 if (argumentsBuilder_ == null) { 1544 return arguments_.get(index); 1545 } else { 1546 return argumentsBuilder_.getMessageOrBuilder(index); 1547 } 1548 } 1549 /** 1550 * 1551 * 1552 * <pre> 1553 * Collection of all external inputs that influenced the build on top of 1554 * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe 1555 * type were "make", then this might be the flags passed to make aside from 1556 * the target, which is captured in recipe.entryPoint. Since the arguments 1557 * field can greatly vary in structure, depending on the builder and recipe 1558 * type, this is of form "Any". 1559 * </pre> 1560 * 1561 * <code>repeated .google.protobuf.Any arguments = 4;</code> 1562 */ getArgumentsOrBuilderList()1563 public java.util.List<? extends com.google.protobuf.AnyOrBuilder> getArgumentsOrBuilderList() { 1564 if (argumentsBuilder_ != null) { 1565 return argumentsBuilder_.getMessageOrBuilderList(); 1566 } else { 1567 return java.util.Collections.unmodifiableList(arguments_); 1568 } 1569 } 1570 /** 1571 * 1572 * 1573 * <pre> 1574 * Collection of all external inputs that influenced the build on top of 1575 * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe 1576 * type were "make", then this might be the flags passed to make aside from 1577 * the target, which is captured in recipe.entryPoint. Since the arguments 1578 * field can greatly vary in structure, depending on the builder and recipe 1579 * type, this is of form "Any". 1580 * </pre> 1581 * 1582 * <code>repeated .google.protobuf.Any arguments = 4;</code> 1583 */ addArgumentsBuilder()1584 public com.google.protobuf.Any.Builder addArgumentsBuilder() { 1585 return getArgumentsFieldBuilder().addBuilder(com.google.protobuf.Any.getDefaultInstance()); 1586 } 1587 /** 1588 * 1589 * 1590 * <pre> 1591 * Collection of all external inputs that influenced the build on top of 1592 * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe 1593 * type were "make", then this might be the flags passed to make aside from 1594 * the target, which is captured in recipe.entryPoint. Since the arguments 1595 * field can greatly vary in structure, depending on the builder and recipe 1596 * type, this is of form "Any". 1597 * </pre> 1598 * 1599 * <code>repeated .google.protobuf.Any arguments = 4;</code> 1600 */ addArgumentsBuilder(int index)1601 public com.google.protobuf.Any.Builder addArgumentsBuilder(int index) { 1602 return getArgumentsFieldBuilder() 1603 .addBuilder(index, com.google.protobuf.Any.getDefaultInstance()); 1604 } 1605 /** 1606 * 1607 * 1608 * <pre> 1609 * Collection of all external inputs that influenced the build on top of 1610 * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe 1611 * type were "make", then this might be the flags passed to make aside from 1612 * the target, which is captured in recipe.entryPoint. Since the arguments 1613 * field can greatly vary in structure, depending on the builder and recipe 1614 * type, this is of form "Any". 1615 * </pre> 1616 * 1617 * <code>repeated .google.protobuf.Any arguments = 4;</code> 1618 */ getArgumentsBuilderList()1619 public java.util.List<com.google.protobuf.Any.Builder> getArgumentsBuilderList() { 1620 return getArgumentsFieldBuilder().getBuilderList(); 1621 } 1622 1623 private com.google.protobuf.RepeatedFieldBuilderV3< 1624 com.google.protobuf.Any, 1625 com.google.protobuf.Any.Builder, 1626 com.google.protobuf.AnyOrBuilder> getArgumentsFieldBuilder()1627 getArgumentsFieldBuilder() { 1628 if (argumentsBuilder_ == null) { 1629 argumentsBuilder_ = 1630 new com.google.protobuf.RepeatedFieldBuilderV3< 1631 com.google.protobuf.Any, 1632 com.google.protobuf.Any.Builder, 1633 com.google.protobuf.AnyOrBuilder>( 1634 arguments_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); 1635 arguments_ = null; 1636 } 1637 return argumentsBuilder_; 1638 } 1639 1640 private java.util.List<com.google.protobuf.Any> environment_ = 1641 java.util.Collections.emptyList(); 1642 ensureEnvironmentIsMutable()1643 private void ensureEnvironmentIsMutable() { 1644 if (!((bitField0_ & 0x00000010) != 0)) { 1645 environment_ = new java.util.ArrayList<com.google.protobuf.Any>(environment_); 1646 bitField0_ |= 0x00000010; 1647 } 1648 } 1649 1650 private com.google.protobuf.RepeatedFieldBuilderV3< 1651 com.google.protobuf.Any, 1652 com.google.protobuf.Any.Builder, 1653 com.google.protobuf.AnyOrBuilder> 1654 environmentBuilder_; 1655 1656 /** 1657 * 1658 * 1659 * <pre> 1660 * Any other builder-controlled inputs necessary for correctly evaluating the 1661 * recipe. Usually only needed for reproducing the build but not evaluated as 1662 * part of policy. Since the environment field can greatly vary in structure, 1663 * depending on the builder and recipe type, this is of form "Any". 1664 * </pre> 1665 * 1666 * <code>repeated .google.protobuf.Any environment = 5;</code> 1667 */ getEnvironmentList()1668 public java.util.List<com.google.protobuf.Any> getEnvironmentList() { 1669 if (environmentBuilder_ == null) { 1670 return java.util.Collections.unmodifiableList(environment_); 1671 } else { 1672 return environmentBuilder_.getMessageList(); 1673 } 1674 } 1675 /** 1676 * 1677 * 1678 * <pre> 1679 * Any other builder-controlled inputs necessary for correctly evaluating the 1680 * recipe. Usually only needed for reproducing the build but not evaluated as 1681 * part of policy. Since the environment field can greatly vary in structure, 1682 * depending on the builder and recipe type, this is of form "Any". 1683 * </pre> 1684 * 1685 * <code>repeated .google.protobuf.Any environment = 5;</code> 1686 */ getEnvironmentCount()1687 public int getEnvironmentCount() { 1688 if (environmentBuilder_ == null) { 1689 return environment_.size(); 1690 } else { 1691 return environmentBuilder_.getCount(); 1692 } 1693 } 1694 /** 1695 * 1696 * 1697 * <pre> 1698 * Any other builder-controlled inputs necessary for correctly evaluating the 1699 * recipe. Usually only needed for reproducing the build but not evaluated as 1700 * part of policy. Since the environment field can greatly vary in structure, 1701 * depending on the builder and recipe type, this is of form "Any". 1702 * </pre> 1703 * 1704 * <code>repeated .google.protobuf.Any environment = 5;</code> 1705 */ getEnvironment(int index)1706 public com.google.protobuf.Any getEnvironment(int index) { 1707 if (environmentBuilder_ == null) { 1708 return environment_.get(index); 1709 } else { 1710 return environmentBuilder_.getMessage(index); 1711 } 1712 } 1713 /** 1714 * 1715 * 1716 * <pre> 1717 * Any other builder-controlled inputs necessary for correctly evaluating the 1718 * recipe. Usually only needed for reproducing the build but not evaluated as 1719 * part of policy. Since the environment field can greatly vary in structure, 1720 * depending on the builder and recipe type, this is of form "Any". 1721 * </pre> 1722 * 1723 * <code>repeated .google.protobuf.Any environment = 5;</code> 1724 */ setEnvironment(int index, com.google.protobuf.Any value)1725 public Builder setEnvironment(int index, com.google.protobuf.Any value) { 1726 if (environmentBuilder_ == null) { 1727 if (value == null) { 1728 throw new NullPointerException(); 1729 } 1730 ensureEnvironmentIsMutable(); 1731 environment_.set(index, value); 1732 onChanged(); 1733 } else { 1734 environmentBuilder_.setMessage(index, value); 1735 } 1736 return this; 1737 } 1738 /** 1739 * 1740 * 1741 * <pre> 1742 * Any other builder-controlled inputs necessary for correctly evaluating the 1743 * recipe. Usually only needed for reproducing the build but not evaluated as 1744 * part of policy. Since the environment field can greatly vary in structure, 1745 * depending on the builder and recipe type, this is of form "Any". 1746 * </pre> 1747 * 1748 * <code>repeated .google.protobuf.Any environment = 5;</code> 1749 */ setEnvironment(int index, com.google.protobuf.Any.Builder builderForValue)1750 public Builder setEnvironment(int index, com.google.protobuf.Any.Builder builderForValue) { 1751 if (environmentBuilder_ == null) { 1752 ensureEnvironmentIsMutable(); 1753 environment_.set(index, builderForValue.build()); 1754 onChanged(); 1755 } else { 1756 environmentBuilder_.setMessage(index, builderForValue.build()); 1757 } 1758 return this; 1759 } 1760 /** 1761 * 1762 * 1763 * <pre> 1764 * Any other builder-controlled inputs necessary for correctly evaluating the 1765 * recipe. Usually only needed for reproducing the build but not evaluated as 1766 * part of policy. Since the environment field can greatly vary in structure, 1767 * depending on the builder and recipe type, this is of form "Any". 1768 * </pre> 1769 * 1770 * <code>repeated .google.protobuf.Any environment = 5;</code> 1771 */ addEnvironment(com.google.protobuf.Any value)1772 public Builder addEnvironment(com.google.protobuf.Any value) { 1773 if (environmentBuilder_ == null) { 1774 if (value == null) { 1775 throw new NullPointerException(); 1776 } 1777 ensureEnvironmentIsMutable(); 1778 environment_.add(value); 1779 onChanged(); 1780 } else { 1781 environmentBuilder_.addMessage(value); 1782 } 1783 return this; 1784 } 1785 /** 1786 * 1787 * 1788 * <pre> 1789 * Any other builder-controlled inputs necessary for correctly evaluating the 1790 * recipe. Usually only needed for reproducing the build but not evaluated as 1791 * part of policy. Since the environment field can greatly vary in structure, 1792 * depending on the builder and recipe type, this is of form "Any". 1793 * </pre> 1794 * 1795 * <code>repeated .google.protobuf.Any environment = 5;</code> 1796 */ addEnvironment(int index, com.google.protobuf.Any value)1797 public Builder addEnvironment(int index, com.google.protobuf.Any value) { 1798 if (environmentBuilder_ == null) { 1799 if (value == null) { 1800 throw new NullPointerException(); 1801 } 1802 ensureEnvironmentIsMutable(); 1803 environment_.add(index, value); 1804 onChanged(); 1805 } else { 1806 environmentBuilder_.addMessage(index, value); 1807 } 1808 return this; 1809 } 1810 /** 1811 * 1812 * 1813 * <pre> 1814 * Any other builder-controlled inputs necessary for correctly evaluating the 1815 * recipe. Usually only needed for reproducing the build but not evaluated as 1816 * part of policy. Since the environment field can greatly vary in structure, 1817 * depending on the builder and recipe type, this is of form "Any". 1818 * </pre> 1819 * 1820 * <code>repeated .google.protobuf.Any environment = 5;</code> 1821 */ addEnvironment(com.google.protobuf.Any.Builder builderForValue)1822 public Builder addEnvironment(com.google.protobuf.Any.Builder builderForValue) { 1823 if (environmentBuilder_ == null) { 1824 ensureEnvironmentIsMutable(); 1825 environment_.add(builderForValue.build()); 1826 onChanged(); 1827 } else { 1828 environmentBuilder_.addMessage(builderForValue.build()); 1829 } 1830 return this; 1831 } 1832 /** 1833 * 1834 * 1835 * <pre> 1836 * Any other builder-controlled inputs necessary for correctly evaluating the 1837 * recipe. Usually only needed for reproducing the build but not evaluated as 1838 * part of policy. Since the environment field can greatly vary in structure, 1839 * depending on the builder and recipe type, this is of form "Any". 1840 * </pre> 1841 * 1842 * <code>repeated .google.protobuf.Any environment = 5;</code> 1843 */ addEnvironment(int index, com.google.protobuf.Any.Builder builderForValue)1844 public Builder addEnvironment(int index, com.google.protobuf.Any.Builder builderForValue) { 1845 if (environmentBuilder_ == null) { 1846 ensureEnvironmentIsMutable(); 1847 environment_.add(index, builderForValue.build()); 1848 onChanged(); 1849 } else { 1850 environmentBuilder_.addMessage(index, builderForValue.build()); 1851 } 1852 return this; 1853 } 1854 /** 1855 * 1856 * 1857 * <pre> 1858 * Any other builder-controlled inputs necessary for correctly evaluating the 1859 * recipe. Usually only needed for reproducing the build but not evaluated as 1860 * part of policy. Since the environment field can greatly vary in structure, 1861 * depending on the builder and recipe type, this is of form "Any". 1862 * </pre> 1863 * 1864 * <code>repeated .google.protobuf.Any environment = 5;</code> 1865 */ addAllEnvironment(java.lang.Iterable<? extends com.google.protobuf.Any> values)1866 public Builder addAllEnvironment(java.lang.Iterable<? extends com.google.protobuf.Any> values) { 1867 if (environmentBuilder_ == null) { 1868 ensureEnvironmentIsMutable(); 1869 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, environment_); 1870 onChanged(); 1871 } else { 1872 environmentBuilder_.addAllMessages(values); 1873 } 1874 return this; 1875 } 1876 /** 1877 * 1878 * 1879 * <pre> 1880 * Any other builder-controlled inputs necessary for correctly evaluating the 1881 * recipe. Usually only needed for reproducing the build but not evaluated as 1882 * part of policy. Since the environment field can greatly vary in structure, 1883 * depending on the builder and recipe type, this is of form "Any". 1884 * </pre> 1885 * 1886 * <code>repeated .google.protobuf.Any environment = 5;</code> 1887 */ clearEnvironment()1888 public Builder clearEnvironment() { 1889 if (environmentBuilder_ == null) { 1890 environment_ = java.util.Collections.emptyList(); 1891 bitField0_ = (bitField0_ & ~0x00000010); 1892 onChanged(); 1893 } else { 1894 environmentBuilder_.clear(); 1895 } 1896 return this; 1897 } 1898 /** 1899 * 1900 * 1901 * <pre> 1902 * Any other builder-controlled inputs necessary for correctly evaluating the 1903 * recipe. Usually only needed for reproducing the build but not evaluated as 1904 * part of policy. Since the environment field can greatly vary in structure, 1905 * depending on the builder and recipe type, this is of form "Any". 1906 * </pre> 1907 * 1908 * <code>repeated .google.protobuf.Any environment = 5;</code> 1909 */ removeEnvironment(int index)1910 public Builder removeEnvironment(int index) { 1911 if (environmentBuilder_ == null) { 1912 ensureEnvironmentIsMutable(); 1913 environment_.remove(index); 1914 onChanged(); 1915 } else { 1916 environmentBuilder_.remove(index); 1917 } 1918 return this; 1919 } 1920 /** 1921 * 1922 * 1923 * <pre> 1924 * Any other builder-controlled inputs necessary for correctly evaluating the 1925 * recipe. Usually only needed for reproducing the build but not evaluated as 1926 * part of policy. Since the environment field can greatly vary in structure, 1927 * depending on the builder and recipe type, this is of form "Any". 1928 * </pre> 1929 * 1930 * <code>repeated .google.protobuf.Any environment = 5;</code> 1931 */ getEnvironmentBuilder(int index)1932 public com.google.protobuf.Any.Builder getEnvironmentBuilder(int index) { 1933 return getEnvironmentFieldBuilder().getBuilder(index); 1934 } 1935 /** 1936 * 1937 * 1938 * <pre> 1939 * Any other builder-controlled inputs necessary for correctly evaluating the 1940 * recipe. Usually only needed for reproducing the build but not evaluated as 1941 * part of policy. Since the environment field can greatly vary in structure, 1942 * depending on the builder and recipe type, this is of form "Any". 1943 * </pre> 1944 * 1945 * <code>repeated .google.protobuf.Any environment = 5;</code> 1946 */ getEnvironmentOrBuilder(int index)1947 public com.google.protobuf.AnyOrBuilder getEnvironmentOrBuilder(int index) { 1948 if (environmentBuilder_ == null) { 1949 return environment_.get(index); 1950 } else { 1951 return environmentBuilder_.getMessageOrBuilder(index); 1952 } 1953 } 1954 /** 1955 * 1956 * 1957 * <pre> 1958 * Any other builder-controlled inputs necessary for correctly evaluating the 1959 * recipe. Usually only needed for reproducing the build but not evaluated as 1960 * part of policy. Since the environment field can greatly vary in structure, 1961 * depending on the builder and recipe type, this is of form "Any". 1962 * </pre> 1963 * 1964 * <code>repeated .google.protobuf.Any environment = 5;</code> 1965 */ 1966 public java.util.List<? extends com.google.protobuf.AnyOrBuilder> getEnvironmentOrBuilderList()1967 getEnvironmentOrBuilderList() { 1968 if (environmentBuilder_ != null) { 1969 return environmentBuilder_.getMessageOrBuilderList(); 1970 } else { 1971 return java.util.Collections.unmodifiableList(environment_); 1972 } 1973 } 1974 /** 1975 * 1976 * 1977 * <pre> 1978 * Any other builder-controlled inputs necessary for correctly evaluating the 1979 * recipe. Usually only needed for reproducing the build but not evaluated as 1980 * part of policy. Since the environment field can greatly vary in structure, 1981 * depending on the builder and recipe type, this is of form "Any". 1982 * </pre> 1983 * 1984 * <code>repeated .google.protobuf.Any environment = 5;</code> 1985 */ addEnvironmentBuilder()1986 public com.google.protobuf.Any.Builder addEnvironmentBuilder() { 1987 return getEnvironmentFieldBuilder().addBuilder(com.google.protobuf.Any.getDefaultInstance()); 1988 } 1989 /** 1990 * 1991 * 1992 * <pre> 1993 * Any other builder-controlled inputs necessary for correctly evaluating the 1994 * recipe. Usually only needed for reproducing the build but not evaluated as 1995 * part of policy. Since the environment field can greatly vary in structure, 1996 * depending on the builder and recipe type, this is of form "Any". 1997 * </pre> 1998 * 1999 * <code>repeated .google.protobuf.Any environment = 5;</code> 2000 */ addEnvironmentBuilder(int index)2001 public com.google.protobuf.Any.Builder addEnvironmentBuilder(int index) { 2002 return getEnvironmentFieldBuilder() 2003 .addBuilder(index, com.google.protobuf.Any.getDefaultInstance()); 2004 } 2005 /** 2006 * 2007 * 2008 * <pre> 2009 * Any other builder-controlled inputs necessary for correctly evaluating the 2010 * recipe. Usually only needed for reproducing the build but not evaluated as 2011 * part of policy. Since the environment field can greatly vary in structure, 2012 * depending on the builder and recipe type, this is of form "Any". 2013 * </pre> 2014 * 2015 * <code>repeated .google.protobuf.Any environment = 5;</code> 2016 */ getEnvironmentBuilderList()2017 public java.util.List<com.google.protobuf.Any.Builder> getEnvironmentBuilderList() { 2018 return getEnvironmentFieldBuilder().getBuilderList(); 2019 } 2020 2021 private com.google.protobuf.RepeatedFieldBuilderV3< 2022 com.google.protobuf.Any, 2023 com.google.protobuf.Any.Builder, 2024 com.google.protobuf.AnyOrBuilder> getEnvironmentFieldBuilder()2025 getEnvironmentFieldBuilder() { 2026 if (environmentBuilder_ == null) { 2027 environmentBuilder_ = 2028 new com.google.protobuf.RepeatedFieldBuilderV3< 2029 com.google.protobuf.Any, 2030 com.google.protobuf.Any.Builder, 2031 com.google.protobuf.AnyOrBuilder>( 2032 environment_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); 2033 environment_ = null; 2034 } 2035 return environmentBuilder_; 2036 } 2037 2038 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)2039 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 2040 return super.setUnknownFields(unknownFields); 2041 } 2042 2043 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2044 public final Builder mergeUnknownFields( 2045 final com.google.protobuf.UnknownFieldSet unknownFields) { 2046 return super.mergeUnknownFields(unknownFields); 2047 } 2048 2049 // @@protoc_insertion_point(builder_scope:grafeas.v1.Recipe) 2050 } 2051 2052 // @@protoc_insertion_point(class_scope:grafeas.v1.Recipe) 2053 private static final io.grafeas.v1.Recipe DEFAULT_INSTANCE; 2054 2055 static { 2056 DEFAULT_INSTANCE = new io.grafeas.v1.Recipe(); 2057 } 2058 getDefaultInstance()2059 public static io.grafeas.v1.Recipe getDefaultInstance() { 2060 return DEFAULT_INSTANCE; 2061 } 2062 2063 private static final com.google.protobuf.Parser<Recipe> PARSER = 2064 new com.google.protobuf.AbstractParser<Recipe>() { 2065 @java.lang.Override 2066 public Recipe parsePartialFrom( 2067 com.google.protobuf.CodedInputStream input, 2068 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2069 throws com.google.protobuf.InvalidProtocolBufferException { 2070 Builder builder = newBuilder(); 2071 try { 2072 builder.mergeFrom(input, extensionRegistry); 2073 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2074 throw e.setUnfinishedMessage(builder.buildPartial()); 2075 } catch (com.google.protobuf.UninitializedMessageException e) { 2076 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 2077 } catch (java.io.IOException e) { 2078 throw new com.google.protobuf.InvalidProtocolBufferException(e) 2079 .setUnfinishedMessage(builder.buildPartial()); 2080 } 2081 return builder.buildPartial(); 2082 } 2083 }; 2084 parser()2085 public static com.google.protobuf.Parser<Recipe> parser() { 2086 return PARSER; 2087 } 2088 2089 @java.lang.Override getParserForType()2090 public com.google.protobuf.Parser<Recipe> getParserForType() { 2091 return PARSER; 2092 } 2093 2094 @java.lang.Override getDefaultInstanceForType()2095 public io.grafeas.v1.Recipe getDefaultInstanceForType() { 2096 return DEFAULT_INSTANCE; 2097 } 2098 } 2099