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

com.google.cloud.compute.v1.ShieldedInstanceIdentity Maven / Gradle / Ivy

/*
 * 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/cloud/compute/v1/compute.proto

// Protobuf Java Version: 3.25.5
package com.google.cloud.compute.v1;

/**
 *
 *
 * 
 * A Shielded Instance Identity.
 * 
* * Protobuf type {@code google.cloud.compute.v1.ShieldedInstanceIdentity} */ public final class ShieldedInstanceIdentity extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.ShieldedInstanceIdentity) ShieldedInstanceIdentityOrBuilder { private static final long serialVersionUID = 0L; // Use ShieldedInstanceIdentity.newBuilder() to construct. private ShieldedInstanceIdentity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ShieldedInstanceIdentity() { kind_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ShieldedInstanceIdentity(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_ShieldedInstanceIdentity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_ShieldedInstanceIdentity_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.compute.v1.ShieldedInstanceIdentity.class, com.google.cloud.compute.v1.ShieldedInstanceIdentity.Builder.class); } private int bitField0_; public static final int ENCRYPTION_KEY_FIELD_NUMBER = 488268707; private com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry encryptionKey_; /** * * *
   * An Endorsement Key (EK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
   * 
* * * optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry encryption_key = 488268707; * * * @return Whether the encryptionKey field is set. */ @java.lang.Override public boolean hasEncryptionKey() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * An Endorsement Key (EK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
   * 
* * * optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry encryption_key = 488268707; * * * @return The encryptionKey. */ @java.lang.Override public com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry getEncryptionKey() { return encryptionKey_ == null ? com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry.getDefaultInstance() : encryptionKey_; } /** * * *
   * An Endorsement Key (EK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
   * 
* * * optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry encryption_key = 488268707; * */ @java.lang.Override public com.google.cloud.compute.v1.ShieldedInstanceIdentityEntryOrBuilder getEncryptionKeyOrBuilder() { return encryptionKey_ == null ? com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry.getDefaultInstance() : encryptionKey_; } public static final int KIND_FIELD_NUMBER = 3292052; @SuppressWarnings("serial") private volatile java.lang.Object kind_ = ""; /** * * *
   * [Output Only] Type of the resource. Always compute#shieldedInstanceIdentity for shielded Instance identity entry.
   * 
* * optional string kind = 3292052; * * @return Whether the kind field is set. */ @java.lang.Override public boolean hasKind() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * [Output Only] Type of the resource. Always compute#shieldedInstanceIdentity for shielded Instance identity entry.
   * 
* * optional string kind = 3292052; * * @return The kind. */ @java.lang.Override public java.lang.String getKind() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } } /** * * *
   * [Output Only] Type of the resource. Always compute#shieldedInstanceIdentity for shielded Instance identity entry.
   * 
* * optional string kind = 3292052; * * @return The bytes for kind. */ @java.lang.Override public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SIGNING_KEY_FIELD_NUMBER = 320948261; private com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry signingKey_; /** * * *
   * An Attestation Key (AK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
   * 
* * optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry signing_key = 320948261; * * * @return Whether the signingKey field is set. */ @java.lang.Override public boolean hasSigningKey() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * An Attestation Key (AK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
   * 
* * optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry signing_key = 320948261; * * * @return The signingKey. */ @java.lang.Override public com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry getSigningKey() { return signingKey_ == null ? com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry.getDefaultInstance() : signingKey_; } /** * * *
   * An Attestation Key (AK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
   * 
* * optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry signing_key = 320948261; * */ @java.lang.Override public com.google.cloud.compute.v1.ShieldedInstanceIdentityEntryOrBuilder getSigningKeyOrBuilder() { return signingKey_ == null ? com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry.getDefaultInstance() : signingKey_; } 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 { if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3292052, kind_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(320948261, getSigningKey()); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(488268707, getEncryptionKey()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3292052, kind_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(320948261, getSigningKey()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(488268707, getEncryptionKey()); } 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.cloud.compute.v1.ShieldedInstanceIdentity)) { return super.equals(obj); } com.google.cloud.compute.v1.ShieldedInstanceIdentity other = (com.google.cloud.compute.v1.ShieldedInstanceIdentity) obj; if (hasEncryptionKey() != other.hasEncryptionKey()) return false; if (hasEncryptionKey()) { if (!getEncryptionKey().equals(other.getEncryptionKey())) return false; } if (hasKind() != other.hasKind()) return false; if (hasKind()) { if (!getKind().equals(other.getKind())) return false; } if (hasSigningKey() != other.hasSigningKey()) return false; if (hasSigningKey()) { if (!getSigningKey().equals(other.getSigningKey())) 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 (hasEncryptionKey()) { hash = (37 * hash) + ENCRYPTION_KEY_FIELD_NUMBER; hash = (53 * hash) + getEncryptionKey().hashCode(); } if (hasKind()) { hash = (37 * hash) + KIND_FIELD_NUMBER; hash = (53 * hash) + getKind().hashCode(); } if (hasSigningKey()) { hash = (37 * hash) + SIGNING_KEY_FIELD_NUMBER; hash = (53 * hash) + getSigningKey().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.compute.v1.ShieldedInstanceIdentity parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.compute.v1.ShieldedInstanceIdentity parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.compute.v1.ShieldedInstanceIdentity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.compute.v1.ShieldedInstanceIdentity 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.cloud.compute.v1.ShieldedInstanceIdentity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.compute.v1.ShieldedInstanceIdentity parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.compute.v1.ShieldedInstanceIdentity parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.compute.v1.ShieldedInstanceIdentity 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.cloud.compute.v1.ShieldedInstanceIdentity parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.compute.v1.ShieldedInstanceIdentity 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.cloud.compute.v1.ShieldedInstanceIdentity parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.compute.v1.ShieldedInstanceIdentity 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.cloud.compute.v1.ShieldedInstanceIdentity 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; } /** * * *
   * A Shielded Instance Identity.
   * 
* * Protobuf type {@code google.cloud.compute.v1.ShieldedInstanceIdentity} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.ShieldedInstanceIdentity) com.google.cloud.compute.v1.ShieldedInstanceIdentityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_ShieldedInstanceIdentity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_ShieldedInstanceIdentity_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.compute.v1.ShieldedInstanceIdentity.class, com.google.cloud.compute.v1.ShieldedInstanceIdentity.Builder.class); } // Construct using com.google.cloud.compute.v1.ShieldedInstanceIdentity.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getEncryptionKeyFieldBuilder(); getSigningKeyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; encryptionKey_ = null; if (encryptionKeyBuilder_ != null) { encryptionKeyBuilder_.dispose(); encryptionKeyBuilder_ = null; } kind_ = ""; signingKey_ = null; if (signingKeyBuilder_ != null) { signingKeyBuilder_.dispose(); signingKeyBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_ShieldedInstanceIdentity_descriptor; } @java.lang.Override public com.google.cloud.compute.v1.ShieldedInstanceIdentity getDefaultInstanceForType() { return com.google.cloud.compute.v1.ShieldedInstanceIdentity.getDefaultInstance(); } @java.lang.Override public com.google.cloud.compute.v1.ShieldedInstanceIdentity build() { com.google.cloud.compute.v1.ShieldedInstanceIdentity result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.compute.v1.ShieldedInstanceIdentity buildPartial() { com.google.cloud.compute.v1.ShieldedInstanceIdentity result = new com.google.cloud.compute.v1.ShieldedInstanceIdentity(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.compute.v1.ShieldedInstanceIdentity result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.encryptionKey_ = encryptionKeyBuilder_ == null ? encryptionKey_ : encryptionKeyBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.kind_ = kind_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.signingKey_ = signingKeyBuilder_ == null ? signingKey_ : signingKeyBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_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.cloud.compute.v1.ShieldedInstanceIdentity) { return mergeFrom((com.google.cloud.compute.v1.ShieldedInstanceIdentity) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.compute.v1.ShieldedInstanceIdentity other) { if (other == com.google.cloud.compute.v1.ShieldedInstanceIdentity.getDefaultInstance()) return this; if (other.hasEncryptionKey()) { mergeEncryptionKey(other.getEncryptionKey()); } if (other.hasKind()) { kind_ = other.kind_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasSigningKey()) { mergeSigningKey(other.getSigningKey()); } 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 26336418: { kind_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 26336418 case -1727381206: { input.readMessage(getSigningKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case -1727381206 case -388817638: { input.readMessage(getEncryptionKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case -388817638 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 com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry encryptionKey_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry, com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry.Builder, com.google.cloud.compute.v1.ShieldedInstanceIdentityEntryOrBuilder> encryptionKeyBuilder_; /** * * *
     * An Endorsement Key (EK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
     * 
* * * optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry encryption_key = 488268707; * * * @return Whether the encryptionKey field is set. */ public boolean hasEncryptionKey() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * An Endorsement Key (EK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
     * 
* * * optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry encryption_key = 488268707; * * * @return The encryptionKey. */ public com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry getEncryptionKey() { if (encryptionKeyBuilder_ == null) { return encryptionKey_ == null ? com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry.getDefaultInstance() : encryptionKey_; } else { return encryptionKeyBuilder_.getMessage(); } } /** * * *
     * An Endorsement Key (EK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
     * 
* * * optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry encryption_key = 488268707; * */ public Builder setEncryptionKey( com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry value) { if (encryptionKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } encryptionKey_ = value; } else { encryptionKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * An Endorsement Key (EK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
     * 
* * * optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry encryption_key = 488268707; * */ public Builder setEncryptionKey( com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry.Builder builderForValue) { if (encryptionKeyBuilder_ == null) { encryptionKey_ = builderForValue.build(); } else { encryptionKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * An Endorsement Key (EK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
     * 
* * * optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry encryption_key = 488268707; * */ public Builder mergeEncryptionKey( com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry value) { if (encryptionKeyBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && encryptionKey_ != null && encryptionKey_ != com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry.getDefaultInstance()) { getEncryptionKeyBuilder().mergeFrom(value); } else { encryptionKey_ = value; } } else { encryptionKeyBuilder_.mergeFrom(value); } if (encryptionKey_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * * *
     * An Endorsement Key (EK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
     * 
* * * optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry encryption_key = 488268707; * */ public Builder clearEncryptionKey() { bitField0_ = (bitField0_ & ~0x00000001); encryptionKey_ = null; if (encryptionKeyBuilder_ != null) { encryptionKeyBuilder_.dispose(); encryptionKeyBuilder_ = null; } onChanged(); return this; } /** * * *
     * An Endorsement Key (EK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
     * 
* * * optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry encryption_key = 488268707; * */ public com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry.Builder getEncryptionKeyBuilder() { bitField0_ |= 0x00000001; onChanged(); return getEncryptionKeyFieldBuilder().getBuilder(); } /** * * *
     * An Endorsement Key (EK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
     * 
* * * optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry encryption_key = 488268707; * */ public com.google.cloud.compute.v1.ShieldedInstanceIdentityEntryOrBuilder getEncryptionKeyOrBuilder() { if (encryptionKeyBuilder_ != null) { return encryptionKeyBuilder_.getMessageOrBuilder(); } else { return encryptionKey_ == null ? com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry.getDefaultInstance() : encryptionKey_; } } /** * * *
     * An Endorsement Key (EK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
     * 
* * * optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry encryption_key = 488268707; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry, com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry.Builder, com.google.cloud.compute.v1.ShieldedInstanceIdentityEntryOrBuilder> getEncryptionKeyFieldBuilder() { if (encryptionKeyBuilder_ == null) { encryptionKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry, com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry.Builder, com.google.cloud.compute.v1.ShieldedInstanceIdentityEntryOrBuilder>( getEncryptionKey(), getParentForChildren(), isClean()); encryptionKey_ = null; } return encryptionKeyBuilder_; } private java.lang.Object kind_ = ""; /** * * *
     * [Output Only] Type of the resource. Always compute#shieldedInstanceIdentity for shielded Instance identity entry.
     * 
* * optional string kind = 3292052; * * @return Whether the kind field is set. */ public boolean hasKind() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * [Output Only] Type of the resource. Always compute#shieldedInstanceIdentity for shielded Instance identity entry.
     * 
* * optional string kind = 3292052; * * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * [Output Only] Type of the resource. Always compute#shieldedInstanceIdentity for shielded Instance identity entry.
     * 
* * optional string kind = 3292052; * * @return The bytes for kind. */ public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * [Output Only] Type of the resource. Always compute#shieldedInstanceIdentity for shielded Instance identity entry.
     * 
* * optional string kind = 3292052; * * @param value The kind to set. * @return This builder for chaining. */ public Builder setKind(java.lang.String value) { if (value == null) { throw new NullPointerException(); } kind_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * [Output Only] Type of the resource. Always compute#shieldedInstanceIdentity for shielded Instance identity entry.
     * 
* * optional string kind = 3292052; * * @return This builder for chaining. */ public Builder clearKind() { kind_ = getDefaultInstance().getKind(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * [Output Only] Type of the resource. Always compute#shieldedInstanceIdentity for shielded Instance identity entry.
     * 
* * optional string kind = 3292052; * * @param value The bytes for kind to set. * @return This builder for chaining. */ public Builder setKindBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kind_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry signingKey_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry, com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry.Builder, com.google.cloud.compute.v1.ShieldedInstanceIdentityEntryOrBuilder> signingKeyBuilder_; /** * * *
     * An Attestation Key (AK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
     * 
* * * optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry signing_key = 320948261; * * * @return Whether the signingKey field is set. */ public boolean hasSigningKey() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * An Attestation Key (AK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
     * 
* * * optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry signing_key = 320948261; * * * @return The signingKey. */ public com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry getSigningKey() { if (signingKeyBuilder_ == null) { return signingKey_ == null ? com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry.getDefaultInstance() : signingKey_; } else { return signingKeyBuilder_.getMessage(); } } /** * * *
     * An Attestation Key (AK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
     * 
* * * optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry signing_key = 320948261; * */ public Builder setSigningKey(com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry value) { if (signingKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } signingKey_ = value; } else { signingKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * An Attestation Key (AK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
     * 
* * * optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry signing_key = 320948261; * */ public Builder setSigningKey( com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry.Builder builderForValue) { if (signingKeyBuilder_ == null) { signingKey_ = builderForValue.build(); } else { signingKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * An Attestation Key (AK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
     * 
* * * optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry signing_key = 320948261; * */ public Builder mergeSigningKey( com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry value) { if (signingKeyBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && signingKey_ != null && signingKey_ != com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry.getDefaultInstance()) { getSigningKeyBuilder().mergeFrom(value); } else { signingKey_ = value; } } else { signingKeyBuilder_.mergeFrom(value); } if (signingKey_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * * *
     * An Attestation Key (AK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
     * 
* * * optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry signing_key = 320948261; * */ public Builder clearSigningKey() { bitField0_ = (bitField0_ & ~0x00000004); signingKey_ = null; if (signingKeyBuilder_ != null) { signingKeyBuilder_.dispose(); signingKeyBuilder_ = null; } onChanged(); return this; } /** * * *
     * An Attestation Key (AK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
     * 
* * * optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry signing_key = 320948261; * */ public com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry.Builder getSigningKeyBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSigningKeyFieldBuilder().getBuilder(); } /** * * *
     * An Attestation Key (AK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
     * 
* * * optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry signing_key = 320948261; * */ public com.google.cloud.compute.v1.ShieldedInstanceIdentityEntryOrBuilder getSigningKeyOrBuilder() { if (signingKeyBuilder_ != null) { return signingKeyBuilder_.getMessageOrBuilder(); } else { return signingKey_ == null ? com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry.getDefaultInstance() : signingKey_; } } /** * * *
     * An Attestation Key (AK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
     * 
* * * optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry signing_key = 320948261; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry, com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry.Builder, com.google.cloud.compute.v1.ShieldedInstanceIdentityEntryOrBuilder> getSigningKeyFieldBuilder() { if (signingKeyBuilder_ == null) { signingKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry, com.google.cloud.compute.v1.ShieldedInstanceIdentityEntry.Builder, com.google.cloud.compute.v1.ShieldedInstanceIdentityEntryOrBuilder>( getSigningKey(), getParentForChildren(), isClean()); signingKey_ = null; } return signingKeyBuilder_; } @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.cloud.compute.v1.ShieldedInstanceIdentity) } // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.ShieldedInstanceIdentity) private static final com.google.cloud.compute.v1.ShieldedInstanceIdentity DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.compute.v1.ShieldedInstanceIdentity(); } public static com.google.cloud.compute.v1.ShieldedInstanceIdentity getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ShieldedInstanceIdentity 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.cloud.compute.v1.ShieldedInstanceIdentity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy