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

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

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

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

/**
 *
 *
 * 
 * [Output Only] Informational warning message.
 * 
* * Protobuf type {@code google.cloud.compute.v1.Warning} */ public final class Warning extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.Warning) WarningOrBuilder { private static final long serialVersionUID = 0L; // Use Warning.newBuilder() to construct. private Warning(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Warning() { code_ = ""; data_ = java.util.Collections.emptyList(); message_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Warning(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_Warning_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_Warning_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.compute.v1.Warning.class, com.google.cloud.compute.v1.Warning.Builder.class); } /** * * *
   * [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
   * 
* * Protobuf enum {@code google.cloud.compute.v1.Warning.Code} */ public enum Code implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * A value indicating that the enum field is not set.
     * 
* * UNDEFINED_CODE = 0; */ UNDEFINED_CODE(0), /** * * *
     * Warning about failed cleanup of transient changes made by a failed operation.
     * 
* * CLEANUP_FAILED = 150308440; */ CLEANUP_FAILED(150308440), /** * * *
     * A link to a deprecated resource was created.
     * 
* * DEPRECATED_RESOURCE_USED = 391835586; */ DEPRECATED_RESOURCE_USED(391835586), /** * * *
     * When deploying and at least one of the resources has a type marked as deprecated
     * 
* * DEPRECATED_TYPE_USED = 346526230; */ DEPRECATED_TYPE_USED(346526230), /** * * *
     * The user created a boot disk that is larger than image size.
     * 
* * DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 369442967; */ DISK_SIZE_LARGER_THAN_IMAGE_SIZE(369442967), /** * * *
     * When deploying and at least one of the resources has a type marked as experimental
     * 
* * EXPERIMENTAL_TYPE_USED = 451954443; */ EXPERIMENTAL_TYPE_USED(451954443), /** * * *
     * Warning that is present in an external api call
     * 
* * EXTERNAL_API_WARNING = 175546307; */ EXTERNAL_API_WARNING(175546307), /** * * *
     * Warning that value of a field has been overridden. Deprecated unused field.
     * 
* * FIELD_VALUE_OVERRIDEN = 329669423; */ FIELD_VALUE_OVERRIDEN(329669423), /** * * *
     * The operation involved use of an injected kernel, which is deprecated.
     * 
* * INJECTED_KERNELS_DEPRECATED = 417377419; */ INJECTED_KERNELS_DEPRECATED(417377419), /** * * *
     * A WEIGHTED_MAGLEV backend service is associated with a health check that is not of type HTTP/HTTPS/HTTP2.
     * 
* * INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 401542606; */ INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB(401542606), /** * * *
     * When deploying a deployment with a exceedingly large number of resources
     * 
* * LARGE_DEPLOYMENT_WARNING = 481440678; */ LARGE_DEPLOYMENT_WARNING(481440678), /** * * *
     * Resource can't be retrieved due to list overhead quota exceed which captures the amount of resources filtered out by user-defined list filter.
     * 
* * LIST_OVERHEAD_QUOTA_EXCEED = 47618117; */ LIST_OVERHEAD_QUOTA_EXCEED(47618117), /** * * *
     * A resource depends on a missing type
     * 
* * MISSING_TYPE_DEPENDENCY = 344505463; */ MISSING_TYPE_DEPENDENCY(344505463), /** * * *
     * The route's nextHopIp address is not assigned to an instance on the network.
     * 
* * NEXT_HOP_ADDRESS_NOT_ASSIGNED = 324964999; */ NEXT_HOP_ADDRESS_NOT_ASSIGNED(324964999), /** * * *
     * The route's next hop instance cannot ip forward.
     * 
* * NEXT_HOP_CANNOT_IP_FORWARD = 383382887; */ NEXT_HOP_CANNOT_IP_FORWARD(383382887), /** * * *
     * The route's nextHopInstance URL refers to an instance that does not have an ipv6 interface on the same network as the route.
     * 
* * NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE = 146748434; */ NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE(146748434), /** * * *
     * The route's nextHopInstance URL refers to an instance that does not exist.
     * 
* * NEXT_HOP_INSTANCE_NOT_FOUND = 464250446; */ NEXT_HOP_INSTANCE_NOT_FOUND(464250446), /** * * *
     * The route's nextHopInstance URL refers to an instance that is not on the same network as the route.
     * 
* * NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 243758146; */ NEXT_HOP_INSTANCE_NOT_ON_NETWORK(243758146), /** * * *
     * The route's next hop instance does not have a status of RUNNING.
     * 
* * NEXT_HOP_NOT_RUNNING = 417081265; */ NEXT_HOP_NOT_RUNNING(417081265), /** * * *
     * Error which is not critical. We decided to continue the process despite the mentioned error.
     * 
* * NOT_CRITICAL_ERROR = 105763924; */ NOT_CRITICAL_ERROR(105763924), /** * * *
     * No results are present on a particular list page.
     * 
* * NO_RESULTS_ON_PAGE = 30036744; */ NO_RESULTS_ON_PAGE(30036744), /** * * *
     * Success is reported, but some results may be missing due to errors
     * 
* * PARTIAL_SUCCESS = 39966469; */ PARTIAL_SUCCESS(39966469), /** * * *
     * Quota information is not available to client requests (e.g: regions.list).
     * 
* * QUOTA_INFO_UNAVAILABLE = 304294182; */ QUOTA_INFO_UNAVAILABLE(304294182), /** * * *
     * The user attempted to use a resource that requires a TOS they have not accepted.
     * 
* * REQUIRED_TOS_AGREEMENT = 3745539; */ REQUIRED_TOS_AGREEMENT(3745539), /** * * *
     * Warning that a resource is in use.
     * 
* * RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 496728641; */ RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING(496728641), /** * * *
     * One or more of the resources set to auto-delete could not be deleted because they were in use.
     * 
* * RESOURCE_NOT_DELETED = 168598460; */ RESOURCE_NOT_DELETED(168598460), /** * * *
     * When a resource schema validation is ignored.
     * 
* * SCHEMA_VALIDATION_IGNORED = 275245642; */ SCHEMA_VALIDATION_IGNORED(275245642), /** * * *
     * Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.
     * 
* * SINGLE_INSTANCE_PROPERTY_TEMPLATE = 268305617; */ SINGLE_INSTANCE_PROPERTY_TEMPLATE(268305617), /** * * *
     * When undeclared properties in the schema are present
     * 
* * UNDECLARED_PROPERTIES = 390513439; */ UNDECLARED_PROPERTIES(390513439), /** * * *
     * A given scope cannot be reached.
     * 
* * UNREACHABLE = 13328052; */ UNREACHABLE(13328052), UNRECOGNIZED(-1), ; /** * * *
     * A value indicating that the enum field is not set.
     * 
* * UNDEFINED_CODE = 0; */ public static final int UNDEFINED_CODE_VALUE = 0; /** * * *
     * Warning about failed cleanup of transient changes made by a failed operation.
     * 
* * CLEANUP_FAILED = 150308440; */ public static final int CLEANUP_FAILED_VALUE = 150308440; /** * * *
     * A link to a deprecated resource was created.
     * 
* * DEPRECATED_RESOURCE_USED = 391835586; */ public static final int DEPRECATED_RESOURCE_USED_VALUE = 391835586; /** * * *
     * When deploying and at least one of the resources has a type marked as deprecated
     * 
* * DEPRECATED_TYPE_USED = 346526230; */ public static final int DEPRECATED_TYPE_USED_VALUE = 346526230; /** * * *
     * The user created a boot disk that is larger than image size.
     * 
* * DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 369442967; */ public static final int DISK_SIZE_LARGER_THAN_IMAGE_SIZE_VALUE = 369442967; /** * * *
     * When deploying and at least one of the resources has a type marked as experimental
     * 
* * EXPERIMENTAL_TYPE_USED = 451954443; */ public static final int EXPERIMENTAL_TYPE_USED_VALUE = 451954443; /** * * *
     * Warning that is present in an external api call
     * 
* * EXTERNAL_API_WARNING = 175546307; */ public static final int EXTERNAL_API_WARNING_VALUE = 175546307; /** * * *
     * Warning that value of a field has been overridden. Deprecated unused field.
     * 
* * FIELD_VALUE_OVERRIDEN = 329669423; */ public static final int FIELD_VALUE_OVERRIDEN_VALUE = 329669423; /** * * *
     * The operation involved use of an injected kernel, which is deprecated.
     * 
* * INJECTED_KERNELS_DEPRECATED = 417377419; */ public static final int INJECTED_KERNELS_DEPRECATED_VALUE = 417377419; /** * * *
     * A WEIGHTED_MAGLEV backend service is associated with a health check that is not of type HTTP/HTTPS/HTTP2.
     * 
* * INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 401542606; */ public static final int INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB_VALUE = 401542606; /** * * *
     * When deploying a deployment with a exceedingly large number of resources
     * 
* * LARGE_DEPLOYMENT_WARNING = 481440678; */ public static final int LARGE_DEPLOYMENT_WARNING_VALUE = 481440678; /** * * *
     * Resource can't be retrieved due to list overhead quota exceed which captures the amount of resources filtered out by user-defined list filter.
     * 
* * LIST_OVERHEAD_QUOTA_EXCEED = 47618117; */ public static final int LIST_OVERHEAD_QUOTA_EXCEED_VALUE = 47618117; /** * * *
     * A resource depends on a missing type
     * 
* * MISSING_TYPE_DEPENDENCY = 344505463; */ public static final int MISSING_TYPE_DEPENDENCY_VALUE = 344505463; /** * * *
     * The route's nextHopIp address is not assigned to an instance on the network.
     * 
* * NEXT_HOP_ADDRESS_NOT_ASSIGNED = 324964999; */ public static final int NEXT_HOP_ADDRESS_NOT_ASSIGNED_VALUE = 324964999; /** * * *
     * The route's next hop instance cannot ip forward.
     * 
* * NEXT_HOP_CANNOT_IP_FORWARD = 383382887; */ public static final int NEXT_HOP_CANNOT_IP_FORWARD_VALUE = 383382887; /** * * *
     * The route's nextHopInstance URL refers to an instance that does not have an ipv6 interface on the same network as the route.
     * 
* * NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE = 146748434; */ public static final int NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE_VALUE = 146748434; /** * * *
     * The route's nextHopInstance URL refers to an instance that does not exist.
     * 
* * NEXT_HOP_INSTANCE_NOT_FOUND = 464250446; */ public static final int NEXT_HOP_INSTANCE_NOT_FOUND_VALUE = 464250446; /** * * *
     * The route's nextHopInstance URL refers to an instance that is not on the same network as the route.
     * 
* * NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 243758146; */ public static final int NEXT_HOP_INSTANCE_NOT_ON_NETWORK_VALUE = 243758146; /** * * *
     * The route's next hop instance does not have a status of RUNNING.
     * 
* * NEXT_HOP_NOT_RUNNING = 417081265; */ public static final int NEXT_HOP_NOT_RUNNING_VALUE = 417081265; /** * * *
     * Error which is not critical. We decided to continue the process despite the mentioned error.
     * 
* * NOT_CRITICAL_ERROR = 105763924; */ public static final int NOT_CRITICAL_ERROR_VALUE = 105763924; /** * * *
     * No results are present on a particular list page.
     * 
* * NO_RESULTS_ON_PAGE = 30036744; */ public static final int NO_RESULTS_ON_PAGE_VALUE = 30036744; /** * * *
     * Success is reported, but some results may be missing due to errors
     * 
* * PARTIAL_SUCCESS = 39966469; */ public static final int PARTIAL_SUCCESS_VALUE = 39966469; /** * * *
     * Quota information is not available to client requests (e.g: regions.list).
     * 
* * QUOTA_INFO_UNAVAILABLE = 304294182; */ public static final int QUOTA_INFO_UNAVAILABLE_VALUE = 304294182; /** * * *
     * The user attempted to use a resource that requires a TOS they have not accepted.
     * 
* * REQUIRED_TOS_AGREEMENT = 3745539; */ public static final int REQUIRED_TOS_AGREEMENT_VALUE = 3745539; /** * * *
     * Warning that a resource is in use.
     * 
* * RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 496728641; */ public static final int RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING_VALUE = 496728641; /** * * *
     * One or more of the resources set to auto-delete could not be deleted because they were in use.
     * 
* * RESOURCE_NOT_DELETED = 168598460; */ public static final int RESOURCE_NOT_DELETED_VALUE = 168598460; /** * * *
     * When a resource schema validation is ignored.
     * 
* * SCHEMA_VALIDATION_IGNORED = 275245642; */ public static final int SCHEMA_VALIDATION_IGNORED_VALUE = 275245642; /** * * *
     * Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.
     * 
* * SINGLE_INSTANCE_PROPERTY_TEMPLATE = 268305617; */ public static final int SINGLE_INSTANCE_PROPERTY_TEMPLATE_VALUE = 268305617; /** * * *
     * When undeclared properties in the schema are present
     * 
* * UNDECLARED_PROPERTIES = 390513439; */ public static final int UNDECLARED_PROPERTIES_VALUE = 390513439; /** * * *
     * A given scope cannot be reached.
     * 
* * UNREACHABLE = 13328052; */ public static final int UNREACHABLE_VALUE = 13328052; 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 Code 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 Code forNumber(int value) { switch (value) { case 0: return UNDEFINED_CODE; case 150308440: return CLEANUP_FAILED; case 391835586: return DEPRECATED_RESOURCE_USED; case 346526230: return DEPRECATED_TYPE_USED; case 369442967: return DISK_SIZE_LARGER_THAN_IMAGE_SIZE; case 451954443: return EXPERIMENTAL_TYPE_USED; case 175546307: return EXTERNAL_API_WARNING; case 329669423: return FIELD_VALUE_OVERRIDEN; case 417377419: return INJECTED_KERNELS_DEPRECATED; case 401542606: return INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB; case 481440678: return LARGE_DEPLOYMENT_WARNING; case 47618117: return LIST_OVERHEAD_QUOTA_EXCEED; case 344505463: return MISSING_TYPE_DEPENDENCY; case 324964999: return NEXT_HOP_ADDRESS_NOT_ASSIGNED; case 383382887: return NEXT_HOP_CANNOT_IP_FORWARD; case 146748434: return NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE; case 464250446: return NEXT_HOP_INSTANCE_NOT_FOUND; case 243758146: return NEXT_HOP_INSTANCE_NOT_ON_NETWORK; case 417081265: return NEXT_HOP_NOT_RUNNING; case 105763924: return NOT_CRITICAL_ERROR; case 30036744: return NO_RESULTS_ON_PAGE; case 39966469: return PARTIAL_SUCCESS; case 304294182: return QUOTA_INFO_UNAVAILABLE; case 3745539: return REQUIRED_TOS_AGREEMENT; case 496728641: return RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING; case 168598460: return RESOURCE_NOT_DELETED; case 275245642: return SCHEMA_VALIDATION_IGNORED; case 268305617: return SINGLE_INSTANCE_PROPERTY_TEMPLATE; case 390513439: return UNDECLARED_PROPERTIES; case 13328052: return UNREACHABLE; 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 Code findValueByNumber(int number) { return Code.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.Warning.getDescriptor().getEnumTypes().get(0); } private static final Code[] VALUES = values(); public static Code 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 Code(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.Warning.Code) } private int bitField0_; public static final int CODE_FIELD_NUMBER = 3059181; @SuppressWarnings("serial") private volatile java.lang.Object code_ = ""; /** * * *
   * [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
   * Check the Code enum for the list of possible values.
   * 
* * optional string code = 3059181; * * @return Whether the code field is set. */ @java.lang.Override public boolean hasCode() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
   * Check the Code enum for the list of possible values.
   * 
* * optional string code = 3059181; * * @return The code. */ @java.lang.Override public java.lang.String getCode() { java.lang.Object ref = code_; 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(); code_ = s; return s; } } /** * * *
   * [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
   * Check the Code enum for the list of possible values.
   * 
* * optional string code = 3059181; * * @return The bytes for code. */ @java.lang.Override public com.google.protobuf.ByteString getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); code_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATA_FIELD_NUMBER = 3076010; @SuppressWarnings("serial") private java.util.List data_; /** * * *
   * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
   * 
* * repeated .google.cloud.compute.v1.Data data = 3076010; */ @java.lang.Override public java.util.List getDataList() { return data_; } /** * * *
   * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
   * 
* * repeated .google.cloud.compute.v1.Data data = 3076010; */ @java.lang.Override public java.util.List getDataOrBuilderList() { return data_; } /** * * *
   * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
   * 
* * repeated .google.cloud.compute.v1.Data data = 3076010; */ @java.lang.Override public int getDataCount() { return data_.size(); } /** * * *
   * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
   * 
* * repeated .google.cloud.compute.v1.Data data = 3076010; */ @java.lang.Override public com.google.cloud.compute.v1.Data getData(int index) { return data_.get(index); } /** * * *
   * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
   * 
* * repeated .google.cloud.compute.v1.Data data = 3076010; */ @java.lang.Override public com.google.cloud.compute.v1.DataOrBuilder getDataOrBuilder(int index) { return data_.get(index); } public static final int MESSAGE_FIELD_NUMBER = 418054151; @SuppressWarnings("serial") private volatile java.lang.Object message_ = ""; /** * * *
   * [Output Only] A human-readable description of the warning code.
   * 
* * optional string message = 418054151; * * @return Whether the message field is set. */ @java.lang.Override public boolean hasMessage() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * [Output Only] A human-readable description of the warning code.
   * 
* * optional string message = 418054151; * * @return The message. */ @java.lang.Override public java.lang.String getMessage() { java.lang.Object ref = message_; 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(); message_ = s; return s; } } /** * * *
   * [Output Only] A human-readable description of the warning code.
   * 
* * optional string message = 418054151; * * @return The bytes for message. */ @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = 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_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3059181, code_); } for (int i = 0; i < data_.size(); i++) { output.writeMessage(3076010, data_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 418054151, message_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3059181, code_); } for (int i = 0; i < data_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3076010, data_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(418054151, message_); } 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.Warning)) { return super.equals(obj); } com.google.cloud.compute.v1.Warning other = (com.google.cloud.compute.v1.Warning) obj; if (hasCode() != other.hasCode()) return false; if (hasCode()) { if (!getCode().equals(other.getCode())) return false; } if (!getDataList().equals(other.getDataList())) return false; if (hasMessage() != other.hasMessage()) return false; if (hasMessage()) { if (!getMessage().equals(other.getMessage())) 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 (hasCode()) { hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + getCode().hashCode(); } if (getDataCount() > 0) { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getDataList().hashCode(); } if (hasMessage()) { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.compute.v1.Warning parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.compute.v1.Warning 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.Warning parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.compute.v1.Warning 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.Warning parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.compute.v1.Warning 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.Warning parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.compute.v1.Warning 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.Warning parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.compute.v1.Warning 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.Warning 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.Warning 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.Warning 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; } /** * * *
   * [Output Only] Informational warning message.
   * 
* * Protobuf type {@code google.cloud.compute.v1.Warning} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.Warning) com.google.cloud.compute.v1.WarningOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_Warning_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_Warning_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.compute.v1.Warning.class, com.google.cloud.compute.v1.Warning.Builder.class); } // Construct using com.google.cloud.compute.v1.Warning.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; code_ = ""; if (dataBuilder_ == null) { data_ = java.util.Collections.emptyList(); } else { data_ = null; dataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); message_ = ""; 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_Warning_descriptor; } @java.lang.Override public com.google.cloud.compute.v1.Warning getDefaultInstanceForType() { return com.google.cloud.compute.v1.Warning.getDefaultInstance(); } @java.lang.Override public com.google.cloud.compute.v1.Warning build() { com.google.cloud.compute.v1.Warning result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.compute.v1.Warning buildPartial() { com.google.cloud.compute.v1.Warning result = new com.google.cloud.compute.v1.Warning(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.cloud.compute.v1.Warning result) { if (dataBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { data_ = java.util.Collections.unmodifiableList(data_); bitField0_ = (bitField0_ & ~0x00000002); } result.data_ = data_; } else { result.data_ = dataBuilder_.build(); } } private void buildPartial0(com.google.cloud.compute.v1.Warning result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.code_ = code_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.message_ = message_; to_bitField0_ |= 0x00000002; } 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.Warning) { return mergeFrom((com.google.cloud.compute.v1.Warning) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.compute.v1.Warning other) { if (other == com.google.cloud.compute.v1.Warning.getDefaultInstance()) return this; if (other.hasCode()) { code_ = other.code_; bitField0_ |= 0x00000001; onChanged(); } if (dataBuilder_ == null) { if (!other.data_.isEmpty()) { if (data_.isEmpty()) { data_ = other.data_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDataIsMutable(); data_.addAll(other.data_); } onChanged(); } } else { if (!other.data_.isEmpty()) { if (dataBuilder_.isEmpty()) { dataBuilder_.dispose(); dataBuilder_ = null; data_ = other.data_; bitField0_ = (bitField0_ & ~0x00000002); dataBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDataFieldBuilder() : null; } else { dataBuilder_.addAllMessages(other.data_); } } } if (other.hasMessage()) { message_ = other.message_; bitField0_ |= 0x00000004; 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 24473450: { code_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 24473450 case 24608082: { com.google.cloud.compute.v1.Data m = input.readMessage(com.google.cloud.compute.v1.Data.parser(), extensionRegistry); if (dataBuilder_ == null) { ensureDataIsMutable(); data_.add(m); } else { dataBuilder_.addMessage(m); } break; } // case 24608082 case -950534086: { message_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case -950534086 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 code_ = ""; /** * * *
     * [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
     * Check the Code enum for the list of possible values.
     * 
* * optional string code = 3059181; * * @return Whether the code field is set. */ public boolean hasCode() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
     * Check the Code enum for the list of possible values.
     * 
* * optional string code = 3059181; * * @return The code. */ public java.lang.String getCode() { java.lang.Object ref = code_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
     * Check the Code enum for the list of possible values.
     * 
* * optional string code = 3059181; * * @return The bytes for code. */ public com.google.protobuf.ByteString getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); code_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
     * Check the Code enum for the list of possible values.
     * 
* * optional string code = 3059181; * * @param value The code to set. * @return This builder for chaining. */ public Builder setCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } code_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
     * Check the Code enum for the list of possible values.
     * 
* * optional string code = 3059181; * * @return This builder for chaining. */ public Builder clearCode() { code_ = getDefaultInstance().getCode(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
     * Check the Code enum for the list of possible values.
     * 
* * optional string code = 3059181; * * @param value The bytes for code to set. * @return This builder for chaining. */ public Builder setCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); code_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List data_ = java.util.Collections.emptyList(); private void ensureDataIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { data_ = new java.util.ArrayList(data_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.compute.v1.Data, com.google.cloud.compute.v1.Data.Builder, com.google.cloud.compute.v1.DataOrBuilder> dataBuilder_; /** * * *
     * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
     * 
* * repeated .google.cloud.compute.v1.Data data = 3076010; */ public java.util.List getDataList() { if (dataBuilder_ == null) { return java.util.Collections.unmodifiableList(data_); } else { return dataBuilder_.getMessageList(); } } /** * * *
     * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
     * 
* * repeated .google.cloud.compute.v1.Data data = 3076010; */ public int getDataCount() { if (dataBuilder_ == null) { return data_.size(); } else { return dataBuilder_.getCount(); } } /** * * *
     * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
     * 
* * repeated .google.cloud.compute.v1.Data data = 3076010; */ public com.google.cloud.compute.v1.Data getData(int index) { if (dataBuilder_ == null) { return data_.get(index); } else { return dataBuilder_.getMessage(index); } } /** * * *
     * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
     * 
* * repeated .google.cloud.compute.v1.Data data = 3076010; */ public Builder setData(int index, com.google.cloud.compute.v1.Data value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.set(index, value); onChanged(); } else { dataBuilder_.setMessage(index, value); } return this; } /** * * *
     * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
     * 
* * repeated .google.cloud.compute.v1.Data data = 3076010; */ public Builder setData(int index, com.google.cloud.compute.v1.Data.Builder builderForValue) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.set(index, builderForValue.build()); onChanged(); } else { dataBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
     * 
* * repeated .google.cloud.compute.v1.Data data = 3076010; */ public Builder addData(com.google.cloud.compute.v1.Data value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.add(value); onChanged(); } else { dataBuilder_.addMessage(value); } return this; } /** * * *
     * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
     * 
* * repeated .google.cloud.compute.v1.Data data = 3076010; */ public Builder addData(int index, com.google.cloud.compute.v1.Data value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.add(index, value); onChanged(); } else { dataBuilder_.addMessage(index, value); } return this; } /** * * *
     * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
     * 
* * repeated .google.cloud.compute.v1.Data data = 3076010; */ public Builder addData(com.google.cloud.compute.v1.Data.Builder builderForValue) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.add(builderForValue.build()); onChanged(); } else { dataBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
     * 
* * repeated .google.cloud.compute.v1.Data data = 3076010; */ public Builder addData(int index, com.google.cloud.compute.v1.Data.Builder builderForValue) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.add(index, builderForValue.build()); onChanged(); } else { dataBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
     * 
* * repeated .google.cloud.compute.v1.Data data = 3076010; */ public Builder addAllData( java.lang.Iterable values) { if (dataBuilder_ == null) { ensureDataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, data_); onChanged(); } else { dataBuilder_.addAllMessages(values); } return this; } /** * * *
     * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
     * 
* * repeated .google.cloud.compute.v1.Data data = 3076010; */ public Builder clearData() { if (dataBuilder_ == null) { data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { dataBuilder_.clear(); } return this; } /** * * *
     * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
     * 
* * repeated .google.cloud.compute.v1.Data data = 3076010; */ public Builder removeData(int index) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.remove(index); onChanged(); } else { dataBuilder_.remove(index); } return this; } /** * * *
     * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
     * 
* * repeated .google.cloud.compute.v1.Data data = 3076010; */ public com.google.cloud.compute.v1.Data.Builder getDataBuilder(int index) { return getDataFieldBuilder().getBuilder(index); } /** * * *
     * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
     * 
* * repeated .google.cloud.compute.v1.Data data = 3076010; */ public com.google.cloud.compute.v1.DataOrBuilder getDataOrBuilder(int index) { if (dataBuilder_ == null) { return data_.get(index); } else { return dataBuilder_.getMessageOrBuilder(index); } } /** * * *
     * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
     * 
* * repeated .google.cloud.compute.v1.Data data = 3076010; */ public java.util.List getDataOrBuilderList() { if (dataBuilder_ != null) { return dataBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(data_); } } /** * * *
     * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
     * 
* * repeated .google.cloud.compute.v1.Data data = 3076010; */ public com.google.cloud.compute.v1.Data.Builder addDataBuilder() { return getDataFieldBuilder() .addBuilder(com.google.cloud.compute.v1.Data.getDefaultInstance()); } /** * * *
     * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
     * 
* * repeated .google.cloud.compute.v1.Data data = 3076010; */ public com.google.cloud.compute.v1.Data.Builder addDataBuilder(int index) { return getDataFieldBuilder() .addBuilder(index, com.google.cloud.compute.v1.Data.getDefaultInstance()); } /** * * *
     * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }
     * 
* * repeated .google.cloud.compute.v1.Data data = 3076010; */ public java.util.List getDataBuilderList() { return getDataFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.compute.v1.Data, com.google.cloud.compute.v1.Data.Builder, com.google.cloud.compute.v1.DataOrBuilder> getDataFieldBuilder() { if (dataBuilder_ == null) { dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.compute.v1.Data, com.google.cloud.compute.v1.Data.Builder, com.google.cloud.compute.v1.DataOrBuilder>( data_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); data_ = null; } return dataBuilder_; } private java.lang.Object message_ = ""; /** * * *
     * [Output Only] A human-readable description of the warning code.
     * 
* * optional string message = 418054151; * * @return Whether the message field is set. */ public boolean hasMessage() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * [Output Only] A human-readable description of the warning code.
     * 
* * optional string message = 418054151; * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * [Output Only] A human-readable description of the warning code.
     * 
* * optional string message = 418054151; * * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * [Output Only] A human-readable description of the warning code.
     * 
* * optional string message = 418054151; * * @param value The message to set. * @return This builder for chaining. */ public Builder setMessage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } message_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * [Output Only] A human-readable description of the warning code.
     * 
* * optional string message = 418054151; * * @return This builder for chaining. */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
     * [Output Only] A human-readable description of the warning code.
     * 
* * optional string message = 418054151; * * @param value The bytes for message to set. * @return This builder for chaining. */ public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = value; bitField0_ |= 0x00000004; 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.Warning) } // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.Warning) private static final com.google.cloud.compute.v1.Warning DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.compute.v1.Warning(); } public static com.google.cloud.compute.v1.Warning getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Warning 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.Warning getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }