Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/baremetalsolution/v2/provisioning.proto
// Protobuf Java Version: 3.25.3
package com.google.cloud.baremetalsolution.v2;
/**
*
*
*
* Configuration parameters for a new instance.
*
*
* Protobuf type {@code google.cloud.baremetalsolution.v2.InstanceConfig}
*/
public final class InstanceConfig extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.InstanceConfig)
InstanceConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use InstanceConfig.newBuilder() to construct.
private InstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private InstanceConfig() {
name_ = "";
id_ = "";
instanceType_ = "";
osImage_ = "";
userNote_ = "";
networkConfig_ = 0;
networkTemplate_ = "";
logicalInterfaces_ = java.util.Collections.emptyList();
sshKeyNames_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new InstanceConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.baremetalsolution.v2.ProvisioningProto
.internal_static_google_cloud_baremetalsolution_v2_InstanceConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.baremetalsolution.v2.ProvisioningProto
.internal_static_google_cloud_baremetalsolution_v2_InstanceConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.baremetalsolution.v2.InstanceConfig.class,
com.google.cloud.baremetalsolution.v2.InstanceConfig.Builder.class);
}
/**
*
*
*
*
* NETWORKCONFIG_UNSPECIFIED = 0;
*/
public static final int NETWORKCONFIG_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* Instance part of single client network and single private network.
*
*
* SINGLE_VLAN = 1;
*/
public static final int SINGLE_VLAN_VALUE = 1;
/**
*
*
*
* Instance part of multiple (or single) client networks and private
* networks.
*
*
* MULTI_VLAN = 2;
*/
public static final int MULTI_VLAN_VALUE = 2;
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 NetworkConfig 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 NetworkConfig forNumber(int value) {
switch (value) {
case 0:
return NETWORKCONFIG_UNSPECIFIED;
case 1:
return SINGLE_VLAN;
case 2:
return MULTI_VLAN;
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 NetworkConfig findValueByNumber(int number) {
return NetworkConfig.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.InstanceConfig.getDescriptor()
.getEnumTypes()
.get(0);
}
private static final NetworkConfig[] VALUES = values();
public static NetworkConfig 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 NetworkConfig(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.baremetalsolution.v2.InstanceConfig.NetworkConfig)
}
public interface NetworkAddressOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.baremetalsolution.v2.InstanceConfig.NetworkAddress)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Id of the network to use, within the same ProvisioningConfig request.
*
* User note field, it can be used by customers to add additional information
* for the BMS Ops team .
*
*
* string user_note = 8;
*
* @return The bytes for userNote.
*/
@java.lang.Override
public com.google.protobuf.ByteString getUserNoteBytes() {
java.lang.Object ref = userNote_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
userNote_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ACCOUNT_NETWORKS_ENABLED_FIELD_NUMBER = 9;
private boolean accountNetworksEnabled_ = false;
/**
*
*
*
* If true networks can be from different projects of the same vendor account.
*
*
* bool account_networks_enabled = 9;
*
* @return The accountNetworksEnabled.
*/
@java.lang.Override
public boolean getAccountNetworksEnabled() {
return accountNetworksEnabled_;
}
public static final int NETWORK_CONFIG_FIELD_NUMBER = 10;
private int networkConfig_ = 0;
/**
*
*
*
* The type of network configuration on the instance.
*
*
* .google.cloud.baremetalsolution.v2.InstanceConfig.NetworkConfig network_config = 10;
*
*
* @return The enum numeric value on the wire for networkConfig.
*/
@java.lang.Override
public int getNetworkConfigValue() {
return networkConfig_;
}
/**
*
*
*
* The type of network configuration on the instance.
*
*
* .google.cloud.baremetalsolution.v2.InstanceConfig.NetworkConfig network_config = 10;
*
*
* @return The networkConfig.
*/
@java.lang.Override
public com.google.cloud.baremetalsolution.v2.InstanceConfig.NetworkConfig getNetworkConfig() {
com.google.cloud.baremetalsolution.v2.InstanceConfig.NetworkConfig result =
com.google.cloud.baremetalsolution.v2.InstanceConfig.NetworkConfig.forNumber(
networkConfig_);
return result == null
? com.google.cloud.baremetalsolution.v2.InstanceConfig.NetworkConfig.UNRECOGNIZED
: result;
}
public static final int NETWORK_TEMPLATE_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private volatile java.lang.Object networkTemplate_ = "";
/**
*
*
*
* Server network template name. Filled if InstanceConfig.multivlan_config is
* true.
*
* Server network template name. Filled if InstanceConfig.multivlan_config is
* true.
*
*
* string network_template = 11;
*
* @return The bytes for networkTemplate.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNetworkTemplateBytes() {
java.lang.Object ref = networkTemplate_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
networkTemplate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOGICAL_INTERFACES_FIELD_NUMBER = 12;
@SuppressWarnings("serial")
private java.util.List logicalInterfaces_;
/**
*
*
*
* List of logical interfaces for the instance. The number of logical
* interfaces will be the same as number of hardware bond/nic on the chosen
* network template. Filled if InstanceConfig.multivlan_config is true.
*
* List of logical interfaces for the instance. The number of logical
* interfaces will be the same as number of hardware bond/nic on the chosen
* network template. Filled if InstanceConfig.multivlan_config is true.
*
* List of logical interfaces for the instance. The number of logical
* interfaces will be the same as number of hardware bond/nic on the chosen
* network template. Filled if InstanceConfig.multivlan_config is true.
*
* List of logical interfaces for the instance. The number of logical
* interfaces will be the same as number of hardware bond/nic on the chosen
* network template. Filled if InstanceConfig.multivlan_config is true.
*
* List of logical interfaces for the instance. The number of logical
* interfaces will be the same as number of hardware bond/nic on the chosen
* network template. Filled if InstanceConfig.multivlan_config is true.
*
*
* repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 12;
*
*/
@java.lang.Override
public com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder
getLogicalInterfacesOrBuilder(int index) {
return logicalInterfaces_.get(index);
}
public static final int SSH_KEY_NAMES_FIELD_NUMBER = 13;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList sshKeyNames_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* List of names of ssh keys used to provision the instance.
*
*
* repeated string ssh_key_names = 13;
*
* @return A list containing the sshKeyNames.
*/
public com.google.protobuf.ProtocolStringList getSshKeyNamesList() {
return sshKeyNames_;
}
/**
*
*
*
* List of names of ssh keys used to provision the instance.
*
*
* repeated string ssh_key_names = 13;
*
* @return The count of sshKeyNames.
*/
public int getSshKeyNamesCount() {
return sshKeyNames_.size();
}
/**
*
*
*
* List of names of ssh keys used to provision the instance.
*
*
* repeated string ssh_key_names = 13;
*
* @param index The index of the element to return.
* @return The sshKeyNames at the given index.
*/
public java.lang.String getSshKeyNames(int index) {
return sshKeyNames_.get(index);
}
/**
*
*
*
* List of names of ssh keys used to provision the instance.
*
*
* repeated string ssh_key_names = 13;
*
* @param index The index of the value to return.
* @return The bytes of the sshKeyNames at the given index.
*/
public com.google.protobuf.ByteString getSshKeyNamesBytes(int index) {
return sshKeyNames_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, instanceType_);
}
if (hyperthreading_ != false) {
output.writeBool(4, hyperthreading_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(osImage_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, osImage_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(6, getClientNetwork());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(7, getPrivateNetwork());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userNote_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, userNote_);
}
if (accountNetworksEnabled_ != false) {
output.writeBool(9, accountNetworksEnabled_);
}
if (networkConfig_
!= com.google.cloud.baremetalsolution.v2.InstanceConfig.NetworkConfig
.NETWORKCONFIG_UNSPECIFIED
.getNumber()) {
output.writeEnum(10, networkConfig_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkTemplate_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, networkTemplate_);
}
for (int i = 0; i < logicalInterfaces_.size(); i++) {
output.writeMessage(12, logicalInterfaces_.get(i));
}
for (int i = 0; i < sshKeyNames_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, sshKeyNames_.getRaw(i));
}
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_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, instanceType_);
}
if (hyperthreading_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, hyperthreading_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(osImage_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, osImage_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getClientNetwork());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getPrivateNetwork());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userNote_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, userNote_);
}
if (accountNetworksEnabled_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, accountNetworksEnabled_);
}
if (networkConfig_
!= com.google.cloud.baremetalsolution.v2.InstanceConfig.NetworkConfig
.NETWORKCONFIG_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, networkConfig_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkTemplate_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, networkTemplate_);
}
for (int i = 0; i < logicalInterfaces_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(12, logicalInterfaces_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < sshKeyNames_.size(); i++) {
dataSize += computeStringSizeNoTag(sshKeyNames_.getRaw(i));
}
size += dataSize;
size += 1 * getSshKeyNamesList().size();
}
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.InstanceConfig)) {
return super.equals(obj);
}
com.google.cloud.baremetalsolution.v2.InstanceConfig other =
(com.google.cloud.baremetalsolution.v2.InstanceConfig) obj;
if (!getName().equals(other.getName())) return false;
if (!getId().equals(other.getId())) return false;
if (!getInstanceType().equals(other.getInstanceType())) return false;
if (getHyperthreading() != other.getHyperthreading()) return false;
if (!getOsImage().equals(other.getOsImage())) return false;
if (hasClientNetwork() != other.hasClientNetwork()) return false;
if (hasClientNetwork()) {
if (!getClientNetwork().equals(other.getClientNetwork())) return false;
}
if (hasPrivateNetwork() != other.hasPrivateNetwork()) return false;
if (hasPrivateNetwork()) {
if (!getPrivateNetwork().equals(other.getPrivateNetwork())) return false;
}
if (!getUserNote().equals(other.getUserNote())) return false;
if (getAccountNetworksEnabled() != other.getAccountNetworksEnabled()) return false;
if (networkConfig_ != other.networkConfig_) return false;
if (!getNetworkTemplate().equals(other.getNetworkTemplate())) return false;
if (!getLogicalInterfacesList().equals(other.getLogicalInterfacesList())) return false;
if (!getSshKeyNamesList().equals(other.getSshKeyNamesList())) 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();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + INSTANCE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getInstanceType().hashCode();
hash = (37 * hash) + HYPERTHREADING_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHyperthreading());
hash = (37 * hash) + OS_IMAGE_FIELD_NUMBER;
hash = (53 * hash) + getOsImage().hashCode();
if (hasClientNetwork()) {
hash = (37 * hash) + CLIENT_NETWORK_FIELD_NUMBER;
hash = (53 * hash) + getClientNetwork().hashCode();
}
if (hasPrivateNetwork()) {
hash = (37 * hash) + PRIVATE_NETWORK_FIELD_NUMBER;
hash = (53 * hash) + getPrivateNetwork().hashCode();
}
hash = (37 * hash) + USER_NOTE_FIELD_NUMBER;
hash = (53 * hash) + getUserNote().hashCode();
hash = (37 * hash) + ACCOUNT_NETWORKS_ENABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAccountNetworksEnabled());
hash = (37 * hash) + NETWORK_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + networkConfig_;
hash = (37 * hash) + NETWORK_TEMPLATE_FIELD_NUMBER;
hash = (53 * hash) + getNetworkTemplate().hashCode();
if (getLogicalInterfacesCount() > 0) {
hash = (37 * hash) + LOGICAL_INTERFACES_FIELD_NUMBER;
hash = (53 * hash) + getLogicalInterfacesList().hashCode();
}
if (getSshKeyNamesCount() > 0) {
hash = (37 * hash) + SSH_KEY_NAMES_FIELD_NUMBER;
hash = (53 * hash) + getSshKeyNamesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.baremetalsolution.v2.InstanceConfig parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.baremetalsolution.v2.InstanceConfig 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.InstanceConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.baremetalsolution.v2.InstanceConfig 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.InstanceConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.baremetalsolution.v2.InstanceConfig 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.InstanceConfig parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.baremetalsolution.v2.InstanceConfig 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.InstanceConfig parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.baremetalsolution.v2.InstanceConfig 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.InstanceConfig 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.InstanceConfig 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.InstanceConfig 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;
}
/**
*
*
*
* Configuration parameters for a new instance.
*
*
* Protobuf type {@code google.cloud.baremetalsolution.v2.InstanceConfig}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.baremetalsolution.v2.InstanceConfig)
com.google.cloud.baremetalsolution.v2.InstanceConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.baremetalsolution.v2.ProvisioningProto
.internal_static_google_cloud_baremetalsolution_v2_InstanceConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.baremetalsolution.v2.ProvisioningProto
.internal_static_google_cloud_baremetalsolution_v2_InstanceConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.baremetalsolution.v2.InstanceConfig.class,
com.google.cloud.baremetalsolution.v2.InstanceConfig.Builder.class);
}
// Construct using com.google.cloud.baremetalsolution.v2.InstanceConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getClientNetworkFieldBuilder();
getPrivateNetworkFieldBuilder();
getLogicalInterfacesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
id_ = "";
instanceType_ = "";
hyperthreading_ = false;
osImage_ = "";
clientNetwork_ = null;
if (clientNetworkBuilder_ != null) {
clientNetworkBuilder_.dispose();
clientNetworkBuilder_ = null;
}
privateNetwork_ = null;
if (privateNetworkBuilder_ != null) {
privateNetworkBuilder_.dispose();
privateNetworkBuilder_ = null;
}
userNote_ = "";
accountNetworksEnabled_ = false;
networkConfig_ = 0;
networkTemplate_ = "";
if (logicalInterfacesBuilder_ == null) {
logicalInterfaces_ = java.util.Collections.emptyList();
} else {
logicalInterfaces_ = null;
logicalInterfacesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
sshKeyNames_ = com.google.protobuf.LazyStringArrayList.emptyList();
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_InstanceConfig_descriptor;
}
@java.lang.Override
public com.google.cloud.baremetalsolution.v2.InstanceConfig getDefaultInstanceForType() {
return com.google.cloud.baremetalsolution.v2.InstanceConfig.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.baremetalsolution.v2.InstanceConfig build() {
com.google.cloud.baremetalsolution.v2.InstanceConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.baremetalsolution.v2.InstanceConfig buildPartial() {
com.google.cloud.baremetalsolution.v2.InstanceConfig result =
new com.google.cloud.baremetalsolution.v2.InstanceConfig(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.cloud.baremetalsolution.v2.InstanceConfig result) {
if (logicalInterfacesBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 0)) {
logicalInterfaces_ = java.util.Collections.unmodifiableList(logicalInterfaces_);
bitField0_ = (bitField0_ & ~0x00000800);
}
result.logicalInterfaces_ = logicalInterfaces_;
} else {
result.logicalInterfaces_ = logicalInterfacesBuilder_.build();
}
}
private void buildPartial0(com.google.cloud.baremetalsolution.v2.InstanceConfig result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.id_ = id_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.instanceType_ = instanceType_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.hyperthreading_ = hyperthreading_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.osImage_ = osImage_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000020) != 0)) {
result.clientNetwork_ =
clientNetworkBuilder_ == null ? clientNetwork_ : clientNetworkBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.privateNetwork_ =
privateNetworkBuilder_ == null ? privateNetwork_ : privateNetworkBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.userNote_ = userNote_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.accountNetworksEnabled_ = accountNetworksEnabled_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.networkConfig_ = networkConfig_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.networkTemplate_ = networkTemplate_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
sshKeyNames_.makeImmutable();
result.sshKeyNames_ = sshKeyNames_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.baremetalsolution.v2.InstanceConfig) {
return mergeFrom((com.google.cloud.baremetalsolution.v2.InstanceConfig) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.baremetalsolution.v2.InstanceConfig other) {
if (other == com.google.cloud.baremetalsolution.v2.InstanceConfig.getDefaultInstance())
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getId().isEmpty()) {
id_ = other.id_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getInstanceType().isEmpty()) {
instanceType_ = other.instanceType_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.getHyperthreading() != false) {
setHyperthreading(other.getHyperthreading());
}
if (!other.getOsImage().isEmpty()) {
osImage_ = other.osImage_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasClientNetwork()) {
mergeClientNetwork(other.getClientNetwork());
}
if (other.hasPrivateNetwork()) {
mergePrivateNetwork(other.getPrivateNetwork());
}
if (!other.getUserNote().isEmpty()) {
userNote_ = other.userNote_;
bitField0_ |= 0x00000080;
onChanged();
}
if (other.getAccountNetworksEnabled() != false) {
setAccountNetworksEnabled(other.getAccountNetworksEnabled());
}
if (other.networkConfig_ != 0) {
setNetworkConfigValue(other.getNetworkConfigValue());
}
if (!other.getNetworkTemplate().isEmpty()) {
networkTemplate_ = other.networkTemplate_;
bitField0_ |= 0x00000400;
onChanged();
}
if (logicalInterfacesBuilder_ == null) {
if (!other.logicalInterfaces_.isEmpty()) {
if (logicalInterfaces_.isEmpty()) {
logicalInterfaces_ = other.logicalInterfaces_;
bitField0_ = (bitField0_ & ~0x00000800);
} else {
ensureLogicalInterfacesIsMutable();
logicalInterfaces_.addAll(other.logicalInterfaces_);
}
onChanged();
}
} else {
if (!other.logicalInterfaces_.isEmpty()) {
if (logicalInterfacesBuilder_.isEmpty()) {
logicalInterfacesBuilder_.dispose();
logicalInterfacesBuilder_ = null;
logicalInterfaces_ = other.logicalInterfaces_;
bitField0_ = (bitField0_ & ~0x00000800);
logicalInterfacesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getLogicalInterfacesFieldBuilder()
: null;
} else {
logicalInterfacesBuilder_.addAllMessages(other.logicalInterfaces_);
}
}
}
if (!other.sshKeyNames_.isEmpty()) {
if (sshKeyNames_.isEmpty()) {
sshKeyNames_ = other.sshKeyNames_;
bitField0_ |= 0x00001000;
} else {
ensureSshKeyNamesIsMutable();
sshKeyNames_.addAll(other.sshKeyNames_);
}
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:
{
id_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
instanceType_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 32:
{
hyperthreading_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42:
{
osImage_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50:
{
input.readMessage(getClientNetworkFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 58:
{
input.readMessage(getPrivateNetworkFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
case 66:
{
userNote_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
break;
} // case 66
case 72:
{
accountNetworksEnabled_ = input.readBool();
bitField0_ |= 0x00000100;
break;
} // case 72
case 80:
{
networkConfig_ = input.readEnum();
bitField0_ |= 0x00000200;
break;
} // case 80
case 90:
{
networkTemplate_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000400;
break;
} // case 90
case 98:
{
com.google.cloud.baremetalsolution.v2.LogicalInterface m =
input.readMessage(
com.google.cloud.baremetalsolution.v2.LogicalInterface.parser(),
extensionRegistry);
if (logicalInterfacesBuilder_ == null) {
ensureLogicalInterfacesIsMutable();
logicalInterfaces_.add(m);
} else {
logicalInterfacesBuilder_.addMessage(m);
}
break;
} // case 98
case 106:
{
java.lang.String s = input.readStringRequireUtf8();
ensureSshKeyNamesIsMutable();
sshKeyNames_.add(s);
break;
} // case 106
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_ = "";
/**
*
*
*
* A transient unique identifier to idenfity an instance within an
* ProvisioningConfig request.
*
*
* string id = 2;
*
* @return The bytes for id.
*/
public com.google.protobuf.ByteString getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* A transient unique identifier to idenfity an instance within an
* ProvisioningConfig request.
*
*
* string id = 2;
*
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* A transient unique identifier to idenfity an instance within an
* ProvisioningConfig request.
*
*
* string id = 2;
*
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* A transient unique identifier to idenfity an instance within an
* ProvisioningConfig request.
*
*
* string id = 2;
*
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object instanceType_ = "";
/**
*
*
*
* If true networks can be from different projects of the same vendor account.
*
*
* bool account_networks_enabled = 9;
*
* @param value The accountNetworksEnabled to set.
* @return This builder for chaining.
*/
public Builder setAccountNetworksEnabled(boolean value) {
accountNetworksEnabled_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*
*
* If true networks can be from different projects of the same vendor account.
*
*
* bool account_networks_enabled = 9;
*
* @return This builder for chaining.
*/
public Builder clearAccountNetworksEnabled() {
bitField0_ = (bitField0_ & ~0x00000100);
accountNetworksEnabled_ = false;
onChanged();
return this;
}
private int networkConfig_ = 0;
/**
*
*
*
* The type of network configuration on the instance.
*
*
* .google.cloud.baremetalsolution.v2.InstanceConfig.NetworkConfig network_config = 10;
*
*
* @return The enum numeric value on the wire for networkConfig.
*/
@java.lang.Override
public int getNetworkConfigValue() {
return networkConfig_;
}
/**
*
*
*
* The type of network configuration on the instance.
*
*
* .google.cloud.baremetalsolution.v2.InstanceConfig.NetworkConfig network_config = 10;
*
*
* @param value The enum numeric value on the wire for networkConfig to set.
* @return This builder for chaining.
*/
public Builder setNetworkConfigValue(int value) {
networkConfig_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*
*
* The type of network configuration on the instance.
*
*
* .google.cloud.baremetalsolution.v2.InstanceConfig.NetworkConfig network_config = 10;
*
*
* @return The networkConfig.
*/
@java.lang.Override
public com.google.cloud.baremetalsolution.v2.InstanceConfig.NetworkConfig getNetworkConfig() {
com.google.cloud.baremetalsolution.v2.InstanceConfig.NetworkConfig result =
com.google.cloud.baremetalsolution.v2.InstanceConfig.NetworkConfig.forNumber(
networkConfig_);
return result == null
? com.google.cloud.baremetalsolution.v2.InstanceConfig.NetworkConfig.UNRECOGNIZED
: result;
}
/**
*
*
*
* The type of network configuration on the instance.
*
*
* .google.cloud.baremetalsolution.v2.InstanceConfig.NetworkConfig network_config = 10;
*
*
* @param value The networkConfig to set.
* @return This builder for chaining.
*/
public Builder setNetworkConfig(
com.google.cloud.baremetalsolution.v2.InstanceConfig.NetworkConfig value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
networkConfig_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* The type of network configuration on the instance.
*
* Server network template name. Filled if InstanceConfig.multivlan_config is
* true.
*
*
* string network_template = 11;
*
* @param value The bytes for networkTemplate to set.
* @return This builder for chaining.
*/
public Builder setNetworkTemplateBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
networkTemplate_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
private java.util.List
logicalInterfaces_ = java.util.Collections.emptyList();
private void ensureLogicalInterfacesIsMutable() {
if (!((bitField0_ & 0x00000800) != 0)) {
logicalInterfaces_ =
new java.util.ArrayList(
logicalInterfaces_);
bitField0_ |= 0x00000800;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.baremetalsolution.v2.LogicalInterface,
com.google.cloud.baremetalsolution.v2.LogicalInterface.Builder,
com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder>
logicalInterfacesBuilder_;
/**
*
*
*
* List of logical interfaces for the instance. The number of logical
* interfaces will be the same as number of hardware bond/nic on the chosen
* network template. Filled if InstanceConfig.multivlan_config is true.
*
* List of logical interfaces for the instance. The number of logical
* interfaces will be the same as number of hardware bond/nic on the chosen
* network template. Filled if InstanceConfig.multivlan_config is true.
*
* List of logical interfaces for the instance. The number of logical
* interfaces will be the same as number of hardware bond/nic on the chosen
* network template. Filled if InstanceConfig.multivlan_config is true.
*
* List of logical interfaces for the instance. The number of logical
* interfaces will be the same as number of hardware bond/nic on the chosen
* network template. Filled if InstanceConfig.multivlan_config is true.
*
*
* repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 12;
*
*/
public Builder setLogicalInterfaces(
int index, com.google.cloud.baremetalsolution.v2.LogicalInterface value) {
if (logicalInterfacesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLogicalInterfacesIsMutable();
logicalInterfaces_.set(index, value);
onChanged();
} else {
logicalInterfacesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* List of logical interfaces for the instance. The number of logical
* interfaces will be the same as number of hardware bond/nic on the chosen
* network template. Filled if InstanceConfig.multivlan_config is true.
*
* List of logical interfaces for the instance. The number of logical
* interfaces will be the same as number of hardware bond/nic on the chosen
* network template. Filled if InstanceConfig.multivlan_config is true.
*
* List of logical interfaces for the instance. The number of logical
* interfaces will be the same as number of hardware bond/nic on the chosen
* network template. Filled if InstanceConfig.multivlan_config is true.
*
*
* repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 12;
*
*/
public Builder addLogicalInterfaces(
int index, com.google.cloud.baremetalsolution.v2.LogicalInterface value) {
if (logicalInterfacesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLogicalInterfacesIsMutable();
logicalInterfaces_.add(index, value);
onChanged();
} else {
logicalInterfacesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* List of logical interfaces for the instance. The number of logical
* interfaces will be the same as number of hardware bond/nic on the chosen
* network template. Filled if InstanceConfig.multivlan_config is true.
*
* List of logical interfaces for the instance. The number of logical
* interfaces will be the same as number of hardware bond/nic on the chosen
* network template. Filled if InstanceConfig.multivlan_config is true.
*
* List of logical interfaces for the instance. The number of logical
* interfaces will be the same as number of hardware bond/nic on the chosen
* network template. Filled if InstanceConfig.multivlan_config is true.
*
* List of logical interfaces for the instance. The number of logical
* interfaces will be the same as number of hardware bond/nic on the chosen
* network template. Filled if InstanceConfig.multivlan_config is true.
*
* List of logical interfaces for the instance. The number of logical
* interfaces will be the same as number of hardware bond/nic on the chosen
* network template. Filled if InstanceConfig.multivlan_config is true.
*
* List of logical interfaces for the instance. The number of logical
* interfaces will be the same as number of hardware bond/nic on the chosen
* network template. Filled if InstanceConfig.multivlan_config is true.
*
* List of logical interfaces for the instance. The number of logical
* interfaces will be the same as number of hardware bond/nic on the chosen
* network template. Filled if InstanceConfig.multivlan_config is true.
*
* List of logical interfaces for the instance. The number of logical
* interfaces will be the same as number of hardware bond/nic on the chosen
* network template. Filled if InstanceConfig.multivlan_config is true.
*
* List of logical interfaces for the instance. The number of logical
* interfaces will be the same as number of hardware bond/nic on the chosen
* network template. Filled if InstanceConfig.multivlan_config is true.
*
* List of logical interfaces for the instance. The number of logical
* interfaces will be the same as number of hardware bond/nic on the chosen
* network template. Filled if InstanceConfig.multivlan_config is true.
*
* List of logical interfaces for the instance. The number of logical
* interfaces will be the same as number of hardware bond/nic on the chosen
* network template. Filled if InstanceConfig.multivlan_config is true.
*
* List of names of ssh keys used to provision the instance.
*
*
* repeated string ssh_key_names = 13;
*
* @return A list containing the sshKeyNames.
*/
public com.google.protobuf.ProtocolStringList getSshKeyNamesList() {
sshKeyNames_.makeImmutable();
return sshKeyNames_;
}
/**
*
*
*
* List of names of ssh keys used to provision the instance.
*
*
* repeated string ssh_key_names = 13;
*
* @return The count of sshKeyNames.
*/
public int getSshKeyNamesCount() {
return sshKeyNames_.size();
}
/**
*
*
*
* List of names of ssh keys used to provision the instance.
*
*
* repeated string ssh_key_names = 13;
*
* @param index The index of the element to return.
* @return The sshKeyNames at the given index.
*/
public java.lang.String getSshKeyNames(int index) {
return sshKeyNames_.get(index);
}
/**
*
*
*
* List of names of ssh keys used to provision the instance.
*
*
* repeated string ssh_key_names = 13;
*
* @param index The index of the value to return.
* @return The bytes of the sshKeyNames at the given index.
*/
public com.google.protobuf.ByteString getSshKeyNamesBytes(int index) {
return sshKeyNames_.getByteString(index);
}
/**
*
*
*
* List of names of ssh keys used to provision the instance.
*
*
* repeated string ssh_key_names = 13;
*
* @param index The index to set the value at.
* @param value The sshKeyNames to set.
* @return This builder for chaining.
*/
public Builder setSshKeyNames(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSshKeyNamesIsMutable();
sshKeyNames_.set(index, value);
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
*
*
* List of names of ssh keys used to provision the instance.
*
*
* repeated string ssh_key_names = 13;
*
* @param value The sshKeyNames to add.
* @return This builder for chaining.
*/
public Builder addSshKeyNames(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSshKeyNamesIsMutable();
sshKeyNames_.add(value);
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
*
*
* List of names of ssh keys used to provision the instance.
*
*
* repeated string ssh_key_names = 13;
*
* @param values The sshKeyNames to add.
* @return This builder for chaining.
*/
public Builder addAllSshKeyNames(java.lang.Iterable values) {
ensureSshKeyNamesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sshKeyNames_);
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
*
*
* List of names of ssh keys used to provision the instance.
*