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

com.google.cloud.compute.v1.InstantSnapshot 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;

/**
 *
 *
 * 
 * Represents a InstantSnapshot resource. You can use instant snapshots to create disk rollback points quickly..
 * 
* * Protobuf type {@code google.cloud.compute.v1.InstantSnapshot} */ public final class InstantSnapshot extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.InstantSnapshot) InstantSnapshotOrBuilder { private static final long serialVersionUID = 0L; // Use InstantSnapshot.newBuilder() to construct. private InstantSnapshot(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InstantSnapshot() { architecture_ = ""; creationTimestamp_ = ""; description_ = ""; kind_ = ""; labelFingerprint_ = ""; name_ = ""; region_ = ""; selfLink_ = ""; selfLinkWithId_ = ""; sourceDisk_ = ""; sourceDiskId_ = ""; status_ = ""; zone_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InstantSnapshot(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_InstantSnapshot_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 500195327: return internalGetLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_InstantSnapshot_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.compute.v1.InstantSnapshot.class, com.google.cloud.compute.v1.InstantSnapshot.Builder.class); } /** * * *
   * [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64.
   * 
* * Protobuf enum {@code google.cloud.compute.v1.InstantSnapshot.Architecture} */ public enum Architecture implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * A value indicating that the enum field is not set.
     * 
* * UNDEFINED_ARCHITECTURE = 0; */ UNDEFINED_ARCHITECTURE(0), /** * * *
     * Default value indicating Architecture is not set.
     * 
* * ARCHITECTURE_UNSPECIFIED = 394750507; */ ARCHITECTURE_UNSPECIFIED(394750507), /** * * *
     * Machines with architecture ARM64
     * 
* * ARM64 = 62547450; */ ARM64(62547450), /** * * *
     * Machines with architecture X86_64
     * 
* * X86_64 = 425300551; */ X86_64(425300551), UNRECOGNIZED(-1), ; /** * * *
     * A value indicating that the enum field is not set.
     * 
* * UNDEFINED_ARCHITECTURE = 0; */ public static final int UNDEFINED_ARCHITECTURE_VALUE = 0; /** * * *
     * Default value indicating Architecture is not set.
     * 
* * ARCHITECTURE_UNSPECIFIED = 394750507; */ public static final int ARCHITECTURE_UNSPECIFIED_VALUE = 394750507; /** * * *
     * Machines with architecture ARM64
     * 
* * ARM64 = 62547450; */ public static final int ARM64_VALUE = 62547450; /** * * *
     * Machines with architecture X86_64
     * 
* * X86_64 = 425300551; */ public static final int X86_64_VALUE = 425300551; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Architecture valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Architecture forNumber(int value) { switch (value) { case 0: return UNDEFINED_ARCHITECTURE; case 394750507: return ARCHITECTURE_UNSPECIFIED; case 62547450: return ARM64; case 425300551: return X86_64; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Architecture findValueByNumber(int number) { return Architecture.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.compute.v1.InstantSnapshot.getDescriptor().getEnumTypes().get(0); } private static final Architecture[] VALUES = values(); public static Architecture valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Architecture(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.InstantSnapshot.Architecture) } /** * * *
   * [Output Only] The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY.
   * 
* * Protobuf enum {@code google.cloud.compute.v1.InstantSnapshot.Status} */ public enum Status implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * A value indicating that the enum field is not set.
     * 
* * UNDEFINED_STATUS = 0; */ UNDEFINED_STATUS(0), /** * * *
     * InstantSnapshot creation is in progress.
     * 
* * CREATING = 455564985; */ CREATING(455564985), /** * * *
     * InstantSnapshot is currently being deleted.
     * 
* * DELETING = 528602024; */ DELETING(528602024), /** * * *
     * InstantSnapshot creation failed.
     * 
* * FAILED = 455706685; */ FAILED(455706685), /** * * *
     * InstantSnapshot has been created successfully.
     * 
* * READY = 77848963; */ READY(77848963), /** * * *
     * InstantSnapshot is currently unavailable and cannot be used for Disk restoration
     * 
* * UNAVAILABLE = 413756464; */ UNAVAILABLE(413756464), UNRECOGNIZED(-1), ; /** * * *
     * A value indicating that the enum field is not set.
     * 
* * UNDEFINED_STATUS = 0; */ public static final int UNDEFINED_STATUS_VALUE = 0; /** * * *
     * InstantSnapshot creation is in progress.
     * 
* * CREATING = 455564985; */ public static final int CREATING_VALUE = 455564985; /** * * *
     * InstantSnapshot is currently being deleted.
     * 
* * DELETING = 528602024; */ public static final int DELETING_VALUE = 528602024; /** * * *
     * InstantSnapshot creation failed.
     * 
* * FAILED = 455706685; */ public static final int FAILED_VALUE = 455706685; /** * * *
     * InstantSnapshot has been created successfully.
     * 
* * READY = 77848963; */ public static final int READY_VALUE = 77848963; /** * * *
     * InstantSnapshot is currently unavailable and cannot be used for Disk restoration
     * 
* * UNAVAILABLE = 413756464; */ public static final int UNAVAILABLE_VALUE = 413756464; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Status valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Status forNumber(int value) { switch (value) { case 0: return UNDEFINED_STATUS; case 455564985: return CREATING; case 528602024: return DELETING; case 455706685: return FAILED; case 77848963: return READY; case 413756464: return UNAVAILABLE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Status findValueByNumber(int number) { return Status.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.compute.v1.InstantSnapshot.getDescriptor().getEnumTypes().get(1); } private static final Status[] VALUES = values(); public static Status valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Status(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.InstantSnapshot.Status) } private int bitField0_; public static final int ARCHITECTURE_FIELD_NUMBER = 302803283; @SuppressWarnings("serial") private volatile java.lang.Object architecture_ = ""; /** * * *
   * [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64.
   * Check the Architecture enum for the list of possible values.
   * 
* * optional string architecture = 302803283; * * @return Whether the architecture field is set. */ @java.lang.Override public boolean hasArchitecture() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64.
   * Check the Architecture enum for the list of possible values.
   * 
* * optional string architecture = 302803283; * * @return The architecture. */ @java.lang.Override public java.lang.String getArchitecture() { java.lang.Object ref = architecture_; 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(); architecture_ = s; return s; } } /** * * *
   * [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64.
   * Check the Architecture enum for the list of possible values.
   * 
* * optional string architecture = 302803283; * * @return The bytes for architecture. */ @java.lang.Override public com.google.protobuf.ByteString getArchitectureBytes() { java.lang.Object ref = architecture_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); architecture_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATION_TIMESTAMP_FIELD_NUMBER = 30525366; @SuppressWarnings("serial") private volatile java.lang.Object creationTimestamp_ = ""; /** * * *
   * [Output Only] Creation timestamp in RFC3339 text format.
   * 
* * optional string creation_timestamp = 30525366; * * @return Whether the creationTimestamp field is set. */ @java.lang.Override public boolean hasCreationTimestamp() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * [Output Only] Creation timestamp in RFC3339 text format.
   * 
* * optional string creation_timestamp = 30525366; * * @return The creationTimestamp. */ @java.lang.Override public java.lang.String getCreationTimestamp() { java.lang.Object ref = creationTimestamp_; 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(); creationTimestamp_ = s; return s; } } /** * * *
   * [Output Only] Creation timestamp in RFC3339 text format.
   * 
* * optional string creation_timestamp = 30525366; * * @return The bytes for creationTimestamp. */ @java.lang.Override public com.google.protobuf.ByteString getCreationTimestampBytes() { java.lang.Object ref = creationTimestamp_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); creationTimestamp_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 422937596; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** * * *
   * An optional description of this resource. Provide this property when you create the resource.
   * 
* * optional string description = 422937596; * * @return Whether the description field is set. */ @java.lang.Override public boolean hasDescription() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * An optional description of this resource. Provide this property when you create the resource.
   * 
* * optional string description = 422937596; * * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; } } /** * * *
   * An optional description of this resource. Provide this property when you create the resource.
   * 
* * optional string description = 422937596; * * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DISK_SIZE_GB_FIELD_NUMBER = 316263735; private long diskSizeGb_ = 0L; /** * * *
   * [Output Only] Size of the source disk, specified in GB.
   * 
* * optional int64 disk_size_gb = 316263735; * * @return Whether the diskSizeGb field is set. */ @java.lang.Override public boolean hasDiskSizeGb() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * [Output Only] Size of the source disk, specified in GB.
   * 
* * optional int64 disk_size_gb = 316263735; * * @return The diskSizeGb. */ @java.lang.Override public long getDiskSizeGb() { return diskSizeGb_; } public static final int ID_FIELD_NUMBER = 3355; private long id_ = 0L; /** * * *
   * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
   * 
* * optional uint64 id = 3355; * * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
   * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
   * 
* * optional uint64 id = 3355; * * @return The id. */ @java.lang.Override public long getId() { return id_; } public static final int KIND_FIELD_NUMBER = 3292052; @SuppressWarnings("serial") private volatile java.lang.Object kind_ = ""; /** * * *
   * [Output Only] Type of the resource. Always compute#instantSnapshot for InstantSnapshot resources.
   * 
* * optional string kind = 3292052; * * @return Whether the kind field is set. */ @java.lang.Override public boolean hasKind() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
   * [Output Only] Type of the resource. Always compute#instantSnapshot for InstantSnapshot resources.
   * 
* * 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#instantSnapshot for InstantSnapshot resources.
   * 
* * 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 LABEL_FINGERPRINT_FIELD_NUMBER = 178124825; @SuppressWarnings("serial") private volatile java.lang.Object labelFingerprint_ = ""; /** * * *
   * A fingerprint for the labels being applied to this InstantSnapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a InstantSnapshot.
   * 
* * optional string label_fingerprint = 178124825; * * @return Whether the labelFingerprint field is set. */ @java.lang.Override public boolean hasLabelFingerprint() { return ((bitField0_ & 0x00000040) != 0); } /** * * *
   * A fingerprint for the labels being applied to this InstantSnapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a InstantSnapshot.
   * 
* * optional string label_fingerprint = 178124825; * * @return The labelFingerprint. */ @java.lang.Override public java.lang.String getLabelFingerprint() { java.lang.Object ref = labelFingerprint_; 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(); labelFingerprint_ = s; return s; } } /** * * *
   * A fingerprint for the labels being applied to this InstantSnapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a InstantSnapshot.
   * 
* * optional string label_fingerprint = 178124825; * * @return The bytes for labelFingerprint. */ @java.lang.Override public com.google.protobuf.ByteString getLabelFingerprintBytes() { java.lang.Object ref = labelFingerprint_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); labelFingerprint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABELS_FIELD_NUMBER = 500195327; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_InstantSnapshot_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * * *
   * Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty.
   * 
* * map<string, string> labels = 500195327; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * * *
   * Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty.
   * 
* * map<string, string> labels = 500195327; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * * *
   * Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty.
   * 
* * map<string, string> labels = 500195327; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
   * Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty.
   * 
* * map<string, string> labels = 500195327; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int NAME_FIELD_NUMBER = 3373707; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
   * 
* * optional string name = 3373707; * * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000080) != 0); } /** * * *
   * Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
   * 
* * optional string name = 3373707; * * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * * *
   * Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
   * 
* * optional string name = 3373707; * * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REGION_FIELD_NUMBER = 138946292; @SuppressWarnings("serial") private volatile java.lang.Object region_ = ""; /** * * *
   * [Output Only] URL of the region where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
   * 
* * optional string region = 138946292; * * @return Whether the region field is set. */ @java.lang.Override public boolean hasRegion() { return ((bitField0_ & 0x00000100) != 0); } /** * * *
   * [Output Only] URL of the region where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
   * 
* * optional string region = 138946292; * * @return The region. */ @java.lang.Override public java.lang.String getRegion() { java.lang.Object ref = region_; 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(); region_ = s; return s; } } /** * * *
   * [Output Only] URL of the region where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
   * 
* * optional string region = 138946292; * * @return The bytes for region. */ @java.lang.Override public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RESOURCE_STATUS_FIELD_NUMBER = 249429315; private com.google.cloud.compute.v1.InstantSnapshotResourceStatus resourceStatus_; /** * * *
   * [Output Only] Status information for the instant snapshot resource.
   * 
* * * optional .google.cloud.compute.v1.InstantSnapshotResourceStatus resource_status = 249429315; * * * @return Whether the resourceStatus field is set. */ @java.lang.Override public boolean hasResourceStatus() { return ((bitField0_ & 0x00000200) != 0); } /** * * *
   * [Output Only] Status information for the instant snapshot resource.
   * 
* * * optional .google.cloud.compute.v1.InstantSnapshotResourceStatus resource_status = 249429315; * * * @return The resourceStatus. */ @java.lang.Override public com.google.cloud.compute.v1.InstantSnapshotResourceStatus getResourceStatus() { return resourceStatus_ == null ? com.google.cloud.compute.v1.InstantSnapshotResourceStatus.getDefaultInstance() : resourceStatus_; } /** * * *
   * [Output Only] Status information for the instant snapshot resource.
   * 
* * * optional .google.cloud.compute.v1.InstantSnapshotResourceStatus resource_status = 249429315; * */ @java.lang.Override public com.google.cloud.compute.v1.InstantSnapshotResourceStatusOrBuilder getResourceStatusOrBuilder() { return resourceStatus_ == null ? com.google.cloud.compute.v1.InstantSnapshotResourceStatus.getDefaultInstance() : resourceStatus_; } public static final int SATISFIES_PZI_FIELD_NUMBER = 480964257; private boolean satisfiesPzi_ = false; /** * * *
   * Output only. Reserved for future use.
   * 
* * optional bool satisfies_pzi = 480964257; * * @return Whether the satisfiesPzi field is set. */ @java.lang.Override public boolean hasSatisfiesPzi() { return ((bitField0_ & 0x00000400) != 0); } /** * * *
   * Output only. Reserved for future use.
   * 
* * optional bool satisfies_pzi = 480964257; * * @return The satisfiesPzi. */ @java.lang.Override public boolean getSatisfiesPzi() { return satisfiesPzi_; } public static final int SATISFIES_PZS_FIELD_NUMBER = 480964267; private boolean satisfiesPzs_ = false; /** * * *
   * [Output Only] Reserved for future use.
   * 
* * optional bool satisfies_pzs = 480964267; * * @return Whether the satisfiesPzs field is set. */ @java.lang.Override public boolean hasSatisfiesPzs() { return ((bitField0_ & 0x00000800) != 0); } /** * * *
   * [Output Only] Reserved for future use.
   * 
* * optional bool satisfies_pzs = 480964267; * * @return The satisfiesPzs. */ @java.lang.Override public boolean getSatisfiesPzs() { return satisfiesPzs_; } public static final int SELF_LINK_FIELD_NUMBER = 456214797; @SuppressWarnings("serial") private volatile java.lang.Object selfLink_ = ""; /** * * *
   * [Output Only] Server-defined URL for the resource.
   * 
* * optional string self_link = 456214797; * * @return Whether the selfLink field is set. */ @java.lang.Override public boolean hasSelfLink() { return ((bitField0_ & 0x00001000) != 0); } /** * * *
   * [Output Only] Server-defined URL for the resource.
   * 
* * optional string self_link = 456214797; * * @return The selfLink. */ @java.lang.Override public java.lang.String getSelfLink() { java.lang.Object ref = selfLink_; 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(); selfLink_ = s; return s; } } /** * * *
   * [Output Only] Server-defined URL for the resource.
   * 
* * optional string self_link = 456214797; * * @return The bytes for selfLink. */ @java.lang.Override public com.google.protobuf.ByteString getSelfLinkBytes() { java.lang.Object ref = selfLink_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); selfLink_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SELF_LINK_WITH_ID_FIELD_NUMBER = 44520962; @SuppressWarnings("serial") private volatile java.lang.Object selfLinkWithId_ = ""; /** * * *
   * [Output Only] Server-defined URL for this resource's resource id.
   * 
* * optional string self_link_with_id = 44520962; * * @return Whether the selfLinkWithId field is set. */ @java.lang.Override public boolean hasSelfLinkWithId() { return ((bitField0_ & 0x00002000) != 0); } /** * * *
   * [Output Only] Server-defined URL for this resource's resource id.
   * 
* * optional string self_link_with_id = 44520962; * * @return The selfLinkWithId. */ @java.lang.Override public java.lang.String getSelfLinkWithId() { java.lang.Object ref = selfLinkWithId_; 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(); selfLinkWithId_ = s; return s; } } /** * * *
   * [Output Only] Server-defined URL for this resource's resource id.
   * 
* * optional string self_link_with_id = 44520962; * * @return The bytes for selfLinkWithId. */ @java.lang.Override public com.google.protobuf.ByteString getSelfLinkWithIdBytes() { java.lang.Object ref = selfLinkWithId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); selfLinkWithId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SOURCE_DISK_FIELD_NUMBER = 451753793; @SuppressWarnings("serial") private volatile java.lang.Object sourceDisk_ = ""; /** * * *
   * URL of the source disk used to create this instant snapshot. Note that the source disk must be in the same zone/region as the instant snapshot to be created. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk
   * 
* * optional string source_disk = 451753793; * * @return Whether the sourceDisk field is set. */ @java.lang.Override public boolean hasSourceDisk() { return ((bitField0_ & 0x00004000) != 0); } /** * * *
   * URL of the source disk used to create this instant snapshot. Note that the source disk must be in the same zone/region as the instant snapshot to be created. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk
   * 
* * optional string source_disk = 451753793; * * @return The sourceDisk. */ @java.lang.Override public java.lang.String getSourceDisk() { java.lang.Object ref = sourceDisk_; 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(); sourceDisk_ = s; return s; } } /** * * *
   * URL of the source disk used to create this instant snapshot. Note that the source disk must be in the same zone/region as the instant snapshot to be created. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk
   * 
* * optional string source_disk = 451753793; * * @return The bytes for sourceDisk. */ @java.lang.Override public com.google.protobuf.ByteString getSourceDiskBytes() { java.lang.Object ref = sourceDisk_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceDisk_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SOURCE_DISK_ID_FIELD_NUMBER = 454190809; @SuppressWarnings("serial") private volatile java.lang.Object sourceDiskId_ = ""; /** * * *
   * [Output Only] The ID value of the disk used to create this InstantSnapshot. This value may be used to determine whether the InstantSnapshot was taken from the current or a previous instance of a given disk name.
   * 
* * optional string source_disk_id = 454190809; * * @return Whether the sourceDiskId field is set. */ @java.lang.Override public boolean hasSourceDiskId() { return ((bitField0_ & 0x00008000) != 0); } /** * * *
   * [Output Only] The ID value of the disk used to create this InstantSnapshot. This value may be used to determine whether the InstantSnapshot was taken from the current or a previous instance of a given disk name.
   * 
* * optional string source_disk_id = 454190809; * * @return The sourceDiskId. */ @java.lang.Override public java.lang.String getSourceDiskId() { java.lang.Object ref = sourceDiskId_; 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(); sourceDiskId_ = s; return s; } } /** * * *
   * [Output Only] The ID value of the disk used to create this InstantSnapshot. This value may be used to determine whether the InstantSnapshot was taken from the current or a previous instance of a given disk name.
   * 
* * optional string source_disk_id = 454190809; * * @return The bytes for sourceDiskId. */ @java.lang.Override public com.google.protobuf.ByteString getSourceDiskIdBytes() { java.lang.Object ref = sourceDiskId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceDiskId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATUS_FIELD_NUMBER = 181260274; @SuppressWarnings("serial") private volatile java.lang.Object status_ = ""; /** * * *
   * [Output Only] The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY.
   * Check the Status enum for the list of possible values.
   * 
* * optional string status = 181260274; * * @return Whether the status field is set. */ @java.lang.Override public boolean hasStatus() { return ((bitField0_ & 0x00010000) != 0); } /** * * *
   * [Output Only] The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY.
   * Check the Status enum for the list of possible values.
   * 
* * optional string status = 181260274; * * @return The status. */ @java.lang.Override public java.lang.String getStatus() { java.lang.Object ref = status_; 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(); status_ = s; return s; } } /** * * *
   * [Output Only] The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY.
   * Check the Status enum for the list of possible values.
   * 
* * optional string status = 181260274; * * @return The bytes for status. */ @java.lang.Override public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ZONE_FIELD_NUMBER = 3744684; @SuppressWarnings("serial") private volatile java.lang.Object zone_ = ""; /** * * *
   * [Output Only] URL of the zone where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
   * 
* * optional string zone = 3744684; * * @return Whether the zone field is set. */ @java.lang.Override public boolean hasZone() { return ((bitField0_ & 0x00020000) != 0); } /** * * *
   * [Output Only] URL of the zone where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
   * 
* * optional string zone = 3744684; * * @return The zone. */ @java.lang.Override public java.lang.String getZone() { java.lang.Object ref = zone_; 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(); zone_ = s; return s; } } /** * * *
   * [Output Only] URL of the zone where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
   * 
* * optional string zone = 3744684; * * @return The bytes for zone. */ @java.lang.Override public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); zone_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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_ & 0x00000010) != 0)) { output.writeUInt64(3355, id_); } if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3292052, kind_); } if (((bitField0_ & 0x00000080) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3373707, name_); } if (((bitField0_ & 0x00020000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3744684, zone_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 30525366, creationTimestamp_); } if (((bitField0_ & 0x00002000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 44520962, selfLinkWithId_); } if (((bitField0_ & 0x00000100) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 138946292, region_); } if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 178124825, labelFingerprint_); } if (((bitField0_ & 0x00010000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 181260274, status_); } if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(249429315, getResourceStatus()); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 302803283, architecture_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeInt64(316263735, diskSizeGb_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 422937596, description_); } if (((bitField0_ & 0x00004000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 451753793, sourceDisk_); } if (((bitField0_ & 0x00008000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 454190809, sourceDiskId_); } if (((bitField0_ & 0x00001000) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 456214797, selfLink_); } if (((bitField0_ & 0x00000400) != 0)) { output.writeBool(480964257, satisfiesPzi_); } if (((bitField0_ & 0x00000800) != 0)) { output.writeBool(480964267, satisfiesPzs_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 500195327); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3355, id_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3292052, kind_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3373707, name_); } if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3744684, zone_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30525366, creationTimestamp_); } if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(44520962, selfLinkWithId_); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(138946292, region_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(178124825, labelFingerprint_); } if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(181260274, status_); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(249429315, getResourceStatus()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(302803283, architecture_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(316263735, diskSizeGb_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(422937596, description_); } if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(451753793, sourceDisk_); } if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(454190809, sourceDiskId_); } if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(456214797, selfLink_); } if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(480964257, satisfiesPzi_); } if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(480964267, satisfiesPzs_); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(500195327, labels__); } 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.InstantSnapshot)) { return super.equals(obj); } com.google.cloud.compute.v1.InstantSnapshot other = (com.google.cloud.compute.v1.InstantSnapshot) obj; if (hasArchitecture() != other.hasArchitecture()) return false; if (hasArchitecture()) { if (!getArchitecture().equals(other.getArchitecture())) return false; } if (hasCreationTimestamp() != other.hasCreationTimestamp()) return false; if (hasCreationTimestamp()) { if (!getCreationTimestamp().equals(other.getCreationTimestamp())) return false; } if (hasDescription() != other.hasDescription()) return false; if (hasDescription()) { if (!getDescription().equals(other.getDescription())) return false; } if (hasDiskSizeGb() != other.hasDiskSizeGb()) return false; if (hasDiskSizeGb()) { if (getDiskSizeGb() != other.getDiskSizeGb()) return false; } if (hasId() != other.hasId()) return false; if (hasId()) { if (getId() != other.getId()) return false; } if (hasKind() != other.hasKind()) return false; if (hasKind()) { if (!getKind().equals(other.getKind())) return false; } if (hasLabelFingerprint() != other.hasLabelFingerprint()) return false; if (hasLabelFingerprint()) { if (!getLabelFingerprint().equals(other.getLabelFingerprint())) return false; } if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName().equals(other.getName())) return false; } if (hasRegion() != other.hasRegion()) return false; if (hasRegion()) { if (!getRegion().equals(other.getRegion())) return false; } if (hasResourceStatus() != other.hasResourceStatus()) return false; if (hasResourceStatus()) { if (!getResourceStatus().equals(other.getResourceStatus())) return false; } if (hasSatisfiesPzi() != other.hasSatisfiesPzi()) return false; if (hasSatisfiesPzi()) { if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; } if (hasSatisfiesPzs() != other.hasSatisfiesPzs()) return false; if (hasSatisfiesPzs()) { if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; } if (hasSelfLink() != other.hasSelfLink()) return false; if (hasSelfLink()) { if (!getSelfLink().equals(other.getSelfLink())) return false; } if (hasSelfLinkWithId() != other.hasSelfLinkWithId()) return false; if (hasSelfLinkWithId()) { if (!getSelfLinkWithId().equals(other.getSelfLinkWithId())) return false; } if (hasSourceDisk() != other.hasSourceDisk()) return false; if (hasSourceDisk()) { if (!getSourceDisk().equals(other.getSourceDisk())) return false; } if (hasSourceDiskId() != other.hasSourceDiskId()) return false; if (hasSourceDiskId()) { if (!getSourceDiskId().equals(other.getSourceDiskId())) return false; } if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { if (!getStatus().equals(other.getStatus())) return false; } if (hasZone() != other.hasZone()) return false; if (hasZone()) { if (!getZone().equals(other.getZone())) 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 (hasArchitecture()) { hash = (37 * hash) + ARCHITECTURE_FIELD_NUMBER; hash = (53 * hash) + getArchitecture().hashCode(); } if (hasCreationTimestamp()) { hash = (37 * hash) + CREATION_TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getCreationTimestamp().hashCode(); } if (hasDescription()) { hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); } if (hasDiskSizeGb()) { hash = (37 * hash) + DISK_SIZE_GB_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDiskSizeGb()); } if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getId()); } if (hasKind()) { hash = (37 * hash) + KIND_FIELD_NUMBER; hash = (53 * hash) + getKind().hashCode(); } if (hasLabelFingerprint()) { hash = (37 * hash) + LABEL_FINGERPRINT_FIELD_NUMBER; hash = (53 * hash) + getLabelFingerprint().hashCode(); } if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasRegion()) { hash = (37 * hash) + REGION_FIELD_NUMBER; hash = (53 * hash) + getRegion().hashCode(); } if (hasResourceStatus()) { hash = (37 * hash) + RESOURCE_STATUS_FIELD_NUMBER; hash = (53 * hash) + getResourceStatus().hashCode(); } if (hasSatisfiesPzi()) { hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); } if (hasSatisfiesPzs()) { hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); } if (hasSelfLink()) { hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; hash = (53 * hash) + getSelfLink().hashCode(); } if (hasSelfLinkWithId()) { hash = (37 * hash) + SELF_LINK_WITH_ID_FIELD_NUMBER; hash = (53 * hash) + getSelfLinkWithId().hashCode(); } if (hasSourceDisk()) { hash = (37 * hash) + SOURCE_DISK_FIELD_NUMBER; hash = (53 * hash) + getSourceDisk().hashCode(); } if (hasSourceDiskId()) { hash = (37 * hash) + SOURCE_DISK_ID_FIELD_NUMBER; hash = (53 * hash) + getSourceDiskId().hashCode(); } if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } if (hasZone()) { hash = (37 * hash) + ZONE_FIELD_NUMBER; hash = (53 * hash) + getZone().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.compute.v1.InstantSnapshot parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.compute.v1.InstantSnapshot 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.InstantSnapshot parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.compute.v1.InstantSnapshot 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.InstantSnapshot parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.compute.v1.InstantSnapshot 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.InstantSnapshot parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.compute.v1.InstantSnapshot 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.InstantSnapshot parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.compute.v1.InstantSnapshot 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.InstantSnapshot 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.InstantSnapshot 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.InstantSnapshot 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; } /** * * *
   * Represents a InstantSnapshot resource. You can use instant snapshots to create disk rollback points quickly..
   * 
* * Protobuf type {@code google.cloud.compute.v1.InstantSnapshot} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.InstantSnapshot) com.google.cloud.compute.v1.InstantSnapshotOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_InstantSnapshot_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 500195327: return internalGetLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 500195327: return internalGetMutableLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_InstantSnapshot_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.compute.v1.InstantSnapshot.class, com.google.cloud.compute.v1.InstantSnapshot.Builder.class); } // Construct using com.google.cloud.compute.v1.InstantSnapshot.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getResourceStatusFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; architecture_ = ""; creationTimestamp_ = ""; description_ = ""; diskSizeGb_ = 0L; id_ = 0L; kind_ = ""; labelFingerprint_ = ""; internalGetMutableLabels().clear(); name_ = ""; region_ = ""; resourceStatus_ = null; if (resourceStatusBuilder_ != null) { resourceStatusBuilder_.dispose(); resourceStatusBuilder_ = null; } satisfiesPzi_ = false; satisfiesPzs_ = false; selfLink_ = ""; selfLinkWithId_ = ""; sourceDisk_ = ""; sourceDiskId_ = ""; status_ = ""; zone_ = ""; 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_InstantSnapshot_descriptor; } @java.lang.Override public com.google.cloud.compute.v1.InstantSnapshot getDefaultInstanceForType() { return com.google.cloud.compute.v1.InstantSnapshot.getDefaultInstance(); } @java.lang.Override public com.google.cloud.compute.v1.InstantSnapshot build() { com.google.cloud.compute.v1.InstantSnapshot result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.compute.v1.InstantSnapshot buildPartial() { com.google.cloud.compute.v1.InstantSnapshot result = new com.google.cloud.compute.v1.InstantSnapshot(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.compute.v1.InstantSnapshot result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.architecture_ = architecture_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.creationTimestamp_ = creationTimestamp_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.description_ = description_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.diskSizeGb_ = diskSizeGb_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.id_ = id_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.kind_ = kind_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { result.labelFingerprint_ = labelFingerprint_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00000100) != 0)) { result.name_ = name_; to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000200) != 0)) { result.region_ = region_; to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000400) != 0)) { result.resourceStatus_ = resourceStatusBuilder_ == null ? resourceStatus_ : resourceStatusBuilder_.build(); to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00000800) != 0)) { result.satisfiesPzi_ = satisfiesPzi_; to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00001000) != 0)) { result.satisfiesPzs_ = satisfiesPzs_; to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x00002000) != 0)) { result.selfLink_ = selfLink_; to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x00004000) != 0)) { result.selfLinkWithId_ = selfLinkWithId_; to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x00008000) != 0)) { result.sourceDisk_ = sourceDisk_; to_bitField0_ |= 0x00004000; } if (((from_bitField0_ & 0x00010000) != 0)) { result.sourceDiskId_ = sourceDiskId_; to_bitField0_ |= 0x00008000; } if (((from_bitField0_ & 0x00020000) != 0)) { result.status_ = status_; to_bitField0_ |= 0x00010000; } if (((from_bitField0_ & 0x00040000) != 0)) { result.zone_ = zone_; to_bitField0_ |= 0x00020000; } 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.InstantSnapshot) { return mergeFrom((com.google.cloud.compute.v1.InstantSnapshot) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.compute.v1.InstantSnapshot other) { if (other == com.google.cloud.compute.v1.InstantSnapshot.getDefaultInstance()) return this; if (other.hasArchitecture()) { architecture_ = other.architecture_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasCreationTimestamp()) { creationTimestamp_ = other.creationTimestamp_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasDescription()) { description_ = other.description_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasDiskSizeGb()) { setDiskSizeGb(other.getDiskSizeGb()); } if (other.hasId()) { setId(other.getId()); } if (other.hasKind()) { kind_ = other.kind_; bitField0_ |= 0x00000020; onChanged(); } if (other.hasLabelFingerprint()) { labelFingerprint_ = other.labelFingerprint_; bitField0_ |= 0x00000040; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000080; if (other.hasName()) { name_ = other.name_; bitField0_ |= 0x00000100; onChanged(); } if (other.hasRegion()) { region_ = other.region_; bitField0_ |= 0x00000200; onChanged(); } if (other.hasResourceStatus()) { mergeResourceStatus(other.getResourceStatus()); } if (other.hasSatisfiesPzi()) { setSatisfiesPzi(other.getSatisfiesPzi()); } if (other.hasSatisfiesPzs()) { setSatisfiesPzs(other.getSatisfiesPzs()); } if (other.hasSelfLink()) { selfLink_ = other.selfLink_; bitField0_ |= 0x00002000; onChanged(); } if (other.hasSelfLinkWithId()) { selfLinkWithId_ = other.selfLinkWithId_; bitField0_ |= 0x00004000; onChanged(); } if (other.hasSourceDisk()) { sourceDisk_ = other.sourceDisk_; bitField0_ |= 0x00008000; onChanged(); } if (other.hasSourceDiskId()) { sourceDiskId_ = other.sourceDiskId_; bitField0_ |= 0x00010000; onChanged(); } if (other.hasStatus()) { status_ = other.status_; bitField0_ |= 0x00020000; onChanged(); } if (other.hasZone()) { zone_ = other.zone_; bitField0_ |= 0x00040000; onChanged(); } 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 26840: { id_ = input.readUInt64(); bitField0_ |= 0x00000010; break; } // case 26840 case 26336418: { kind_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 26336418 case 26989658: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000100; break; } // case 26989658 case 29957474: { zone_ = input.readStringRequireUtf8(); bitField0_ |= 0x00040000; break; } // case 29957474 case 244202930: { creationTimestamp_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 244202930 case 356167698: { selfLinkWithId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00004000; break; } // case 356167698 case 1111570338: { region_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000200; break; } // case 1111570338 case 1424998602: { labelFingerprint_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 1424998602 case 1450082194: { status_ = input.readStringRequireUtf8(); bitField0_ |= 0x00020000; break; } // case 1450082194 case 1995434522: { input.readMessage(getResourceStatusFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000400; break; } // case 1995434522 case -1872541030: { architecture_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case -1872541030 case -1764857416: { diskSizeGb_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case -1764857416 case -911466526: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case -911466526 case -680936950: { sourceDisk_ = input.readStringRequireUtf8(); bitField0_ |= 0x00008000; break; } // case -680936950 case -661440822: { sourceDiskId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00010000; break; } // case -661440822 case -645248918: { selfLink_ = input.readStringRequireUtf8(); bitField0_ |= 0x00002000; break; } // case -645248918 case -447253240: { satisfiesPzi_ = input.readBool(); bitField0_ |= 0x00000800; break; } // case -447253240 case -447253160: { satisfiesPzs_ = input.readBool(); bitField0_ |= 0x00001000; break; } // case -447253160 case -293404678: { com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); bitField0_ |= 0x00000080; break; } // case -293404678 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.lang.Object architecture_ = ""; /** * * *
     * [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64.
     * Check the Architecture enum for the list of possible values.
     * 
* * optional string architecture = 302803283; * * @return Whether the architecture field is set. */ public boolean hasArchitecture() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64.
     * Check the Architecture enum for the list of possible values.
     * 
* * optional string architecture = 302803283; * * @return The architecture. */ public java.lang.String getArchitecture() { java.lang.Object ref = architecture_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); architecture_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64.
     * Check the Architecture enum for the list of possible values.
     * 
* * optional string architecture = 302803283; * * @return The bytes for architecture. */ public com.google.protobuf.ByteString getArchitectureBytes() { java.lang.Object ref = architecture_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); architecture_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64.
     * Check the Architecture enum for the list of possible values.
     * 
* * optional string architecture = 302803283; * * @param value The architecture to set. * @return This builder for chaining. */ public Builder setArchitecture(java.lang.String value) { if (value == null) { throw new NullPointerException(); } architecture_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64.
     * Check the Architecture enum for the list of possible values.
     * 
* * optional string architecture = 302803283; * * @return This builder for chaining. */ public Builder clearArchitecture() { architecture_ = getDefaultInstance().getArchitecture(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64.
     * Check the Architecture enum for the list of possible values.
     * 
* * optional string architecture = 302803283; * * @param value The bytes for architecture to set. * @return This builder for chaining. */ public Builder setArchitectureBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); architecture_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object creationTimestamp_ = ""; /** * * *
     * [Output Only] Creation timestamp in RFC3339 text format.
     * 
* * optional string creation_timestamp = 30525366; * * @return Whether the creationTimestamp field is set. */ public boolean hasCreationTimestamp() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * [Output Only] Creation timestamp in RFC3339 text format.
     * 
* * optional string creation_timestamp = 30525366; * * @return The creationTimestamp. */ public java.lang.String getCreationTimestamp() { java.lang.Object ref = creationTimestamp_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); creationTimestamp_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * [Output Only] Creation timestamp in RFC3339 text format.
     * 
* * optional string creation_timestamp = 30525366; * * @return The bytes for creationTimestamp. */ public com.google.protobuf.ByteString getCreationTimestampBytes() { java.lang.Object ref = creationTimestamp_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); creationTimestamp_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * [Output Only] Creation timestamp in RFC3339 text format.
     * 
* * optional string creation_timestamp = 30525366; * * @param value The creationTimestamp to set. * @return This builder for chaining. */ public Builder setCreationTimestamp(java.lang.String value) { if (value == null) { throw new NullPointerException(); } creationTimestamp_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * [Output Only] Creation timestamp in RFC3339 text format.
     * 
* * optional string creation_timestamp = 30525366; * * @return This builder for chaining. */ public Builder clearCreationTimestamp() { creationTimestamp_ = getDefaultInstance().getCreationTimestamp(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * [Output Only] Creation timestamp in RFC3339 text format.
     * 
* * optional string creation_timestamp = 30525366; * * @param value The bytes for creationTimestamp to set. * @return This builder for chaining. */ public Builder setCreationTimestampBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); creationTimestamp_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object description_ = ""; /** * * *
     * An optional description of this resource. Provide this property when you create the resource.
     * 
* * optional string description = 422937596; * * @return Whether the description field is set. */ public boolean hasDescription() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * An optional description of this resource. Provide this property when you create the resource.
     * 
* * optional string description = 422937596; * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * An optional description of this resource. Provide this property when you create the resource.
     * 
* * optional string description = 422937596; * * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * An optional description of this resource. Provide this property when you create the resource.
     * 
* * optional string description = 422937596; * * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * An optional description of this resource. Provide this property when you create the resource.
     * 
* * optional string description = 422937596; * * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
     * An optional description of this resource. Provide this property when you create the resource.
     * 
* * optional string description = 422937596; * * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private long diskSizeGb_; /** * * *
     * [Output Only] Size of the source disk, specified in GB.
     * 
* * optional int64 disk_size_gb = 316263735; * * @return Whether the diskSizeGb field is set. */ @java.lang.Override public boolean hasDiskSizeGb() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * [Output Only] Size of the source disk, specified in GB.
     * 
* * optional int64 disk_size_gb = 316263735; * * @return The diskSizeGb. */ @java.lang.Override public long getDiskSizeGb() { return diskSizeGb_; } /** * * *
     * [Output Only] Size of the source disk, specified in GB.
     * 
* * optional int64 disk_size_gb = 316263735; * * @param value The diskSizeGb to set. * @return This builder for chaining. */ public Builder setDiskSizeGb(long value) { diskSizeGb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * [Output Only] Size of the source disk, specified in GB.
     * 
* * optional int64 disk_size_gb = 316263735; * * @return This builder for chaining. */ public Builder clearDiskSizeGb() { bitField0_ = (bitField0_ & ~0x00000008); diskSizeGb_ = 0L; onChanged(); return this; } private long id_; /** * * *
     * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
     * 
* * optional uint64 id = 3355; * * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
     * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
     * 
* * optional uint64 id = 3355; * * @return The id. */ @java.lang.Override public long getId() { return id_; } /** * * *
     * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
     * 
* * optional uint64 id = 3355; * * @param value The id to set. * @return This builder for chaining. */ public Builder setId(long value) { id_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
     * 
* * optional uint64 id = 3355; * * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000010); id_ = 0L; onChanged(); return this; } private java.lang.Object kind_ = ""; /** * * *
     * [Output Only] Type of the resource. Always compute#instantSnapshot for InstantSnapshot resources.
     * 
* * optional string kind = 3292052; * * @return Whether the kind field is set. */ public boolean hasKind() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
     * [Output Only] Type of the resource. Always compute#instantSnapshot for InstantSnapshot resources.
     * 
* * 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#instantSnapshot for InstantSnapshot resources.
     * 
* * 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#instantSnapshot for InstantSnapshot resources.
     * 
* * 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_ |= 0x00000020; onChanged(); return this; } /** * * *
     * [Output Only] Type of the resource. Always compute#instantSnapshot for InstantSnapshot resources.
     * 
* * optional string kind = 3292052; * * @return This builder for chaining. */ public Builder clearKind() { kind_ = getDefaultInstance().getKind(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * * *
     * [Output Only] Type of the resource. Always compute#instantSnapshot for InstantSnapshot resources.
     * 
* * 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_ |= 0x00000020; onChanged(); return this; } private java.lang.Object labelFingerprint_ = ""; /** * * *
     * A fingerprint for the labels being applied to this InstantSnapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a InstantSnapshot.
     * 
* * optional string label_fingerprint = 178124825; * * @return Whether the labelFingerprint field is set. */ public boolean hasLabelFingerprint() { return ((bitField0_ & 0x00000040) != 0); } /** * * *
     * A fingerprint for the labels being applied to this InstantSnapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a InstantSnapshot.
     * 
* * optional string label_fingerprint = 178124825; * * @return The labelFingerprint. */ public java.lang.String getLabelFingerprint() { java.lang.Object ref = labelFingerprint_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); labelFingerprint_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * A fingerprint for the labels being applied to this InstantSnapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a InstantSnapshot.
     * 
* * optional string label_fingerprint = 178124825; * * @return The bytes for labelFingerprint. */ public com.google.protobuf.ByteString getLabelFingerprintBytes() { java.lang.Object ref = labelFingerprint_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); labelFingerprint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * A fingerprint for the labels being applied to this InstantSnapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a InstantSnapshot.
     * 
* * optional string label_fingerprint = 178124825; * * @param value The labelFingerprint to set. * @return This builder for chaining. */ public Builder setLabelFingerprint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } labelFingerprint_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * A fingerprint for the labels being applied to this InstantSnapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a InstantSnapshot.
     * 
* * optional string label_fingerprint = 178124825; * * @return This builder for chaining. */ public Builder clearLabelFingerprint() { labelFingerprint_ = getDefaultInstance().getLabelFingerprint(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * * *
     * A fingerprint for the labels being applied to this InstantSnapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a InstantSnapshot.
     * 
* * optional string label_fingerprint = 178124825; * * @param value The bytes for labelFingerprint to set. * @return This builder for chaining. */ public Builder setLabelFingerprintBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); labelFingerprint_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } bitField0_ |= 0x00000080; onChanged(); return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * * *
     * Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty.
     * 
* * map<string, string> labels = 500195327; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * * *
     * Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty.
     * 
* * map<string, string> labels = 500195327; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * * *
     * Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty.
     * 
* * map<string, string> labels = 500195327; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty.
     * 
* * map<string, string> labels = 500195327; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000080); internalGetMutableLabels().getMutableMap().clear(); return this; } /** * * *
     * Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty.
     * 
* * map<string, string> labels = 500195327; */ public Builder removeLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { bitField0_ |= 0x00000080; return internalGetMutableLabels().getMutableMap(); } /** * * *
     * Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty.
     * 
* * map<string, string> labels = 500195327; */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000080; return this; } /** * * *
     * Labels to apply to this InstantSnapshot. These can be later modified by the setLabels method. Label values may be empty.
     * 
* * map<string, string> labels = 500195327; */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000080; return this; } private java.lang.Object name_ = ""; /** * * *
     * Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
     * 
* * optional string name = 3373707; * * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000100) != 0); } /** * * *
     * Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
     * 
* * optional string name = 3373707; * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
     * 
* * optional string name = 3373707; * * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
     * 
* * optional string name = 3373707; * * @param value The name to set. * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
     * 
* * optional string name = 3373707; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** * * *
     * Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
     * 
* * optional string name = 3373707; * * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } private java.lang.Object region_ = ""; /** * * *
     * [Output Only] URL of the region where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
     * 
* * optional string region = 138946292; * * @return Whether the region field is set. */ public boolean hasRegion() { return ((bitField0_ & 0x00000200) != 0); } /** * * *
     * [Output Only] URL of the region where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
     * 
* * optional string region = 138946292; * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * [Output Only] URL of the region where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
     * 
* * optional string region = 138946292; * * @return The bytes for region. */ public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * [Output Only] URL of the region where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
     * 
* * optional string region = 138946292; * * @param value The region to set. * @return This builder for chaining. */ public Builder setRegion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } region_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * [Output Only] URL of the region where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
     * 
* * optional string region = 138946292; * * @return This builder for chaining. */ public Builder clearRegion() { region_ = getDefaultInstance().getRegion(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } /** * * *
     * [Output Only] URL of the region where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
     * 
* * optional string region = 138946292; * * @param value The bytes for region to set. * @return This builder for chaining. */ public Builder setRegionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); region_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } private com.google.cloud.compute.v1.InstantSnapshotResourceStatus resourceStatus_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.compute.v1.InstantSnapshotResourceStatus, com.google.cloud.compute.v1.InstantSnapshotResourceStatus.Builder, com.google.cloud.compute.v1.InstantSnapshotResourceStatusOrBuilder> resourceStatusBuilder_; /** * * *
     * [Output Only] Status information for the instant snapshot resource.
     * 
* * * optional .google.cloud.compute.v1.InstantSnapshotResourceStatus resource_status = 249429315; * * * @return Whether the resourceStatus field is set. */ public boolean hasResourceStatus() { return ((bitField0_ & 0x00000400) != 0); } /** * * *
     * [Output Only] Status information for the instant snapshot resource.
     * 
* * * optional .google.cloud.compute.v1.InstantSnapshotResourceStatus resource_status = 249429315; * * * @return The resourceStatus. */ public com.google.cloud.compute.v1.InstantSnapshotResourceStatus getResourceStatus() { if (resourceStatusBuilder_ == null) { return resourceStatus_ == null ? com.google.cloud.compute.v1.InstantSnapshotResourceStatus.getDefaultInstance() : resourceStatus_; } else { return resourceStatusBuilder_.getMessage(); } } /** * * *
     * [Output Only] Status information for the instant snapshot resource.
     * 
* * * optional .google.cloud.compute.v1.InstantSnapshotResourceStatus resource_status = 249429315; * */ public Builder setResourceStatus( com.google.cloud.compute.v1.InstantSnapshotResourceStatus value) { if (resourceStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resourceStatus_ = value; } else { resourceStatusBuilder_.setMessage(value); } bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * [Output Only] Status information for the instant snapshot resource.
     * 
* * * optional .google.cloud.compute.v1.InstantSnapshotResourceStatus resource_status = 249429315; * */ public Builder setResourceStatus( com.google.cloud.compute.v1.InstantSnapshotResourceStatus.Builder builderForValue) { if (resourceStatusBuilder_ == null) { resourceStatus_ = builderForValue.build(); } else { resourceStatusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * [Output Only] Status information for the instant snapshot resource.
     * 
* * * optional .google.cloud.compute.v1.InstantSnapshotResourceStatus resource_status = 249429315; * */ public Builder mergeResourceStatus( com.google.cloud.compute.v1.InstantSnapshotResourceStatus value) { if (resourceStatusBuilder_ == null) { if (((bitField0_ & 0x00000400) != 0) && resourceStatus_ != null && resourceStatus_ != com.google.cloud.compute.v1.InstantSnapshotResourceStatus.getDefaultInstance()) { getResourceStatusBuilder().mergeFrom(value); } else { resourceStatus_ = value; } } else { resourceStatusBuilder_.mergeFrom(value); } if (resourceStatus_ != null) { bitField0_ |= 0x00000400; onChanged(); } return this; } /** * * *
     * [Output Only] Status information for the instant snapshot resource.
     * 
* * * optional .google.cloud.compute.v1.InstantSnapshotResourceStatus resource_status = 249429315; * */ public Builder clearResourceStatus() { bitField0_ = (bitField0_ & ~0x00000400); resourceStatus_ = null; if (resourceStatusBuilder_ != null) { resourceStatusBuilder_.dispose(); resourceStatusBuilder_ = null; } onChanged(); return this; } /** * * *
     * [Output Only] Status information for the instant snapshot resource.
     * 
* * * optional .google.cloud.compute.v1.InstantSnapshotResourceStatus resource_status = 249429315; * */ public com.google.cloud.compute.v1.InstantSnapshotResourceStatus.Builder getResourceStatusBuilder() { bitField0_ |= 0x00000400; onChanged(); return getResourceStatusFieldBuilder().getBuilder(); } /** * * *
     * [Output Only] Status information for the instant snapshot resource.
     * 
* * * optional .google.cloud.compute.v1.InstantSnapshotResourceStatus resource_status = 249429315; * */ public com.google.cloud.compute.v1.InstantSnapshotResourceStatusOrBuilder getResourceStatusOrBuilder() { if (resourceStatusBuilder_ != null) { return resourceStatusBuilder_.getMessageOrBuilder(); } else { return resourceStatus_ == null ? com.google.cloud.compute.v1.InstantSnapshotResourceStatus.getDefaultInstance() : resourceStatus_; } } /** * * *
     * [Output Only] Status information for the instant snapshot resource.
     * 
* * * optional .google.cloud.compute.v1.InstantSnapshotResourceStatus resource_status = 249429315; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.compute.v1.InstantSnapshotResourceStatus, com.google.cloud.compute.v1.InstantSnapshotResourceStatus.Builder, com.google.cloud.compute.v1.InstantSnapshotResourceStatusOrBuilder> getResourceStatusFieldBuilder() { if (resourceStatusBuilder_ == null) { resourceStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.compute.v1.InstantSnapshotResourceStatus, com.google.cloud.compute.v1.InstantSnapshotResourceStatus.Builder, com.google.cloud.compute.v1.InstantSnapshotResourceStatusOrBuilder>( getResourceStatus(), getParentForChildren(), isClean()); resourceStatus_ = null; } return resourceStatusBuilder_; } private boolean satisfiesPzi_; /** * * *
     * Output only. Reserved for future use.
     * 
* * optional bool satisfies_pzi = 480964257; * * @return Whether the satisfiesPzi field is set. */ @java.lang.Override public boolean hasSatisfiesPzi() { return ((bitField0_ & 0x00000800) != 0); } /** * * *
     * Output only. Reserved for future use.
     * 
* * optional bool satisfies_pzi = 480964257; * * @return The satisfiesPzi. */ @java.lang.Override public boolean getSatisfiesPzi() { return satisfiesPzi_; } /** * * *
     * Output only. Reserved for future use.
     * 
* * optional bool satisfies_pzi = 480964257; * * @param value The satisfiesPzi to set. * @return This builder for chaining. */ public Builder setSatisfiesPzi(boolean value) { satisfiesPzi_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** * * *
     * Output only. Reserved for future use.
     * 
* * optional bool satisfies_pzi = 480964257; * * @return This builder for chaining. */ public Builder clearSatisfiesPzi() { bitField0_ = (bitField0_ & ~0x00000800); satisfiesPzi_ = false; onChanged(); return this; } private boolean satisfiesPzs_; /** * * *
     * [Output Only] Reserved for future use.
     * 
* * optional bool satisfies_pzs = 480964267; * * @return Whether the satisfiesPzs field is set. */ @java.lang.Override public boolean hasSatisfiesPzs() { return ((bitField0_ & 0x00001000) != 0); } /** * * *
     * [Output Only] Reserved for future use.
     * 
* * optional bool satisfies_pzs = 480964267; * * @return The satisfiesPzs. */ @java.lang.Override public boolean getSatisfiesPzs() { return satisfiesPzs_; } /** * * *
     * [Output Only] Reserved for future use.
     * 
* * optional bool satisfies_pzs = 480964267; * * @param value The satisfiesPzs to set. * @return This builder for chaining. */ public Builder setSatisfiesPzs(boolean value) { satisfiesPzs_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** * * *
     * [Output Only] Reserved for future use.
     * 
* * optional bool satisfies_pzs = 480964267; * * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { bitField0_ = (bitField0_ & ~0x00001000); satisfiesPzs_ = false; onChanged(); return this; } private java.lang.Object selfLink_ = ""; /** * * *
     * [Output Only] Server-defined URL for the resource.
     * 
* * optional string self_link = 456214797; * * @return Whether the selfLink field is set. */ public boolean hasSelfLink() { return ((bitField0_ & 0x00002000) != 0); } /** * * *
     * [Output Only] Server-defined URL for the resource.
     * 
* * optional string self_link = 456214797; * * @return The selfLink. */ public java.lang.String getSelfLink() { java.lang.Object ref = selfLink_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); selfLink_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * [Output Only] Server-defined URL for the resource.
     * 
* * optional string self_link = 456214797; * * @return The bytes for selfLink. */ public com.google.protobuf.ByteString getSelfLinkBytes() { java.lang.Object ref = selfLink_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); selfLink_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * [Output Only] Server-defined URL for the resource.
     * 
* * optional string self_link = 456214797; * * @param value The selfLink to set. * @return This builder for chaining. */ public Builder setSelfLink(java.lang.String value) { if (value == null) { throw new NullPointerException(); } selfLink_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** * * *
     * [Output Only] Server-defined URL for the resource.
     * 
* * optional string self_link = 456214797; * * @return This builder for chaining. */ public Builder clearSelfLink() { selfLink_ = getDefaultInstance().getSelfLink(); bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } /** * * *
     * [Output Only] Server-defined URL for the resource.
     * 
* * optional string self_link = 456214797; * * @param value The bytes for selfLink to set. * @return This builder for chaining. */ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); selfLink_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } private java.lang.Object selfLinkWithId_ = ""; /** * * *
     * [Output Only] Server-defined URL for this resource's resource id.
     * 
* * optional string self_link_with_id = 44520962; * * @return Whether the selfLinkWithId field is set. */ public boolean hasSelfLinkWithId() { return ((bitField0_ & 0x00004000) != 0); } /** * * *
     * [Output Only] Server-defined URL for this resource's resource id.
     * 
* * optional string self_link_with_id = 44520962; * * @return The selfLinkWithId. */ public java.lang.String getSelfLinkWithId() { java.lang.Object ref = selfLinkWithId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); selfLinkWithId_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * [Output Only] Server-defined URL for this resource's resource id.
     * 
* * optional string self_link_with_id = 44520962; * * @return The bytes for selfLinkWithId. */ public com.google.protobuf.ByteString getSelfLinkWithIdBytes() { java.lang.Object ref = selfLinkWithId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); selfLinkWithId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * [Output Only] Server-defined URL for this resource's resource id.
     * 
* * optional string self_link_with_id = 44520962; * * @param value The selfLinkWithId to set. * @return This builder for chaining. */ public Builder setSelfLinkWithId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } selfLinkWithId_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } /** * * *
     * [Output Only] Server-defined URL for this resource's resource id.
     * 
* * optional string self_link_with_id = 44520962; * * @return This builder for chaining. */ public Builder clearSelfLinkWithId() { selfLinkWithId_ = getDefaultInstance().getSelfLinkWithId(); bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } /** * * *
     * [Output Only] Server-defined URL for this resource's resource id.
     * 
* * optional string self_link_with_id = 44520962; * * @param value The bytes for selfLinkWithId to set. * @return This builder for chaining. */ public Builder setSelfLinkWithIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); selfLinkWithId_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } private java.lang.Object sourceDisk_ = ""; /** * * *
     * URL of the source disk used to create this instant snapshot. Note that the source disk must be in the same zone/region as the instant snapshot to be created. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk
     * 
* * optional string source_disk = 451753793; * * @return Whether the sourceDisk field is set. */ public boolean hasSourceDisk() { return ((bitField0_ & 0x00008000) != 0); } /** * * *
     * URL of the source disk used to create this instant snapshot. Note that the source disk must be in the same zone/region as the instant snapshot to be created. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk
     * 
* * optional string source_disk = 451753793; * * @return The sourceDisk. */ public java.lang.String getSourceDisk() { java.lang.Object ref = sourceDisk_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceDisk_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * URL of the source disk used to create this instant snapshot. Note that the source disk must be in the same zone/region as the instant snapshot to be created. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk
     * 
* * optional string source_disk = 451753793; * * @return The bytes for sourceDisk. */ public com.google.protobuf.ByteString getSourceDiskBytes() { java.lang.Object ref = sourceDisk_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceDisk_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * URL of the source disk used to create this instant snapshot. Note that the source disk must be in the same zone/region as the instant snapshot to be created. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk
     * 
* * optional string source_disk = 451753793; * * @param value The sourceDisk to set. * @return This builder for chaining. */ public Builder setSourceDisk(java.lang.String value) { if (value == null) { throw new NullPointerException(); } sourceDisk_ = value; bitField0_ |= 0x00008000; onChanged(); return this; } /** * * *
     * URL of the source disk used to create this instant snapshot. Note that the source disk must be in the same zone/region as the instant snapshot to be created. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk
     * 
* * optional string source_disk = 451753793; * * @return This builder for chaining. */ public Builder clearSourceDisk() { sourceDisk_ = getDefaultInstance().getSourceDisk(); bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } /** * * *
     * URL of the source disk used to create this instant snapshot. Note that the source disk must be in the same zone/region as the instant snapshot to be created. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk
     * 
* * optional string source_disk = 451753793; * * @param value The bytes for sourceDisk to set. * @return This builder for chaining. */ public Builder setSourceDiskBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceDisk_ = value; bitField0_ |= 0x00008000; onChanged(); return this; } private java.lang.Object sourceDiskId_ = ""; /** * * *
     * [Output Only] The ID value of the disk used to create this InstantSnapshot. This value may be used to determine whether the InstantSnapshot was taken from the current or a previous instance of a given disk name.
     * 
* * optional string source_disk_id = 454190809; * * @return Whether the sourceDiskId field is set. */ public boolean hasSourceDiskId() { return ((bitField0_ & 0x00010000) != 0); } /** * * *
     * [Output Only] The ID value of the disk used to create this InstantSnapshot. This value may be used to determine whether the InstantSnapshot was taken from the current or a previous instance of a given disk name.
     * 
* * optional string source_disk_id = 454190809; * * @return The sourceDiskId. */ public java.lang.String getSourceDiskId() { java.lang.Object ref = sourceDiskId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceDiskId_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * [Output Only] The ID value of the disk used to create this InstantSnapshot. This value may be used to determine whether the InstantSnapshot was taken from the current or a previous instance of a given disk name.
     * 
* * optional string source_disk_id = 454190809; * * @return The bytes for sourceDiskId. */ public com.google.protobuf.ByteString getSourceDiskIdBytes() { java.lang.Object ref = sourceDiskId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceDiskId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * [Output Only] The ID value of the disk used to create this InstantSnapshot. This value may be used to determine whether the InstantSnapshot was taken from the current or a previous instance of a given disk name.
     * 
* * optional string source_disk_id = 454190809; * * @param value The sourceDiskId to set. * @return This builder for chaining. */ public Builder setSourceDiskId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } sourceDiskId_ = value; bitField0_ |= 0x00010000; onChanged(); return this; } /** * * *
     * [Output Only] The ID value of the disk used to create this InstantSnapshot. This value may be used to determine whether the InstantSnapshot was taken from the current or a previous instance of a given disk name.
     * 
* * optional string source_disk_id = 454190809; * * @return This builder for chaining. */ public Builder clearSourceDiskId() { sourceDiskId_ = getDefaultInstance().getSourceDiskId(); bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } /** * * *
     * [Output Only] The ID value of the disk used to create this InstantSnapshot. This value may be used to determine whether the InstantSnapshot was taken from the current or a previous instance of a given disk name.
     * 
* * optional string source_disk_id = 454190809; * * @param value The bytes for sourceDiskId to set. * @return This builder for chaining. */ public Builder setSourceDiskIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceDiskId_ = value; bitField0_ |= 0x00010000; onChanged(); return this; } private java.lang.Object status_ = ""; /** * * *
     * [Output Only] The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY.
     * Check the Status enum for the list of possible values.
     * 
* * optional string status = 181260274; * * @return Whether the status field is set. */ public boolean hasStatus() { return ((bitField0_ & 0x00020000) != 0); } /** * * *
     * [Output Only] The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY.
     * Check the Status enum for the list of possible values.
     * 
* * optional string status = 181260274; * * @return The status. */ public java.lang.String getStatus() { java.lang.Object ref = status_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); status_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * [Output Only] The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY.
     * Check the Status enum for the list of possible values.
     * 
* * optional string status = 181260274; * * @return The bytes for status. */ public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * [Output Only] The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY.
     * Check the Status enum for the list of possible values.
     * 
* * optional string status = 181260274; * * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(java.lang.String value) { if (value == null) { throw new NullPointerException(); } status_ = value; bitField0_ |= 0x00020000; onChanged(); return this; } /** * * *
     * [Output Only] The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY.
     * Check the Status enum for the list of possible values.
     * 
* * optional string status = 181260274; * * @return This builder for chaining. */ public Builder clearStatus() { status_ = getDefaultInstance().getStatus(); bitField0_ = (bitField0_ & ~0x00020000); onChanged(); return this; } /** * * *
     * [Output Only] The status of the instantSnapshot. This can be CREATING, DELETING, FAILED, or READY.
     * Check the Status enum for the list of possible values.
     * 
* * optional string status = 181260274; * * @param value The bytes for status to set. * @return This builder for chaining. */ public Builder setStatusBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); status_ = value; bitField0_ |= 0x00020000; onChanged(); return this; } private java.lang.Object zone_ = ""; /** * * *
     * [Output Only] URL of the zone where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
     * 
* * optional string zone = 3744684; * * @return Whether the zone field is set. */ public boolean hasZone() { return ((bitField0_ & 0x00040000) != 0); } /** * * *
     * [Output Only] URL of the zone where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
     * 
* * optional string zone = 3744684; * * @return The zone. */ public java.lang.String getZone() { java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); zone_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * [Output Only] URL of the zone where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
     * 
* * optional string zone = 3744684; * * @return The bytes for zone. */ public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); zone_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * [Output Only] URL of the zone where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
     * 
* * optional string zone = 3744684; * * @param value The zone to set. * @return This builder for chaining. */ public Builder setZone(java.lang.String value) { if (value == null) { throw new NullPointerException(); } zone_ = value; bitField0_ |= 0x00040000; onChanged(); return this; } /** * * *
     * [Output Only] URL of the zone where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
     * 
* * optional string zone = 3744684; * * @return This builder for chaining. */ public Builder clearZone() { zone_ = getDefaultInstance().getZone(); bitField0_ = (bitField0_ & ~0x00040000); onChanged(); return this; } /** * * *
     * [Output Only] URL of the zone where the instant snapshot resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
     * 
* * optional string zone = 3744684; * * @param value The bytes for zone to set. * @return This builder for chaining. */ public Builder setZoneBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); zone_ = value; bitField0_ |= 0x00040000; onChanged(); return this; } @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.InstantSnapshot) } // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.InstantSnapshot) private static final com.google.cloud.compute.v1.InstantSnapshot DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.compute.v1.InstantSnapshot(); } public static com.google.cloud.compute.v1.InstantSnapshot getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InstantSnapshot 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.InstantSnapshot getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy