All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloudbuild.v1.Secrets Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/devtools/cloudbuild/v1/cloudbuild.proto

// Protobuf Java Version: 3.25.4
package com.google.cloudbuild.v1;

/**
 *
 *
 * 
 * Secrets and secret environment variables.
 * 
* * Protobuf type {@code google.devtools.cloudbuild.v1.Secrets} */ public final class Secrets extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.devtools.cloudbuild.v1.Secrets) SecretsOrBuilder { private static final long serialVersionUID = 0L; // Use Secrets.newBuilder() to construct. private Secrets(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Secrets() { secretManager_ = java.util.Collections.emptyList(); inline_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Secrets(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloudbuild.v1.Cloudbuild .internal_static_google_devtools_cloudbuild_v1_Secrets_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloudbuild.v1.Cloudbuild .internal_static_google_devtools_cloudbuild_v1_Secrets_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloudbuild.v1.Secrets.class, com.google.cloudbuild.v1.Secrets.Builder.class); } public static final int SECRET_MANAGER_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List secretManager_; /** * * *
   * Secrets in Secret Manager and associated secret environment variable.
   * 
* * repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1; */ @java.lang.Override public java.util.List getSecretManagerList() { return secretManager_; } /** * * *
   * Secrets in Secret Manager and associated secret environment variable.
   * 
* * repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1; */ @java.lang.Override public java.util.List getSecretManagerOrBuilderList() { return secretManager_; } /** * * *
   * Secrets in Secret Manager and associated secret environment variable.
   * 
* * repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1; */ @java.lang.Override public int getSecretManagerCount() { return secretManager_.size(); } /** * * *
   * Secrets in Secret Manager and associated secret environment variable.
   * 
* * repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1; */ @java.lang.Override public com.google.cloudbuild.v1.SecretManagerSecret getSecretManager(int index) { return secretManager_.get(index); } /** * * *
   * Secrets in Secret Manager and associated secret environment variable.
   * 
* * repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1; */ @java.lang.Override public com.google.cloudbuild.v1.SecretManagerSecretOrBuilder getSecretManagerOrBuilder( int index) { return secretManager_.get(index); } public static final int INLINE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List inline_; /** * * *
   * Secrets encrypted with KMS key and the associated secret environment
   * variable.
   * 
* * repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2; */ @java.lang.Override public java.util.List getInlineList() { return inline_; } /** * * *
   * Secrets encrypted with KMS key and the associated secret environment
   * variable.
   * 
* * repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2; */ @java.lang.Override public java.util.List getInlineOrBuilderList() { return inline_; } /** * * *
   * Secrets encrypted with KMS key and the associated secret environment
   * variable.
   * 
* * repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2; */ @java.lang.Override public int getInlineCount() { return inline_.size(); } /** * * *
   * Secrets encrypted with KMS key and the associated secret environment
   * variable.
   * 
* * repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2; */ @java.lang.Override public com.google.cloudbuild.v1.InlineSecret getInline(int index) { return inline_.get(index); } /** * * *
   * Secrets encrypted with KMS key and the associated secret environment
   * variable.
   * 
* * repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2; */ @java.lang.Override public com.google.cloudbuild.v1.InlineSecretOrBuilder getInlineOrBuilder(int index) { return inline_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < secretManager_.size(); i++) { output.writeMessage(1, secretManager_.get(i)); } for (int i = 0; i < inline_.size(); i++) { output.writeMessage(2, inline_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < secretManager_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, secretManager_.get(i)); } for (int i = 0; i < inline_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, inline_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloudbuild.v1.Secrets)) { return super.equals(obj); } com.google.cloudbuild.v1.Secrets other = (com.google.cloudbuild.v1.Secrets) obj; if (!getSecretManagerList().equals(other.getSecretManagerList())) return false; if (!getInlineList().equals(other.getInlineList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getSecretManagerCount() > 0) { hash = (37 * hash) + SECRET_MANAGER_FIELD_NUMBER; hash = (53 * hash) + getSecretManagerList().hashCode(); } if (getInlineCount() > 0) { hash = (37 * hash) + INLINE_FIELD_NUMBER; hash = (53 * hash) + getInlineList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloudbuild.v1.Secrets parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloudbuild.v1.Secrets parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloudbuild.v1.Secrets parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloudbuild.v1.Secrets parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloudbuild.v1.Secrets parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloudbuild.v1.Secrets parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloudbuild.v1.Secrets parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloudbuild.v1.Secrets parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloudbuild.v1.Secrets parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloudbuild.v1.Secrets parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloudbuild.v1.Secrets parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloudbuild.v1.Secrets parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.cloudbuild.v1.Secrets prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * Secrets and secret environment variables.
   * 
* * Protobuf type {@code google.devtools.cloudbuild.v1.Secrets} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.devtools.cloudbuild.v1.Secrets) com.google.cloudbuild.v1.SecretsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloudbuild.v1.Cloudbuild .internal_static_google_devtools_cloudbuild_v1_Secrets_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloudbuild.v1.Cloudbuild .internal_static_google_devtools_cloudbuild_v1_Secrets_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloudbuild.v1.Secrets.class, com.google.cloudbuild.v1.Secrets.Builder.class); } // Construct using com.google.cloudbuild.v1.Secrets.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (secretManagerBuilder_ == null) { secretManager_ = java.util.Collections.emptyList(); } else { secretManager_ = null; secretManagerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (inlineBuilder_ == null) { inline_ = java.util.Collections.emptyList(); } else { inline_ = null; inlineBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloudbuild.v1.Cloudbuild .internal_static_google_devtools_cloudbuild_v1_Secrets_descriptor; } @java.lang.Override public com.google.cloudbuild.v1.Secrets getDefaultInstanceForType() { return com.google.cloudbuild.v1.Secrets.getDefaultInstance(); } @java.lang.Override public com.google.cloudbuild.v1.Secrets build() { com.google.cloudbuild.v1.Secrets result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloudbuild.v1.Secrets buildPartial() { com.google.cloudbuild.v1.Secrets result = new com.google.cloudbuild.v1.Secrets(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.cloudbuild.v1.Secrets result) { if (secretManagerBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { secretManager_ = java.util.Collections.unmodifiableList(secretManager_); bitField0_ = (bitField0_ & ~0x00000001); } result.secretManager_ = secretManager_; } else { result.secretManager_ = secretManagerBuilder_.build(); } if (inlineBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { inline_ = java.util.Collections.unmodifiableList(inline_); bitField0_ = (bitField0_ & ~0x00000002); } result.inline_ = inline_; } else { result.inline_ = inlineBuilder_.build(); } } private void buildPartial0(com.google.cloudbuild.v1.Secrets result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloudbuild.v1.Secrets) { return mergeFrom((com.google.cloudbuild.v1.Secrets) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloudbuild.v1.Secrets other) { if (other == com.google.cloudbuild.v1.Secrets.getDefaultInstance()) return this; if (secretManagerBuilder_ == null) { if (!other.secretManager_.isEmpty()) { if (secretManager_.isEmpty()) { secretManager_ = other.secretManager_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSecretManagerIsMutable(); secretManager_.addAll(other.secretManager_); } onChanged(); } } else { if (!other.secretManager_.isEmpty()) { if (secretManagerBuilder_.isEmpty()) { secretManagerBuilder_.dispose(); secretManagerBuilder_ = null; secretManager_ = other.secretManager_; bitField0_ = (bitField0_ & ~0x00000001); secretManagerBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSecretManagerFieldBuilder() : null; } else { secretManagerBuilder_.addAllMessages(other.secretManager_); } } } if (inlineBuilder_ == null) { if (!other.inline_.isEmpty()) { if (inline_.isEmpty()) { inline_ = other.inline_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureInlineIsMutable(); inline_.addAll(other.inline_); } onChanged(); } } else { if (!other.inline_.isEmpty()) { if (inlineBuilder_.isEmpty()) { inlineBuilder_.dispose(); inlineBuilder_ = null; inline_ = other.inline_; bitField0_ = (bitField0_ & ~0x00000002); inlineBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInlineFieldBuilder() : null; } else { inlineBuilder_.addAllMessages(other.inline_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.cloudbuild.v1.SecretManagerSecret m = input.readMessage( com.google.cloudbuild.v1.SecretManagerSecret.parser(), extensionRegistry); if (secretManagerBuilder_ == null) { ensureSecretManagerIsMutable(); secretManager_.add(m); } else { secretManagerBuilder_.addMessage(m); } break; } // case 10 case 18: { com.google.cloudbuild.v1.InlineSecret m = input.readMessage( com.google.cloudbuild.v1.InlineSecret.parser(), extensionRegistry); if (inlineBuilder_ == null) { ensureInlineIsMutable(); inline_.add(m); } else { inlineBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List secretManager_ = java.util.Collections.emptyList(); private void ensureSecretManagerIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { secretManager_ = new java.util.ArrayList(secretManager_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloudbuild.v1.SecretManagerSecret, com.google.cloudbuild.v1.SecretManagerSecret.Builder, com.google.cloudbuild.v1.SecretManagerSecretOrBuilder> secretManagerBuilder_; /** * * *
     * Secrets in Secret Manager and associated secret environment variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1; */ public java.util.List getSecretManagerList() { if (secretManagerBuilder_ == null) { return java.util.Collections.unmodifiableList(secretManager_); } else { return secretManagerBuilder_.getMessageList(); } } /** * * *
     * Secrets in Secret Manager and associated secret environment variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1; */ public int getSecretManagerCount() { if (secretManagerBuilder_ == null) { return secretManager_.size(); } else { return secretManagerBuilder_.getCount(); } } /** * * *
     * Secrets in Secret Manager and associated secret environment variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1; */ public com.google.cloudbuild.v1.SecretManagerSecret getSecretManager(int index) { if (secretManagerBuilder_ == null) { return secretManager_.get(index); } else { return secretManagerBuilder_.getMessage(index); } } /** * * *
     * Secrets in Secret Manager and associated secret environment variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1; */ public Builder setSecretManager(int index, com.google.cloudbuild.v1.SecretManagerSecret value) { if (secretManagerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSecretManagerIsMutable(); secretManager_.set(index, value); onChanged(); } else { secretManagerBuilder_.setMessage(index, value); } return this; } /** * * *
     * Secrets in Secret Manager and associated secret environment variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1; */ public Builder setSecretManager( int index, com.google.cloudbuild.v1.SecretManagerSecret.Builder builderForValue) { if (secretManagerBuilder_ == null) { ensureSecretManagerIsMutable(); secretManager_.set(index, builderForValue.build()); onChanged(); } else { secretManagerBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Secrets in Secret Manager and associated secret environment variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1; */ public Builder addSecretManager(com.google.cloudbuild.v1.SecretManagerSecret value) { if (secretManagerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSecretManagerIsMutable(); secretManager_.add(value); onChanged(); } else { secretManagerBuilder_.addMessage(value); } return this; } /** * * *
     * Secrets in Secret Manager and associated secret environment variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1; */ public Builder addSecretManager(int index, com.google.cloudbuild.v1.SecretManagerSecret value) { if (secretManagerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSecretManagerIsMutable(); secretManager_.add(index, value); onChanged(); } else { secretManagerBuilder_.addMessage(index, value); } return this; } /** * * *
     * Secrets in Secret Manager and associated secret environment variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1; */ public Builder addSecretManager( com.google.cloudbuild.v1.SecretManagerSecret.Builder builderForValue) { if (secretManagerBuilder_ == null) { ensureSecretManagerIsMutable(); secretManager_.add(builderForValue.build()); onChanged(); } else { secretManagerBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Secrets in Secret Manager and associated secret environment variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1; */ public Builder addSecretManager( int index, com.google.cloudbuild.v1.SecretManagerSecret.Builder builderForValue) { if (secretManagerBuilder_ == null) { ensureSecretManagerIsMutable(); secretManager_.add(index, builderForValue.build()); onChanged(); } else { secretManagerBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Secrets in Secret Manager and associated secret environment variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1; */ public Builder addAllSecretManager( java.lang.Iterable values) { if (secretManagerBuilder_ == null) { ensureSecretManagerIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secretManager_); onChanged(); } else { secretManagerBuilder_.addAllMessages(values); } return this; } /** * * *
     * Secrets in Secret Manager and associated secret environment variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1; */ public Builder clearSecretManager() { if (secretManagerBuilder_ == null) { secretManager_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { secretManagerBuilder_.clear(); } return this; } /** * * *
     * Secrets in Secret Manager and associated secret environment variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1; */ public Builder removeSecretManager(int index) { if (secretManagerBuilder_ == null) { ensureSecretManagerIsMutable(); secretManager_.remove(index); onChanged(); } else { secretManagerBuilder_.remove(index); } return this; } /** * * *
     * Secrets in Secret Manager and associated secret environment variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1; */ public com.google.cloudbuild.v1.SecretManagerSecret.Builder getSecretManagerBuilder(int index) { return getSecretManagerFieldBuilder().getBuilder(index); } /** * * *
     * Secrets in Secret Manager and associated secret environment variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1; */ public com.google.cloudbuild.v1.SecretManagerSecretOrBuilder getSecretManagerOrBuilder( int index) { if (secretManagerBuilder_ == null) { return secretManager_.get(index); } else { return secretManagerBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Secrets in Secret Manager and associated secret environment variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1; */ public java.util.List getSecretManagerOrBuilderList() { if (secretManagerBuilder_ != null) { return secretManagerBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(secretManager_); } } /** * * *
     * Secrets in Secret Manager and associated secret environment variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1; */ public com.google.cloudbuild.v1.SecretManagerSecret.Builder addSecretManagerBuilder() { return getSecretManagerFieldBuilder() .addBuilder(com.google.cloudbuild.v1.SecretManagerSecret.getDefaultInstance()); } /** * * *
     * Secrets in Secret Manager and associated secret environment variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1; */ public com.google.cloudbuild.v1.SecretManagerSecret.Builder addSecretManagerBuilder(int index) { return getSecretManagerFieldBuilder() .addBuilder(index, com.google.cloudbuild.v1.SecretManagerSecret.getDefaultInstance()); } /** * * *
     * Secrets in Secret Manager and associated secret environment variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.SecretManagerSecret secret_manager = 1; */ public java.util.List getSecretManagerBuilderList() { return getSecretManagerFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloudbuild.v1.SecretManagerSecret, com.google.cloudbuild.v1.SecretManagerSecret.Builder, com.google.cloudbuild.v1.SecretManagerSecretOrBuilder> getSecretManagerFieldBuilder() { if (secretManagerBuilder_ == null) { secretManagerBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloudbuild.v1.SecretManagerSecret, com.google.cloudbuild.v1.SecretManagerSecret.Builder, com.google.cloudbuild.v1.SecretManagerSecretOrBuilder>( secretManager_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); secretManager_ = null; } return secretManagerBuilder_; } private java.util.List inline_ = java.util.Collections.emptyList(); private void ensureInlineIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { inline_ = new java.util.ArrayList(inline_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloudbuild.v1.InlineSecret, com.google.cloudbuild.v1.InlineSecret.Builder, com.google.cloudbuild.v1.InlineSecretOrBuilder> inlineBuilder_; /** * * *
     * Secrets encrypted with KMS key and the associated secret environment
     * variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2; */ public java.util.List getInlineList() { if (inlineBuilder_ == null) { return java.util.Collections.unmodifiableList(inline_); } else { return inlineBuilder_.getMessageList(); } } /** * * *
     * Secrets encrypted with KMS key and the associated secret environment
     * variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2; */ public int getInlineCount() { if (inlineBuilder_ == null) { return inline_.size(); } else { return inlineBuilder_.getCount(); } } /** * * *
     * Secrets encrypted with KMS key and the associated secret environment
     * variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2; */ public com.google.cloudbuild.v1.InlineSecret getInline(int index) { if (inlineBuilder_ == null) { return inline_.get(index); } else { return inlineBuilder_.getMessage(index); } } /** * * *
     * Secrets encrypted with KMS key and the associated secret environment
     * variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2; */ public Builder setInline(int index, com.google.cloudbuild.v1.InlineSecret value) { if (inlineBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInlineIsMutable(); inline_.set(index, value); onChanged(); } else { inlineBuilder_.setMessage(index, value); } return this; } /** * * *
     * Secrets encrypted with KMS key and the associated secret environment
     * variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2; */ public Builder setInline( int index, com.google.cloudbuild.v1.InlineSecret.Builder builderForValue) { if (inlineBuilder_ == null) { ensureInlineIsMutable(); inline_.set(index, builderForValue.build()); onChanged(); } else { inlineBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Secrets encrypted with KMS key and the associated secret environment
     * variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2; */ public Builder addInline(com.google.cloudbuild.v1.InlineSecret value) { if (inlineBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInlineIsMutable(); inline_.add(value); onChanged(); } else { inlineBuilder_.addMessage(value); } return this; } /** * * *
     * Secrets encrypted with KMS key and the associated secret environment
     * variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2; */ public Builder addInline(int index, com.google.cloudbuild.v1.InlineSecret value) { if (inlineBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInlineIsMutable(); inline_.add(index, value); onChanged(); } else { inlineBuilder_.addMessage(index, value); } return this; } /** * * *
     * Secrets encrypted with KMS key and the associated secret environment
     * variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2; */ public Builder addInline(com.google.cloudbuild.v1.InlineSecret.Builder builderForValue) { if (inlineBuilder_ == null) { ensureInlineIsMutable(); inline_.add(builderForValue.build()); onChanged(); } else { inlineBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Secrets encrypted with KMS key and the associated secret environment
     * variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2; */ public Builder addInline( int index, com.google.cloudbuild.v1.InlineSecret.Builder builderForValue) { if (inlineBuilder_ == null) { ensureInlineIsMutable(); inline_.add(index, builderForValue.build()); onChanged(); } else { inlineBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Secrets encrypted with KMS key and the associated secret environment
     * variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2; */ public Builder addAllInline( java.lang.Iterable values) { if (inlineBuilder_ == null) { ensureInlineIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inline_); onChanged(); } else { inlineBuilder_.addAllMessages(values); } return this; } /** * * *
     * Secrets encrypted with KMS key and the associated secret environment
     * variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2; */ public Builder clearInline() { if (inlineBuilder_ == null) { inline_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { inlineBuilder_.clear(); } return this; } /** * * *
     * Secrets encrypted with KMS key and the associated secret environment
     * variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2; */ public Builder removeInline(int index) { if (inlineBuilder_ == null) { ensureInlineIsMutable(); inline_.remove(index); onChanged(); } else { inlineBuilder_.remove(index); } return this; } /** * * *
     * Secrets encrypted with KMS key and the associated secret environment
     * variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2; */ public com.google.cloudbuild.v1.InlineSecret.Builder getInlineBuilder(int index) { return getInlineFieldBuilder().getBuilder(index); } /** * * *
     * Secrets encrypted with KMS key and the associated secret environment
     * variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2; */ public com.google.cloudbuild.v1.InlineSecretOrBuilder getInlineOrBuilder(int index) { if (inlineBuilder_ == null) { return inline_.get(index); } else { return inlineBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Secrets encrypted with KMS key and the associated secret environment
     * variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2; */ public java.util.List getInlineOrBuilderList() { if (inlineBuilder_ != null) { return inlineBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(inline_); } } /** * * *
     * Secrets encrypted with KMS key and the associated secret environment
     * variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2; */ public com.google.cloudbuild.v1.InlineSecret.Builder addInlineBuilder() { return getInlineFieldBuilder() .addBuilder(com.google.cloudbuild.v1.InlineSecret.getDefaultInstance()); } /** * * *
     * Secrets encrypted with KMS key and the associated secret environment
     * variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2; */ public com.google.cloudbuild.v1.InlineSecret.Builder addInlineBuilder(int index) { return getInlineFieldBuilder() .addBuilder(index, com.google.cloudbuild.v1.InlineSecret.getDefaultInstance()); } /** * * *
     * Secrets encrypted with KMS key and the associated secret environment
     * variable.
     * 
* * repeated .google.devtools.cloudbuild.v1.InlineSecret inline = 2; */ public java.util.List getInlineBuilderList() { return getInlineFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloudbuild.v1.InlineSecret, com.google.cloudbuild.v1.InlineSecret.Builder, com.google.cloudbuild.v1.InlineSecretOrBuilder> getInlineFieldBuilder() { if (inlineBuilder_ == null) { inlineBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloudbuild.v1.InlineSecret, com.google.cloudbuild.v1.InlineSecret.Builder, com.google.cloudbuild.v1.InlineSecretOrBuilder>( inline_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); inline_ = null; } return inlineBuilder_; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.devtools.cloudbuild.v1.Secrets) } // @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.Secrets) private static final com.google.cloudbuild.v1.Secrets DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloudbuild.v1.Secrets(); } public static com.google.cloudbuild.v1.Secrets getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Secrets parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloudbuild.v1.Secrets getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy