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

com.google.cloud.baremetalsolution.v2.ProvisioningConfig Maven / Gradle / Ivy

There is a newer version: 0.54.0
Show newest version
/*
 * Copyright 2023 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/baremetalsolution/v2/provisioning.proto

package com.google.cloud.baremetalsolution.v2;

/**
 *
 *
 * 
 * A provisioning configuration.
 * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ProvisioningConfig} */ public final class ProvisioningConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.ProvisioningConfig) ProvisioningConfigOrBuilder { private static final long serialVersionUID = 0L; // Use ProvisioningConfig.newBuilder() to construct. private ProvisioningConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProvisioningConfig() { name_ = ""; instances_ = java.util.Collections.emptyList(); networks_ = java.util.Collections.emptyList(); volumes_ = java.util.Collections.emptyList(); ticketId_ = ""; handoverServiceAccount_ = ""; email_ = ""; state_ = 0; location_ = ""; cloudConsoleUri_ = ""; statusMessage_ = ""; customId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ProvisioningConfig(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.baremetalsolution.v2.ProvisioningProto .internal_static_google_cloud_baremetalsolution_v2_ProvisioningConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.baremetalsolution.v2.ProvisioningProto .internal_static_google_cloud_baremetalsolution_v2_ProvisioningConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.baremetalsolution.v2.ProvisioningConfig.class, com.google.cloud.baremetalsolution.v2.ProvisioningConfig.Builder.class); } /** * * *
   * The possible states for this ProvisioningConfig.
   * 
* * Protobuf enum {@code google.cloud.baremetalsolution.v2.ProvisioningConfig.State} */ public enum State implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * State wasn't specified.
     * 
* * STATE_UNSPECIFIED = 0; */ STATE_UNSPECIFIED(0), /** * * *
     * ProvisioningConfig is a draft and can be freely modified.
     * 
* * DRAFT = 1; */ DRAFT(1), /** * * *
     * ProvisioningConfig was already submitted and cannot be modified.
     * 
* * SUBMITTED = 2; */ SUBMITTED(2), /** * * *
     * ProvisioningConfig was in the provisioning state.  Initially this state
     * comes from the work order table in big query when SNOW is used.  Later
     * this field can be set by the work order API.
     * 
* * PROVISIONING = 3; */ PROVISIONING(3), /** * * *
     * ProvisioningConfig was provisioned, meaning the resources exist.
     * 
* * PROVISIONED = 4; */ PROVISIONED(4), /** * * *
     * ProvisioningConfig was validated.  A validation tool will be run to
     * set this state.
     * 
* * VALIDATED = 5; */ VALIDATED(5), /** * * *
     * ProvisioningConfig was canceled.
     * 
* * CANCELLED = 6; */ CANCELLED(6), /** * * *
     * The request is submitted for provisioning, with error return.
     * 
* * FAILED = 7; */ FAILED(7), UNRECOGNIZED(-1), ; /** * * *
     * State wasn't specified.
     * 
* * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** * * *
     * ProvisioningConfig is a draft and can be freely modified.
     * 
* * DRAFT = 1; */ public static final int DRAFT_VALUE = 1; /** * * *
     * ProvisioningConfig was already submitted and cannot be modified.
     * 
* * SUBMITTED = 2; */ public static final int SUBMITTED_VALUE = 2; /** * * *
     * ProvisioningConfig was in the provisioning state.  Initially this state
     * comes from the work order table in big query when SNOW is used.  Later
     * this field can be set by the work order API.
     * 
* * PROVISIONING = 3; */ public static final int PROVISIONING_VALUE = 3; /** * * *
     * ProvisioningConfig was provisioned, meaning the resources exist.
     * 
* * PROVISIONED = 4; */ public static final int PROVISIONED_VALUE = 4; /** * * *
     * ProvisioningConfig was validated.  A validation tool will be run to
     * set this state.
     * 
* * VALIDATED = 5; */ public static final int VALIDATED_VALUE = 5; /** * * *
     * ProvisioningConfig was canceled.
     * 
* * CANCELLED = 6; */ public static final int CANCELLED_VALUE = 6; /** * * *
     * The request is submitted for provisioning, with error return.
     * 
* * FAILED = 7; */ public static final int FAILED_VALUE = 7; 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 State 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 State forNumber(int value) { switch (value) { case 0: return STATE_UNSPECIFIED; case 1: return DRAFT; case 2: return SUBMITTED; case 3: return PROVISIONING; case 4: return PROVISIONED; case 5: return VALIDATED; case 6: return CANCELLED; case 7: return FAILED; 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 State findValueByNumber(int number) { return State.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.baremetalsolution.v2.ProvisioningConfig.getDescriptor() .getEnumTypes() .get(0); } private static final State[] VALUES = values(); public static State 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 State(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.ProvisioningConfig.State) } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * Output only. The system-generated name of the provisioning config. This
   * follows the UUID format.
   * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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; } } /** * * *
   * Output only. The system-generated name of the provisioning config. This
   * follows the UUID format.
   * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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 INSTANCES_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List instances_; /** * * *
   * Instances to be created.
   * 
* * repeated .google.cloud.baremetalsolution.v2.InstanceConfig instances = 2; */ @java.lang.Override public java.util.List getInstancesList() { return instances_; } /** * * *
   * Instances to be created.
   * 
* * repeated .google.cloud.baremetalsolution.v2.InstanceConfig instances = 2; */ @java.lang.Override public java.util.List getInstancesOrBuilderList() { return instances_; } /** * * *
   * Instances to be created.
   * 
* * repeated .google.cloud.baremetalsolution.v2.InstanceConfig instances = 2; */ @java.lang.Override public int getInstancesCount() { return instances_.size(); } /** * * *
   * Instances to be created.
   * 
* * repeated .google.cloud.baremetalsolution.v2.InstanceConfig instances = 2; */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.InstanceConfig getInstances(int index) { return instances_.get(index); } /** * * *
   * Instances to be created.
   * 
* * repeated .google.cloud.baremetalsolution.v2.InstanceConfig instances = 2; */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.InstanceConfigOrBuilder getInstancesOrBuilder( int index) { return instances_.get(index); } public static final int NETWORKS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List networks_; /** * * *
   * Networks to be created.
   * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkConfig networks = 3; */ @java.lang.Override public java.util.List getNetworksList() { return networks_; } /** * * *
   * Networks to be created.
   * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkConfig networks = 3; */ @java.lang.Override public java.util.List getNetworksOrBuilderList() { return networks_; } /** * * *
   * Networks to be created.
   * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkConfig networks = 3; */ @java.lang.Override public int getNetworksCount() { return networks_.size(); } /** * * *
   * Networks to be created.
   * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkConfig networks = 3; */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkConfig getNetworks(int index) { return networks_.get(index); } /** * * *
   * Networks to be created.
   * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkConfig networks = 3; */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.NetworkConfigOrBuilder getNetworksOrBuilder( int index) { return networks_.get(index); } public static final int VOLUMES_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List volumes_; /** * * *
   * Volumes to be created.
   * 
* * repeated .google.cloud.baremetalsolution.v2.VolumeConfig volumes = 4; */ @java.lang.Override public java.util.List getVolumesList() { return volumes_; } /** * * *
   * Volumes to be created.
   * 
* * repeated .google.cloud.baremetalsolution.v2.VolumeConfig volumes = 4; */ @java.lang.Override public java.util.List getVolumesOrBuilderList() { return volumes_; } /** * * *
   * Volumes to be created.
   * 
* * repeated .google.cloud.baremetalsolution.v2.VolumeConfig volumes = 4; */ @java.lang.Override public int getVolumesCount() { return volumes_.size(); } /** * * *
   * Volumes to be created.
   * 
* * repeated .google.cloud.baremetalsolution.v2.VolumeConfig volumes = 4; */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.VolumeConfig getVolumes(int index) { return volumes_.get(index); } /** * * *
   * Volumes to be created.
   * 
* * repeated .google.cloud.baremetalsolution.v2.VolumeConfig volumes = 4; */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.VolumeConfigOrBuilder getVolumesOrBuilder( int index) { return volumes_.get(index); } public static final int TICKET_ID_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object ticketId_ = ""; /** * * *
   * A generated ticket id to track provisioning request.
   * 
* * string ticket_id = 5; * * @return The ticketId. */ @java.lang.Override public java.lang.String getTicketId() { java.lang.Object ref = ticketId_; 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(); ticketId_ = s; return s; } } /** * * *
   * A generated ticket id to track provisioning request.
   * 
* * string ticket_id = 5; * * @return The bytes for ticketId. */ @java.lang.Override public com.google.protobuf.ByteString getTicketIdBytes() { java.lang.Object ref = ticketId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ticketId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HANDOVER_SERVICE_ACCOUNT_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object handoverServiceAccount_ = ""; /** * * *
   * A service account to enable customers to access instance credentials upon
   * handover.
   * 
* * string handover_service_account = 6; * * @return The handoverServiceAccount. */ @java.lang.Override public java.lang.String getHandoverServiceAccount() { java.lang.Object ref = handoverServiceAccount_; 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(); handoverServiceAccount_ = s; return s; } } /** * * *
   * A service account to enable customers to access instance credentials upon
   * handover.
   * 
* * string handover_service_account = 6; * * @return The bytes for handoverServiceAccount. */ @java.lang.Override public com.google.protobuf.ByteString getHandoverServiceAccountBytes() { java.lang.Object ref = handoverServiceAccount_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); handoverServiceAccount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EMAIL_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object email_ = ""; /** * * *
   * Email provided to send a confirmation with provisioning config to.
   * Deprecated in favour of email field in request messages.
   * 
* * string email = 7 [deprecated = true]; * * @deprecated google.cloud.baremetalsolution.v2.ProvisioningConfig.email is deprecated. See * google/cloud/baremetalsolution/v2/provisioning.proto;l=92 * @return The email. */ @java.lang.Override @java.lang.Deprecated public java.lang.String getEmail() { java.lang.Object ref = email_; 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(); email_ = s; return s; } } /** * * *
   * Email provided to send a confirmation with provisioning config to.
   * Deprecated in favour of email field in request messages.
   * 
* * string email = 7 [deprecated = true]; * * @deprecated google.cloud.baremetalsolution.v2.ProvisioningConfig.email is deprecated. See * google/cloud/baremetalsolution/v2/provisioning.proto;l=92 * @return The bytes for email. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); email_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATE_FIELD_NUMBER = 8; private int state_ = 0; /** * * *
   * Output only. State of ProvisioningConfig.
   * 
* * * .google.cloud.baremetalsolution.v2.ProvisioningConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** * * *
   * Output only. State of ProvisioningConfig.
   * 
* * * .google.cloud.baremetalsolution.v2.ProvisioningConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.ProvisioningConfig.State getState() { com.google.cloud.baremetalsolution.v2.ProvisioningConfig.State result = com.google.cloud.baremetalsolution.v2.ProvisioningConfig.State.forNumber(state_); return result == null ? com.google.cloud.baremetalsolution.v2.ProvisioningConfig.State.UNRECOGNIZED : result; } public static final int LOCATION_FIELD_NUMBER = 9; @SuppressWarnings("serial") private volatile java.lang.Object location_ = ""; /** * * *
   * Optional. Location name of this ProvisioningConfig.
   * It is optional only for Intake UI transition period.
   * 
* * string location = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The location. */ @java.lang.Override public java.lang.String getLocation() { java.lang.Object ref = location_; 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(); location_ = s; return s; } } /** * * *
   * Optional. Location name of this ProvisioningConfig.
   * It is optional only for Intake UI transition period.
   * 
* * string location = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for location. */ @java.lang.Override public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int UPDATE_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp updateTime_; /** * * *
   * Output only. Last update timestamp.
   * 
* * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. */ @java.lang.Override public boolean hasUpdateTime() { return updateTime_ != null; } /** * * *
   * Output only. Last update timestamp.
   * 
* * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** * * *
   * Output only. Last update timestamp.
   * 
* * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int CLOUD_CONSOLE_URI_FIELD_NUMBER = 11; @SuppressWarnings("serial") private volatile java.lang.Object cloudConsoleUri_ = ""; /** * * *
   * Output only. URI to Cloud Console UI view of this provisioning config.
   * 
* * string cloud_console_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The cloudConsoleUri. */ @java.lang.Override public java.lang.String getCloudConsoleUri() { java.lang.Object ref = cloudConsoleUri_; 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(); cloudConsoleUri_ = s; return s; } } /** * * *
   * Output only. URI to Cloud Console UI view of this provisioning config.
   * 
* * string cloud_console_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for cloudConsoleUri. */ @java.lang.Override public com.google.protobuf.ByteString getCloudConsoleUriBytes() { java.lang.Object ref = cloudConsoleUri_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cloudConsoleUri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VPC_SC_ENABLED_FIELD_NUMBER = 12; private boolean vpcScEnabled_ = false; /** * * *
   * If true, VPC SC is enabled for the cluster.
   * 
* * bool vpc_sc_enabled = 12; * * @return The vpcScEnabled. */ @java.lang.Override public boolean getVpcScEnabled() { return vpcScEnabled_; } public static final int STATUS_MESSAGE_FIELD_NUMBER = 13; @SuppressWarnings("serial") private volatile java.lang.Object statusMessage_ = ""; /** * * *
   * Optional status messages associated with the FAILED state.
   * 
* * string status_message = 13; * * @return The statusMessage. */ @java.lang.Override public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; 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(); statusMessage_ = s; return s; } } /** * * *
   * Optional status messages associated with the FAILED state.
   * 
* * string status_message = 13; * * @return The bytes for statusMessage. */ @java.lang.Override public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CUSTOM_ID_FIELD_NUMBER = 14; @SuppressWarnings("serial") private volatile java.lang.Object customId_ = ""; /** * * *
   * Optional. The user-defined identifier of the provisioning config.
   * 
* * string custom_id = 14 [(.google.api.field_behavior) = OPTIONAL]; * * @return The customId. */ @java.lang.Override public java.lang.String getCustomId() { java.lang.Object ref = customId_; 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(); customId_ = s; return s; } } /** * * *
   * Optional. The user-defined identifier of the provisioning config.
   * 
* * string custom_id = 14 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for customId. */ @java.lang.Override public com.google.protobuf.ByteString getCustomIdBytes() { java.lang.Object ref = customId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customId_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } for (int i = 0; i < instances_.size(); i++) { output.writeMessage(2, instances_.get(i)); } for (int i = 0; i < networks_.size(); i++) { output.writeMessage(3, networks_.get(i)); } for (int i = 0; i < volumes_.size(); i++) { output.writeMessage(4, volumes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ticketId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, ticketId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(handoverServiceAccount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, handoverServiceAccount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, email_); } if (state_ != com.google.cloud.baremetalsolution.v2.ProvisioningConfig.State.STATE_UNSPECIFIED .getNumber()) { output.writeEnum(8, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, location_); } if (updateTime_ != null) { output.writeMessage(10, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudConsoleUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, cloudConsoleUri_); } if (vpcScEnabled_ != false) { output.writeBool(12, vpcScEnabled_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, statusMessage_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, customId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (int i = 0; i < instances_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, instances_.get(i)); } for (int i = 0; i < networks_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, networks_.get(i)); } for (int i = 0; i < volumes_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, volumes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ticketId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, ticketId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(handoverServiceAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, handoverServiceAccount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, email_); } if (state_ != com.google.cloud.baremetalsolution.v2.ProvisioningConfig.State.STATE_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, location_); } if (updateTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudConsoleUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, cloudConsoleUri_); } if (vpcScEnabled_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, vpcScEnabled_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, statusMessage_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, customId_); } 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.baremetalsolution.v2.ProvisioningConfig)) { return super.equals(obj); } com.google.cloud.baremetalsolution.v2.ProvisioningConfig other = (com.google.cloud.baremetalsolution.v2.ProvisioningConfig) obj; if (!getName().equals(other.getName())) return false; if (!getInstancesList().equals(other.getInstancesList())) return false; if (!getNetworksList().equals(other.getNetworksList())) return false; if (!getVolumesList().equals(other.getVolumesList())) return false; if (!getTicketId().equals(other.getTicketId())) return false; if (!getHandoverServiceAccount().equals(other.getHandoverServiceAccount())) return false; if (!getEmail().equals(other.getEmail())) return false; if (state_ != other.state_) return false; if (!getLocation().equals(other.getLocation())) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!getCloudConsoleUri().equals(other.getCloudConsoleUri())) return false; if (getVpcScEnabled() != other.getVpcScEnabled()) return false; if (!getStatusMessage().equals(other.getStatusMessage())) return false; if (!getCustomId().equals(other.getCustomId())) 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(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (getInstancesCount() > 0) { hash = (37 * hash) + INSTANCES_FIELD_NUMBER; hash = (53 * hash) + getInstancesList().hashCode(); } if (getNetworksCount() > 0) { hash = (37 * hash) + NETWORKS_FIELD_NUMBER; hash = (53 * hash) + getNetworksList().hashCode(); } if (getVolumesCount() > 0) { hash = (37 * hash) + VOLUMES_FIELD_NUMBER; hash = (53 * hash) + getVolumesList().hashCode(); } hash = (37 * hash) + TICKET_ID_FIELD_NUMBER; hash = (53 * hash) + getTicketId().hashCode(); hash = (37 * hash) + HANDOVER_SERVICE_ACCOUNT_FIELD_NUMBER; hash = (53 * hash) + getHandoverServiceAccount().hashCode(); hash = (37 * hash) + EMAIL_FIELD_NUMBER; hash = (53 * hash) + getEmail().hashCode(); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } hash = (37 * hash) + CLOUD_CONSOLE_URI_FIELD_NUMBER; hash = (53 * hash) + getCloudConsoleUri().hashCode(); hash = (37 * hash) + VPC_SC_ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVpcScEnabled()); hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + CUSTOM_ID_FIELD_NUMBER; hash = (53 * hash) + getCustomId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.baremetalsolution.v2.ProvisioningConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.baremetalsolution.v2.ProvisioningConfig 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.baremetalsolution.v2.ProvisioningConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.baremetalsolution.v2.ProvisioningConfig 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.baremetalsolution.v2.ProvisioningConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.baremetalsolution.v2.ProvisioningConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.baremetalsolution.v2.ProvisioningConfig parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.baremetalsolution.v2.ProvisioningConfig 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.baremetalsolution.v2.ProvisioningConfig parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.baremetalsolution.v2.ProvisioningConfig 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.baremetalsolution.v2.ProvisioningConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.baremetalsolution.v2.ProvisioningConfig 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.baremetalsolution.v2.ProvisioningConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * A provisioning configuration.
   * 
* * Protobuf type {@code google.cloud.baremetalsolution.v2.ProvisioningConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.ProvisioningConfig) com.google.cloud.baremetalsolution.v2.ProvisioningConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.baremetalsolution.v2.ProvisioningProto .internal_static_google_cloud_baremetalsolution_v2_ProvisioningConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.baremetalsolution.v2.ProvisioningProto .internal_static_google_cloud_baremetalsolution_v2_ProvisioningConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.baremetalsolution.v2.ProvisioningConfig.class, com.google.cloud.baremetalsolution.v2.ProvisioningConfig.Builder.class); } // Construct using com.google.cloud.baremetalsolution.v2.ProvisioningConfig.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; if (instancesBuilder_ == null) { instances_ = java.util.Collections.emptyList(); } else { instances_ = null; instancesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (networksBuilder_ == null) { networks_ = java.util.Collections.emptyList(); } else { networks_ = null; networksBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (volumesBuilder_ == null) { volumes_ = java.util.Collections.emptyList(); } else { volumes_ = null; volumesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); ticketId_ = ""; handoverServiceAccount_ = ""; email_ = ""; state_ = 0; location_ = ""; updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } cloudConsoleUri_ = ""; vpcScEnabled_ = false; statusMessage_ = ""; customId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.baremetalsolution.v2.ProvisioningProto .internal_static_google_cloud_baremetalsolution_v2_ProvisioningConfig_descriptor; } @java.lang.Override public com.google.cloud.baremetalsolution.v2.ProvisioningConfig getDefaultInstanceForType() { return com.google.cloud.baremetalsolution.v2.ProvisioningConfig.getDefaultInstance(); } @java.lang.Override public com.google.cloud.baremetalsolution.v2.ProvisioningConfig build() { com.google.cloud.baremetalsolution.v2.ProvisioningConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.baremetalsolution.v2.ProvisioningConfig buildPartial() { com.google.cloud.baremetalsolution.v2.ProvisioningConfig result = new com.google.cloud.baremetalsolution.v2.ProvisioningConfig(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.cloud.baremetalsolution.v2.ProvisioningConfig result) { if (instancesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { instances_ = java.util.Collections.unmodifiableList(instances_); bitField0_ = (bitField0_ & ~0x00000002); } result.instances_ = instances_; } else { result.instances_ = instancesBuilder_.build(); } if (networksBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { networks_ = java.util.Collections.unmodifiableList(networks_); bitField0_ = (bitField0_ & ~0x00000004); } result.networks_ = networks_; } else { result.networks_ = networksBuilder_.build(); } if (volumesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { volumes_ = java.util.Collections.unmodifiableList(volumes_); bitField0_ = (bitField0_ & ~0x00000008); } result.volumes_ = volumes_; } else { result.volumes_ = volumesBuilder_.build(); } } private void buildPartial0(com.google.cloud.baremetalsolution.v2.ProvisioningConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.ticketId_ = ticketId_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.handoverServiceAccount_ = handoverServiceAccount_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.email_ = email_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.state_ = state_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.location_ = location_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000400) != 0)) { result.cloudConsoleUri_ = cloudConsoleUri_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.vpcScEnabled_ = vpcScEnabled_; } if (((from_bitField0_ & 0x00001000) != 0)) { result.statusMessage_ = statusMessage_; } if (((from_bitField0_ & 0x00002000) != 0)) { result.customId_ = customId_; } } @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.baremetalsolution.v2.ProvisioningConfig) { return mergeFrom((com.google.cloud.baremetalsolution.v2.ProvisioningConfig) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.ProvisioningConfig other) { if (other == com.google.cloud.baremetalsolution.v2.ProvisioningConfig.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (instancesBuilder_ == null) { if (!other.instances_.isEmpty()) { if (instances_.isEmpty()) { instances_ = other.instances_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureInstancesIsMutable(); instances_.addAll(other.instances_); } onChanged(); } } else { if (!other.instances_.isEmpty()) { if (instancesBuilder_.isEmpty()) { instancesBuilder_.dispose(); instancesBuilder_ = null; instances_ = other.instances_; bitField0_ = (bitField0_ & ~0x00000002); instancesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInstancesFieldBuilder() : null; } else { instancesBuilder_.addAllMessages(other.instances_); } } } if (networksBuilder_ == null) { if (!other.networks_.isEmpty()) { if (networks_.isEmpty()) { networks_ = other.networks_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureNetworksIsMutable(); networks_.addAll(other.networks_); } onChanged(); } } else { if (!other.networks_.isEmpty()) { if (networksBuilder_.isEmpty()) { networksBuilder_.dispose(); networksBuilder_ = null; networks_ = other.networks_; bitField0_ = (bitField0_ & ~0x00000004); networksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNetworksFieldBuilder() : null; } else { networksBuilder_.addAllMessages(other.networks_); } } } if (volumesBuilder_ == null) { if (!other.volumes_.isEmpty()) { if (volumes_.isEmpty()) { volumes_ = other.volumes_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureVolumesIsMutable(); volumes_.addAll(other.volumes_); } onChanged(); } } else { if (!other.volumes_.isEmpty()) { if (volumesBuilder_.isEmpty()) { volumesBuilder_.dispose(); volumesBuilder_ = null; volumes_ = other.volumes_; bitField0_ = (bitField0_ & ~0x00000008); volumesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVolumesFieldBuilder() : null; } else { volumesBuilder_.addAllMessages(other.volumes_); } } } if (!other.getTicketId().isEmpty()) { ticketId_ = other.ticketId_; bitField0_ |= 0x00000010; onChanged(); } if (!other.getHandoverServiceAccount().isEmpty()) { handoverServiceAccount_ = other.handoverServiceAccount_; bitField0_ |= 0x00000020; onChanged(); } if (!other.getEmail().isEmpty()) { email_ = other.email_; bitField0_ |= 0x00000040; onChanged(); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } if (!other.getLocation().isEmpty()) { location_ = other.location_; bitField0_ |= 0x00000100; onChanged(); } if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } if (!other.getCloudConsoleUri().isEmpty()) { cloudConsoleUri_ = other.cloudConsoleUri_; bitField0_ |= 0x00000400; onChanged(); } if (other.getVpcScEnabled() != false) { setVpcScEnabled(other.getVpcScEnabled()); } if (!other.getStatusMessage().isEmpty()) { statusMessage_ = other.statusMessage_; bitField0_ |= 0x00001000; onChanged(); } if (!other.getCustomId().isEmpty()) { customId_ = other.customId_; bitField0_ |= 0x00002000; 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 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.google.cloud.baremetalsolution.v2.InstanceConfig m = input.readMessage( com.google.cloud.baremetalsolution.v2.InstanceConfig.parser(), extensionRegistry); if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.add(m); } else { instancesBuilder_.addMessage(m); } break; } // case 18 case 26: { com.google.cloud.baremetalsolution.v2.NetworkConfig m = input.readMessage( com.google.cloud.baremetalsolution.v2.NetworkConfig.parser(), extensionRegistry); if (networksBuilder_ == null) { ensureNetworksIsMutable(); networks_.add(m); } else { networksBuilder_.addMessage(m); } break; } // case 26 case 34: { com.google.cloud.baremetalsolution.v2.VolumeConfig m = input.readMessage( com.google.cloud.baremetalsolution.v2.VolumeConfig.parser(), extensionRegistry); if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.add(m); } else { volumesBuilder_.addMessage(m); } break; } // case 34 case 42: { ticketId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { handoverServiceAccount_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { email_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 64: { state_ = input.readEnum(); bitField0_ |= 0x00000080; break; } // case 64 case 74: { location_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000100; break; } // case 74 case 82: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 82 case 90: { cloudConsoleUri_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000400; break; } // case 90 case 96: { vpcScEnabled_ = input.readBool(); bitField0_ |= 0x00000800; break; } // case 96 case 106: { statusMessage_ = input.readStringRequireUtf8(); bitField0_ |= 0x00001000; break; } // case 106 case 114: { customId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00002000; break; } // case 114 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 name_ = ""; /** * * *
     * Output only. The system-generated name of the provisioning config. This
     * follows the UUID format.
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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; } } /** * * *
     * Output only. The system-generated name of the provisioning config. This
     * follows the UUID format.
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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; } } /** * * *
     * Output only. The system-generated name of the provisioning config. This
     * follows the UUID format.
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Output only. The system-generated name of the provisioning config. This
     * follows the UUID format.
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * Output only. The system-generated name of the provisioning config. This
     * follows the UUID format.
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @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_ |= 0x00000001; onChanged(); return this; } private java.util.List instances_ = java.util.Collections.emptyList(); private void ensureInstancesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { instances_ = new java.util.ArrayList( instances_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.baremetalsolution.v2.InstanceConfig, com.google.cloud.baremetalsolution.v2.InstanceConfig.Builder, com.google.cloud.baremetalsolution.v2.InstanceConfigOrBuilder> instancesBuilder_; /** * * *
     * Instances to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.InstanceConfig instances = 2; */ public java.util.List getInstancesList() { if (instancesBuilder_ == null) { return java.util.Collections.unmodifiableList(instances_); } else { return instancesBuilder_.getMessageList(); } } /** * * *
     * Instances to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.InstanceConfig instances = 2; */ public int getInstancesCount() { if (instancesBuilder_ == null) { return instances_.size(); } else { return instancesBuilder_.getCount(); } } /** * * *
     * Instances to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.InstanceConfig instances = 2; */ public com.google.cloud.baremetalsolution.v2.InstanceConfig getInstances(int index) { if (instancesBuilder_ == null) { return instances_.get(index); } else { return instancesBuilder_.getMessage(index); } } /** * * *
     * Instances to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.InstanceConfig instances = 2; */ public Builder setInstances( int index, com.google.cloud.baremetalsolution.v2.InstanceConfig value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInstancesIsMutable(); instances_.set(index, value); onChanged(); } else { instancesBuilder_.setMessage(index, value); } return this; } /** * * *
     * Instances to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.InstanceConfig instances = 2; */ public Builder setInstances( int index, com.google.cloud.baremetalsolution.v2.InstanceConfig.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.set(index, builderForValue.build()); onChanged(); } else { instancesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Instances to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.InstanceConfig instances = 2; */ public Builder addInstances(com.google.cloud.baremetalsolution.v2.InstanceConfig value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInstancesIsMutable(); instances_.add(value); onChanged(); } else { instancesBuilder_.addMessage(value); } return this; } /** * * *
     * Instances to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.InstanceConfig instances = 2; */ public Builder addInstances( int index, com.google.cloud.baremetalsolution.v2.InstanceConfig value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInstancesIsMutable(); instances_.add(index, value); onChanged(); } else { instancesBuilder_.addMessage(index, value); } return this; } /** * * *
     * Instances to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.InstanceConfig instances = 2; */ public Builder addInstances( com.google.cloud.baremetalsolution.v2.InstanceConfig.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.add(builderForValue.build()); onChanged(); } else { instancesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Instances to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.InstanceConfig instances = 2; */ public Builder addInstances( int index, com.google.cloud.baremetalsolution.v2.InstanceConfig.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.add(index, builderForValue.build()); onChanged(); } else { instancesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Instances to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.InstanceConfig instances = 2; */ public Builder addAllInstances( java.lang.Iterable values) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); onChanged(); } else { instancesBuilder_.addAllMessages(values); } return this; } /** * * *
     * Instances to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.InstanceConfig instances = 2; */ public Builder clearInstances() { if (instancesBuilder_ == null) { instances_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { instancesBuilder_.clear(); } return this; } /** * * *
     * Instances to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.InstanceConfig instances = 2; */ public Builder removeInstances(int index) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.remove(index); onChanged(); } else { instancesBuilder_.remove(index); } return this; } /** * * *
     * Instances to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.InstanceConfig instances = 2; */ public com.google.cloud.baremetalsolution.v2.InstanceConfig.Builder getInstancesBuilder( int index) { return getInstancesFieldBuilder().getBuilder(index); } /** * * *
     * Instances to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.InstanceConfig instances = 2; */ public com.google.cloud.baremetalsolution.v2.InstanceConfigOrBuilder getInstancesOrBuilder( int index) { if (instancesBuilder_ == null) { return instances_.get(index); } else { return instancesBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Instances to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.InstanceConfig instances = 2; */ public java.util.List getInstancesOrBuilderList() { if (instancesBuilder_ != null) { return instancesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(instances_); } } /** * * *
     * Instances to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.InstanceConfig instances = 2; */ public com.google.cloud.baremetalsolution.v2.InstanceConfig.Builder addInstancesBuilder() { return getInstancesFieldBuilder() .addBuilder(com.google.cloud.baremetalsolution.v2.InstanceConfig.getDefaultInstance()); } /** * * *
     * Instances to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.InstanceConfig instances = 2; */ public com.google.cloud.baremetalsolution.v2.InstanceConfig.Builder addInstancesBuilder( int index) { return getInstancesFieldBuilder() .addBuilder( index, com.google.cloud.baremetalsolution.v2.InstanceConfig.getDefaultInstance()); } /** * * *
     * Instances to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.InstanceConfig instances = 2; */ public java.util.List getInstancesBuilderList() { return getInstancesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.baremetalsolution.v2.InstanceConfig, com.google.cloud.baremetalsolution.v2.InstanceConfig.Builder, com.google.cloud.baremetalsolution.v2.InstanceConfigOrBuilder> getInstancesFieldBuilder() { if (instancesBuilder_ == null) { instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.baremetalsolution.v2.InstanceConfig, com.google.cloud.baremetalsolution.v2.InstanceConfig.Builder, com.google.cloud.baremetalsolution.v2.InstanceConfigOrBuilder>( instances_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); instances_ = null; } return instancesBuilder_; } private java.util.List networks_ = java.util.Collections.emptyList(); private void ensureNetworksIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { networks_ = new java.util.ArrayList(networks_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.baremetalsolution.v2.NetworkConfig, com.google.cloud.baremetalsolution.v2.NetworkConfig.Builder, com.google.cloud.baremetalsolution.v2.NetworkConfigOrBuilder> networksBuilder_; /** * * *
     * Networks to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkConfig networks = 3; */ public java.util.List getNetworksList() { if (networksBuilder_ == null) { return java.util.Collections.unmodifiableList(networks_); } else { return networksBuilder_.getMessageList(); } } /** * * *
     * Networks to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkConfig networks = 3; */ public int getNetworksCount() { if (networksBuilder_ == null) { return networks_.size(); } else { return networksBuilder_.getCount(); } } /** * * *
     * Networks to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkConfig networks = 3; */ public com.google.cloud.baremetalsolution.v2.NetworkConfig getNetworks(int index) { if (networksBuilder_ == null) { return networks_.get(index); } else { return networksBuilder_.getMessage(index); } } /** * * *
     * Networks to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkConfig networks = 3; */ public Builder setNetworks( int index, com.google.cloud.baremetalsolution.v2.NetworkConfig value) { if (networksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNetworksIsMutable(); networks_.set(index, value); onChanged(); } else { networksBuilder_.setMessage(index, value); } return this; } /** * * *
     * Networks to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkConfig networks = 3; */ public Builder setNetworks( int index, com.google.cloud.baremetalsolution.v2.NetworkConfig.Builder builderForValue) { if (networksBuilder_ == null) { ensureNetworksIsMutable(); networks_.set(index, builderForValue.build()); onChanged(); } else { networksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Networks to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkConfig networks = 3; */ public Builder addNetworks(com.google.cloud.baremetalsolution.v2.NetworkConfig value) { if (networksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNetworksIsMutable(); networks_.add(value); onChanged(); } else { networksBuilder_.addMessage(value); } return this; } /** * * *
     * Networks to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkConfig networks = 3; */ public Builder addNetworks( int index, com.google.cloud.baremetalsolution.v2.NetworkConfig value) { if (networksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNetworksIsMutable(); networks_.add(index, value); onChanged(); } else { networksBuilder_.addMessage(index, value); } return this; } /** * * *
     * Networks to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkConfig networks = 3; */ public Builder addNetworks( com.google.cloud.baremetalsolution.v2.NetworkConfig.Builder builderForValue) { if (networksBuilder_ == null) { ensureNetworksIsMutable(); networks_.add(builderForValue.build()); onChanged(); } else { networksBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Networks to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkConfig networks = 3; */ public Builder addNetworks( int index, com.google.cloud.baremetalsolution.v2.NetworkConfig.Builder builderForValue) { if (networksBuilder_ == null) { ensureNetworksIsMutable(); networks_.add(index, builderForValue.build()); onChanged(); } else { networksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Networks to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkConfig networks = 3; */ public Builder addAllNetworks( java.lang.Iterable values) { if (networksBuilder_ == null) { ensureNetworksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networks_); onChanged(); } else { networksBuilder_.addAllMessages(values); } return this; } /** * * *
     * Networks to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkConfig networks = 3; */ public Builder clearNetworks() { if (networksBuilder_ == null) { networks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { networksBuilder_.clear(); } return this; } /** * * *
     * Networks to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkConfig networks = 3; */ public Builder removeNetworks(int index) { if (networksBuilder_ == null) { ensureNetworksIsMutable(); networks_.remove(index); onChanged(); } else { networksBuilder_.remove(index); } return this; } /** * * *
     * Networks to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkConfig networks = 3; */ public com.google.cloud.baremetalsolution.v2.NetworkConfig.Builder getNetworksBuilder( int index) { return getNetworksFieldBuilder().getBuilder(index); } /** * * *
     * Networks to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkConfig networks = 3; */ public com.google.cloud.baremetalsolution.v2.NetworkConfigOrBuilder getNetworksOrBuilder( int index) { if (networksBuilder_ == null) { return networks_.get(index); } else { return networksBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Networks to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkConfig networks = 3; */ public java.util.List getNetworksOrBuilderList() { if (networksBuilder_ != null) { return networksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(networks_); } } /** * * *
     * Networks to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkConfig networks = 3; */ public com.google.cloud.baremetalsolution.v2.NetworkConfig.Builder addNetworksBuilder() { return getNetworksFieldBuilder() .addBuilder(com.google.cloud.baremetalsolution.v2.NetworkConfig.getDefaultInstance()); } /** * * *
     * Networks to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkConfig networks = 3; */ public com.google.cloud.baremetalsolution.v2.NetworkConfig.Builder addNetworksBuilder( int index) { return getNetworksFieldBuilder() .addBuilder( index, com.google.cloud.baremetalsolution.v2.NetworkConfig.getDefaultInstance()); } /** * * *
     * Networks to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.NetworkConfig networks = 3; */ public java.util.List getNetworksBuilderList() { return getNetworksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.baremetalsolution.v2.NetworkConfig, com.google.cloud.baremetalsolution.v2.NetworkConfig.Builder, com.google.cloud.baremetalsolution.v2.NetworkConfigOrBuilder> getNetworksFieldBuilder() { if (networksBuilder_ == null) { networksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.baremetalsolution.v2.NetworkConfig, com.google.cloud.baremetalsolution.v2.NetworkConfig.Builder, com.google.cloud.baremetalsolution.v2.NetworkConfigOrBuilder>( networks_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); networks_ = null; } return networksBuilder_; } private java.util.List volumes_ = java.util.Collections.emptyList(); private void ensureVolumesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { volumes_ = new java.util.ArrayList(volumes_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.baremetalsolution.v2.VolumeConfig, com.google.cloud.baremetalsolution.v2.VolumeConfig.Builder, com.google.cloud.baremetalsolution.v2.VolumeConfigOrBuilder> volumesBuilder_; /** * * *
     * Volumes to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.VolumeConfig volumes = 4; */ public java.util.List getVolumesList() { if (volumesBuilder_ == null) { return java.util.Collections.unmodifiableList(volumes_); } else { return volumesBuilder_.getMessageList(); } } /** * * *
     * Volumes to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.VolumeConfig volumes = 4; */ public int getVolumesCount() { if (volumesBuilder_ == null) { return volumes_.size(); } else { return volumesBuilder_.getCount(); } } /** * * *
     * Volumes to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.VolumeConfig volumes = 4; */ public com.google.cloud.baremetalsolution.v2.VolumeConfig getVolumes(int index) { if (volumesBuilder_ == null) { return volumes_.get(index); } else { return volumesBuilder_.getMessage(index); } } /** * * *
     * Volumes to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.VolumeConfig volumes = 4; */ public Builder setVolumes(int index, com.google.cloud.baremetalsolution.v2.VolumeConfig value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumesIsMutable(); volumes_.set(index, value); onChanged(); } else { volumesBuilder_.setMessage(index, value); } return this; } /** * * *
     * Volumes to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.VolumeConfig volumes = 4; */ public Builder setVolumes( int index, com.google.cloud.baremetalsolution.v2.VolumeConfig.Builder builderForValue) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.set(index, builderForValue.build()); onChanged(); } else { volumesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Volumes to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.VolumeConfig volumes = 4; */ public Builder addVolumes(com.google.cloud.baremetalsolution.v2.VolumeConfig value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumesIsMutable(); volumes_.add(value); onChanged(); } else { volumesBuilder_.addMessage(value); } return this; } /** * * *
     * Volumes to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.VolumeConfig volumes = 4; */ public Builder addVolumes(int index, com.google.cloud.baremetalsolution.v2.VolumeConfig value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumesIsMutable(); volumes_.add(index, value); onChanged(); } else { volumesBuilder_.addMessage(index, value); } return this; } /** * * *
     * Volumes to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.VolumeConfig volumes = 4; */ public Builder addVolumes( com.google.cloud.baremetalsolution.v2.VolumeConfig.Builder builderForValue) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.add(builderForValue.build()); onChanged(); } else { volumesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Volumes to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.VolumeConfig volumes = 4; */ public Builder addVolumes( int index, com.google.cloud.baremetalsolution.v2.VolumeConfig.Builder builderForValue) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.add(index, builderForValue.build()); onChanged(); } else { volumesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Volumes to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.VolumeConfig volumes = 4; */ public Builder addAllVolumes( java.lang.Iterable values) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumes_); onChanged(); } else { volumesBuilder_.addAllMessages(values); } return this; } /** * * *
     * Volumes to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.VolumeConfig volumes = 4; */ public Builder clearVolumes() { if (volumesBuilder_ == null) { volumes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { volumesBuilder_.clear(); } return this; } /** * * *
     * Volumes to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.VolumeConfig volumes = 4; */ public Builder removeVolumes(int index) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.remove(index); onChanged(); } else { volumesBuilder_.remove(index); } return this; } /** * * *
     * Volumes to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.VolumeConfig volumes = 4; */ public com.google.cloud.baremetalsolution.v2.VolumeConfig.Builder getVolumesBuilder(int index) { return getVolumesFieldBuilder().getBuilder(index); } /** * * *
     * Volumes to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.VolumeConfig volumes = 4; */ public com.google.cloud.baremetalsolution.v2.VolumeConfigOrBuilder getVolumesOrBuilder( int index) { if (volumesBuilder_ == null) { return volumes_.get(index); } else { return volumesBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Volumes to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.VolumeConfig volumes = 4; */ public java.util.List getVolumesOrBuilderList() { if (volumesBuilder_ != null) { return volumesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(volumes_); } } /** * * *
     * Volumes to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.VolumeConfig volumes = 4; */ public com.google.cloud.baremetalsolution.v2.VolumeConfig.Builder addVolumesBuilder() { return getVolumesFieldBuilder() .addBuilder(com.google.cloud.baremetalsolution.v2.VolumeConfig.getDefaultInstance()); } /** * * *
     * Volumes to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.VolumeConfig volumes = 4; */ public com.google.cloud.baremetalsolution.v2.VolumeConfig.Builder addVolumesBuilder(int index) { return getVolumesFieldBuilder() .addBuilder( index, com.google.cloud.baremetalsolution.v2.VolumeConfig.getDefaultInstance()); } /** * * *
     * Volumes to be created.
     * 
* * repeated .google.cloud.baremetalsolution.v2.VolumeConfig volumes = 4; */ public java.util.List getVolumesBuilderList() { return getVolumesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.baremetalsolution.v2.VolumeConfig, com.google.cloud.baremetalsolution.v2.VolumeConfig.Builder, com.google.cloud.baremetalsolution.v2.VolumeConfigOrBuilder> getVolumesFieldBuilder() { if (volumesBuilder_ == null) { volumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.baremetalsolution.v2.VolumeConfig, com.google.cloud.baremetalsolution.v2.VolumeConfig.Builder, com.google.cloud.baremetalsolution.v2.VolumeConfigOrBuilder>( volumes_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); volumes_ = null; } return volumesBuilder_; } private java.lang.Object ticketId_ = ""; /** * * *
     * A generated ticket id to track provisioning request.
     * 
* * string ticket_id = 5; * * @return The ticketId. */ public java.lang.String getTicketId() { java.lang.Object ref = ticketId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ticketId_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * A generated ticket id to track provisioning request.
     * 
* * string ticket_id = 5; * * @return The bytes for ticketId. */ public com.google.protobuf.ByteString getTicketIdBytes() { java.lang.Object ref = ticketId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ticketId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * A generated ticket id to track provisioning request.
     * 
* * string ticket_id = 5; * * @param value The ticketId to set. * @return This builder for chaining. */ public Builder setTicketId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ticketId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * A generated ticket id to track provisioning request.
     * 
* * string ticket_id = 5; * * @return This builder for chaining. */ public Builder clearTicketId() { ticketId_ = getDefaultInstance().getTicketId(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * * *
     * A generated ticket id to track provisioning request.
     * 
* * string ticket_id = 5; * * @param value The bytes for ticketId to set. * @return This builder for chaining. */ public Builder setTicketIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ticketId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private java.lang.Object handoverServiceAccount_ = ""; /** * * *
     * A service account to enable customers to access instance credentials upon
     * handover.
     * 
* * string handover_service_account = 6; * * @return The handoverServiceAccount. */ public java.lang.String getHandoverServiceAccount() { java.lang.Object ref = handoverServiceAccount_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); handoverServiceAccount_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * A service account to enable customers to access instance credentials upon
     * handover.
     * 
* * string handover_service_account = 6; * * @return The bytes for handoverServiceAccount. */ public com.google.protobuf.ByteString getHandoverServiceAccountBytes() { java.lang.Object ref = handoverServiceAccount_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); handoverServiceAccount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * A service account to enable customers to access instance credentials upon
     * handover.
     * 
* * string handover_service_account = 6; * * @param value The handoverServiceAccount to set. * @return This builder for chaining. */ public Builder setHandoverServiceAccount(java.lang.String value) { if (value == null) { throw new NullPointerException(); } handoverServiceAccount_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * A service account to enable customers to access instance credentials upon
     * handover.
     * 
* * string handover_service_account = 6; * * @return This builder for chaining. */ public Builder clearHandoverServiceAccount() { handoverServiceAccount_ = getDefaultInstance().getHandoverServiceAccount(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * * *
     * A service account to enable customers to access instance credentials upon
     * handover.
     * 
* * string handover_service_account = 6; * * @param value The bytes for handoverServiceAccount to set. * @return This builder for chaining. */ public Builder setHandoverServiceAccountBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); handoverServiceAccount_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private java.lang.Object email_ = ""; /** * * *
     * Email provided to send a confirmation with provisioning config to.
     * Deprecated in favour of email field in request messages.
     * 
* * string email = 7 [deprecated = true]; * * @deprecated google.cloud.baremetalsolution.v2.ProvisioningConfig.email is deprecated. See * google/cloud/baremetalsolution/v2/provisioning.proto;l=92 * @return The email. */ @java.lang.Deprecated public java.lang.String getEmail() { java.lang.Object ref = email_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Email provided to send a confirmation with provisioning config to.
     * Deprecated in favour of email field in request messages.
     * 
* * string email = 7 [deprecated = true]; * * @deprecated google.cloud.baremetalsolution.v2.ProvisioningConfig.email is deprecated. See * google/cloud/baremetalsolution/v2/provisioning.proto;l=92 * @return The bytes for email. */ @java.lang.Deprecated public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); email_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Email provided to send a confirmation with provisioning config to.
     * Deprecated in favour of email field in request messages.
     * 
* * string email = 7 [deprecated = true]; * * @deprecated google.cloud.baremetalsolution.v2.ProvisioningConfig.email is deprecated. See * google/cloud/baremetalsolution/v2/provisioning.proto;l=92 * @param value The email to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setEmail(java.lang.String value) { if (value == null) { throw new NullPointerException(); } email_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Email provided to send a confirmation with provisioning config to.
     * Deprecated in favour of email field in request messages.
     * 
* * string email = 7 [deprecated = true]; * * @deprecated google.cloud.baremetalsolution.v2.ProvisioningConfig.email is deprecated. See * google/cloud/baremetalsolution/v2/provisioning.proto;l=92 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearEmail() { email_ = getDefaultInstance().getEmail(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * * *
     * Email provided to send a confirmation with provisioning config to.
     * Deprecated in favour of email field in request messages.
     * 
* * string email = 7 [deprecated = true]; * * @deprecated google.cloud.baremetalsolution.v2.ProvisioningConfig.email is deprecated. See * google/cloud/baremetalsolution/v2/provisioning.proto;l=92 * @param value The bytes for email to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setEmailBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); email_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private int state_ = 0; /** * * *
     * Output only. State of ProvisioningConfig.
     * 
* * * .google.cloud.baremetalsolution.v2.ProvisioningConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** * * *
     * Output only. State of ProvisioningConfig.
     * 
* * * .google.cloud.baremetalsolution.v2.ProvisioningConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { state_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * Output only. State of ProvisioningConfig.
     * 
* * * .google.cloud.baremetalsolution.v2.ProvisioningConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The state. */ @java.lang.Override public com.google.cloud.baremetalsolution.v2.ProvisioningConfig.State getState() { com.google.cloud.baremetalsolution.v2.ProvisioningConfig.State result = com.google.cloud.baremetalsolution.v2.ProvisioningConfig.State.forNumber(state_); return result == null ? com.google.cloud.baremetalsolution.v2.ProvisioningConfig.State.UNRECOGNIZED : result; } /** * * *
     * Output only. State of ProvisioningConfig.
     * 
* * * .google.cloud.baremetalsolution.v2.ProvisioningConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The state to set. * @return This builder for chaining. */ public Builder setState(com.google.cloud.baremetalsolution.v2.ProvisioningConfig.State value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; state_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Output only. State of ProvisioningConfig.
     * 
* * * .google.cloud.baremetalsolution.v2.ProvisioningConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearState() { bitField0_ = (bitField0_ & ~0x00000080); state_ = 0; onChanged(); return this; } private java.lang.Object location_ = ""; /** * * *
     * Optional. Location name of this ProvisioningConfig.
     * It is optional only for Intake UI transition period.
     * 
* * string location = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. Location name of this ProvisioningConfig.
     * It is optional only for Intake UI transition period.
     * 
* * string location = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for location. */ public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Optional. Location name of this ProvisioningConfig.
     * It is optional only for Intake UI transition period.
     * 
* * string location = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The location to set. * @return This builder for chaining. */ public Builder setLocation(java.lang.String value) { if (value == null) { throw new NullPointerException(); } location_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * Optional. Location name of this ProvisioningConfig.
     * It is optional only for Intake UI transition period.
     * 
* * string location = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearLocation() { location_ = getDefaultInstance().getLocation(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** * * *
     * Optional. Location name of this ProvisioningConfig.
     * It is optional only for Intake UI transition period.
     * 
* * string location = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for location to set. * @return This builder for chaining. */ public Builder setLocationBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); location_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** * * *
     * Output only. Last update timestamp.
     * 
* * * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000200) != 0); } /** * * *
     * Output only. Last update timestamp.
     * 
* * * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** * * *
     * Output only. Last update timestamp.
     * 
* * * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updateTime_ = value; } else { updateTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Output only. Last update timestamp.
     * 
* * * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Output only. Last update timestamp.
     * 
* * * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } } else { updateTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Output only. Last update timestamp.
     * 
* * * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000200); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. Last update timestamp.
     * 
* * * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000200; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** * * *
     * Output only. Last update timestamp.
     * 
* * * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** * * *
     * Output only. Last update timestamp.
     * 
* * * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } private java.lang.Object cloudConsoleUri_ = ""; /** * * *
     * Output only. URI to Cloud Console UI view of this provisioning config.
     * 
* * string cloud_console_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The cloudConsoleUri. */ public java.lang.String getCloudConsoleUri() { java.lang.Object ref = cloudConsoleUri_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cloudConsoleUri_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. URI to Cloud Console UI view of this provisioning config.
     * 
* * string cloud_console_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for cloudConsoleUri. */ public com.google.protobuf.ByteString getCloudConsoleUriBytes() { java.lang.Object ref = cloudConsoleUri_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cloudConsoleUri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. URI to Cloud Console UI view of this provisioning config.
     * 
* * string cloud_console_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The cloudConsoleUri to set. * @return This builder for chaining. */ public Builder setCloudConsoleUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } cloudConsoleUri_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * Output only. URI to Cloud Console UI view of this provisioning config.
     * 
* * string cloud_console_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearCloudConsoleUri() { cloudConsoleUri_ = getDefaultInstance().getCloudConsoleUri(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** * * *
     * Output only. URI to Cloud Console UI view of this provisioning config.
     * 
* * string cloud_console_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for cloudConsoleUri to set. * @return This builder for chaining. */ public Builder setCloudConsoleUriBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cloudConsoleUri_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } private boolean vpcScEnabled_; /** * * *
     * If true, VPC SC is enabled for the cluster.
     * 
* * bool vpc_sc_enabled = 12; * * @return The vpcScEnabled. */ @java.lang.Override public boolean getVpcScEnabled() { return vpcScEnabled_; } /** * * *
     * If true, VPC SC is enabled for the cluster.
     * 
* * bool vpc_sc_enabled = 12; * * @param value The vpcScEnabled to set. * @return This builder for chaining. */ public Builder setVpcScEnabled(boolean value) { vpcScEnabled_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** * * *
     * If true, VPC SC is enabled for the cluster.
     * 
* * bool vpc_sc_enabled = 12; * * @return This builder for chaining. */ public Builder clearVpcScEnabled() { bitField0_ = (bitField0_ & ~0x00000800); vpcScEnabled_ = false; onChanged(); return this; } private java.lang.Object statusMessage_ = ""; /** * * *
     * Optional status messages associated with the FAILED state.
     * 
* * string status_message = 13; * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional status messages associated with the FAILED state.
     * 
* * string status_message = 13; * * @return The bytes for statusMessage. */ public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Optional status messages associated with the FAILED state.
     * 
* * string status_message = 13; * * @param value The statusMessage to set. * @return This builder for chaining. */ public Builder setStatusMessage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } statusMessage_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** * * *
     * Optional status messages associated with the FAILED state.
     * 
* * string status_message = 13; * * @return This builder for chaining. */ public Builder clearStatusMessage() { statusMessage_ = getDefaultInstance().getStatusMessage(); bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } /** * * *
     * Optional status messages associated with the FAILED state.
     * 
* * string status_message = 13; * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); statusMessage_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } private java.lang.Object customId_ = ""; /** * * *
     * Optional. The user-defined identifier of the provisioning config.
     * 
* * string custom_id = 14 [(.google.api.field_behavior) = OPTIONAL]; * * @return The customId. */ public java.lang.String getCustomId() { java.lang.Object ref = customId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customId_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. The user-defined identifier of the provisioning config.
     * 
* * string custom_id = 14 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for customId. */ public com.google.protobuf.ByteString getCustomIdBytes() { java.lang.Object ref = customId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Optional. The user-defined identifier of the provisioning config.
     * 
* * string custom_id = 14 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The customId to set. * @return This builder for chaining. */ public Builder setCustomId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } customId_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** * * *
     * Optional. The user-defined identifier of the provisioning config.
     * 
* * string custom_id = 14 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearCustomId() { customId_ = getDefaultInstance().getCustomId(); bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } /** * * *
     * Optional. The user-defined identifier of the provisioning config.
     * 
* * string custom_id = 14 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for customId to set. * @return This builder for chaining. */ public Builder setCustomIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); customId_ = value; bitField0_ |= 0x00002000; 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.baremetalsolution.v2.ProvisioningConfig) } // @@protoc_insertion_point(class_scope:google.cloud.baremetalsolution.v2.ProvisioningConfig) private static final com.google.cloud.baremetalsolution.v2.ProvisioningConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.baremetalsolution.v2.ProvisioningConfig(); } public static com.google.cloud.baremetalsolution.v2.ProvisioningConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProvisioningConfig 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.baremetalsolution.v2.ProvisioningConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy