com.google.cloud.filestore.v1beta1.Instance Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-filestore-v1beta1 Show documentation
Show all versions of proto-google-cloud-filestore-v1beta1 Show documentation
Proto library for google-cloud-filestore
/*
* 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/filestore/v1beta1/cloud_filestore_service.proto
// Protobuf Java Version: 3.25.2
package com.google.cloud.filestore.v1beta1;
/**
*
*
*
* A Filestore instance.
*
*
* Protobuf type {@code google.cloud.filestore.v1beta1.Instance}
*/
public final class Instance extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.filestore.v1beta1.Instance)
InstanceOrBuilder {
private static final long serialVersionUID = 0L;
// Use Instance.newBuilder() to construct.
private Instance(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Instance() {
name_ = "";
description_ = "";
state_ = 0;
statusMessage_ = "";
tier_ = 0;
fileShares_ = java.util.Collections.emptyList();
networks_ = java.util.Collections.emptyList();
etag_ = "";
kmsKeyName_ = "";
suspensionReasons_ = java.util.Collections.emptyList();
protocol_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Instance();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto
.internal_static_google_cloud_filestore_v1beta1_Instance_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 9:
return internalGetLabels();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto
.internal_static_google_cloud_filestore_v1beta1_Instance_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.filestore.v1beta1.Instance.class,
com.google.cloud.filestore.v1beta1.Instance.Builder.class);
}
/**
*
*
*
* The instance state.
*
*
* Protobuf enum {@code google.cloud.filestore.v1beta1.Instance.State}
*/
public enum State implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* State not set.
*
*
* STATE_UNSPECIFIED = 0;
*/
STATE_UNSPECIFIED(0),
/**
*
*
*
* The instance is being created.
*
*
* CREATING = 1;
*/
CREATING(1),
/**
*
*
*
* The instance is available for use.
*
*
* READY = 2;
*/
READY(2),
/**
*
*
*
* Work is being done on the instance. You can get further details from the
* `statusMessage` field of the `Instance` resource.
*
*
* REPAIRING = 3;
*/
REPAIRING(3),
/**
*
*
*
* The instance is shutting down.
*
*
* DELETING = 4;
*/
DELETING(4),
/**
*
*
*
* The instance is experiencing an issue and might be unusable. You can get
* further details from the `statusMessage` field of the `Instance`
* resource.
*
*
* ERROR = 6;
*/
ERROR(6),
/**
*
*
*
* The instance is restoring a snapshot or backup to an existing file share
* and may be unusable during this time.
*
*
* RESTORING = 7;
*/
RESTORING(7),
/**
*
*
*
* The instance is suspended. You can get further details from
* the `suspension_reasons` field of the `Instance` resource.
*
*
* SUSPENDED = 8;
*/
SUSPENDED(8),
/**
*
*
*
* The instance is reverting to a snapshot.
*
*
* REVERTING = 9;
*/
REVERTING(9),
/**
*
*
*
* The instance is in the process of becoming suspended.
*
*
* SUSPENDING = 10;
*/
SUSPENDING(10),
/**
*
*
*
* The instance is in the process of becoming active.
*
*
* RESUMING = 11;
*/
RESUMING(11),
UNRECOGNIZED(-1),
;
/**
*
*
*
* State not set.
*
*
* STATE_UNSPECIFIED = 0;
*/
public static final int STATE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* The instance is being created.
*
*
* CREATING = 1;
*/
public static final int CREATING_VALUE = 1;
/**
*
*
*
* The instance is available for use.
*
*
* READY = 2;
*/
public static final int READY_VALUE = 2;
/**
*
*
*
* Work is being done on the instance. You can get further details from the
* `statusMessage` field of the `Instance` resource.
*
*
* REPAIRING = 3;
*/
public static final int REPAIRING_VALUE = 3;
/**
*
*
*
* The instance is shutting down.
*
*
* DELETING = 4;
*/
public static final int DELETING_VALUE = 4;
/**
*
*
*
* The instance is experiencing an issue and might be unusable. You can get
* further details from the `statusMessage` field of the `Instance`
* resource.
*
*
* ERROR = 6;
*/
public static final int ERROR_VALUE = 6;
/**
*
*
*
* The instance is restoring a snapshot or backup to an existing file share
* and may be unusable during this time.
*
*
* RESTORING = 7;
*/
public static final int RESTORING_VALUE = 7;
/**
*
*
*
* The instance is suspended. You can get further details from
* the `suspension_reasons` field of the `Instance` resource.
*
*
* SUSPENDED = 8;
*/
public static final int SUSPENDED_VALUE = 8;
/**
*
*
*
* The instance is reverting to a snapshot.
*
*
* REVERTING = 9;
*/
public static final int REVERTING_VALUE = 9;
/**
*
*
*
* The instance is in the process of becoming suspended.
*
*
* SUSPENDING = 10;
*/
public static final int SUSPENDING_VALUE = 10;
/**
*
*
*
* The instance is in the process of becoming active.
*
*
* RESUMING = 11;
*/
public static final int RESUMING_VALUE = 11;
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 CREATING;
case 2:
return READY;
case 3:
return REPAIRING;
case 4:
return DELETING;
case 6:
return ERROR;
case 7:
return RESTORING;
case 8:
return SUSPENDED;
case 9:
return REVERTING;
case 10:
return SUSPENDING;
case 11:
return RESUMING;
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.filestore.v1beta1.Instance.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.filestore.v1beta1.Instance.State)
}
/**
*
*
*
* Available service tiers.
*
*
* Protobuf enum {@code google.cloud.filestore.v1beta1.Instance.Tier}
*/
public enum Tier implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* Not set.
*
*
* TIER_UNSPECIFIED = 0;
*/
TIER_UNSPECIFIED(0),
/**
*
*
*
* STANDARD tier. BASIC_HDD is the preferred term for this tier.
*
*
* STANDARD = 1;
*/
STANDARD(1),
/**
*
*
*
* PREMIUM tier. BASIC_SSD is the preferred term for this tier.
*
*
* PREMIUM = 2;
*/
PREMIUM(2),
/**
*
*
*
* BASIC instances offer a maximum capacity of 63.9 TB.
* BASIC_HDD is an alias for STANDARD Tier, offering economical
* performance backed by HDD.
*
*
* BASIC_HDD = 3;
*/
BASIC_HDD(3),
/**
*
*
*
* BASIC instances offer a maximum capacity of 63.9 TB.
* BASIC_SSD is an alias for PREMIUM Tier, and offers improved
* performance backed by SSD.
*
*
* BASIC_SSD = 4;
*/
BASIC_SSD(4),
/**
*
*
*
* HIGH_SCALE instances offer expanded capacity and performance scaling
* capabilities.
*
*
* HIGH_SCALE_SSD = 6;
*/
HIGH_SCALE_SSD(6),
/**
*
*
*
* ENTERPRISE instances offer the features and availability needed for
* mission-critical workloads.
*
*
* ENTERPRISE = 7;
*/
ENTERPRISE(7),
/**
*
*
*
* ZONAL instances offer expanded capacity and performance scaling
* capabilities.
*
*
* ZONAL = 8;
*/
ZONAL(8),
/**
*
*
*
* REGIONAL instances offer the features and availability needed for
* mission-critical workloads.
*
*
* REGIONAL = 9;
*/
REGIONAL(9),
UNRECOGNIZED(-1),
;
/**
*
*
*
* Not set.
*
*
* TIER_UNSPECIFIED = 0;
*/
public static final int TIER_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* STANDARD tier. BASIC_HDD is the preferred term for this tier.
*
*
* STANDARD = 1;
*/
public static final int STANDARD_VALUE = 1;
/**
*
*
*
* PREMIUM tier. BASIC_SSD is the preferred term for this tier.
*
*
* PREMIUM = 2;
*/
public static final int PREMIUM_VALUE = 2;
/**
*
*
*
* BASIC instances offer a maximum capacity of 63.9 TB.
* BASIC_HDD is an alias for STANDARD Tier, offering economical
* performance backed by HDD.
*
*
* BASIC_HDD = 3;
*/
public static final int BASIC_HDD_VALUE = 3;
/**
*
*
*
* BASIC instances offer a maximum capacity of 63.9 TB.
* BASIC_SSD is an alias for PREMIUM Tier, and offers improved
* performance backed by SSD.
*
*
* BASIC_SSD = 4;
*/
public static final int BASIC_SSD_VALUE = 4;
/**
*
*
*
* HIGH_SCALE instances offer expanded capacity and performance scaling
* capabilities.
*
*
* HIGH_SCALE_SSD = 6;
*/
public static final int HIGH_SCALE_SSD_VALUE = 6;
/**
*
*
*
* ENTERPRISE instances offer the features and availability needed for
* mission-critical workloads.
*
*
* ENTERPRISE = 7;
*/
public static final int ENTERPRISE_VALUE = 7;
/**
*
*
*
* ZONAL instances offer expanded capacity and performance scaling
* capabilities.
*
*
* ZONAL = 8;
*/
public static final int ZONAL_VALUE = 8;
/**
*
*
*
* REGIONAL instances offer the features and availability needed for
* mission-critical workloads.
*
*
* REGIONAL = 9;
*/
public static final int REGIONAL_VALUE = 9;
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 Tier 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 Tier forNumber(int value) {
switch (value) {
case 0:
return TIER_UNSPECIFIED;
case 1:
return STANDARD;
case 2:
return PREMIUM;
case 3:
return BASIC_HDD;
case 4:
return BASIC_SSD;
case 6:
return HIGH_SCALE_SSD;
case 7:
return ENTERPRISE;
case 8:
return ZONAL;
case 9:
return REGIONAL;
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 Tier findValueByNumber(int number) {
return Tier.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.filestore.v1beta1.Instance.getDescriptor().getEnumTypes().get(1);
}
private static final Tier[] VALUES = values();
public static Tier 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 Tier(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.filestore.v1beta1.Instance.Tier)
}
/**
*
*
*
* SuspensionReason contains the possible reasons for a suspension.
*
*
* Protobuf enum {@code google.cloud.filestore.v1beta1.Instance.SuspensionReason}
*/
public enum SuspensionReason implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* Not set.
*
*
* SUSPENSION_REASON_UNSPECIFIED = 0;
*/
SUSPENSION_REASON_UNSPECIFIED(0),
/**
*
*
*
* The KMS key used by the instance is either revoked or denied access to.
*
*
* KMS_KEY_ISSUE = 1;
*/
KMS_KEY_ISSUE(1),
UNRECOGNIZED(-1),
;
/**
*
*
*
* Not set.
*
*
* SUSPENSION_REASON_UNSPECIFIED = 0;
*/
public static final int SUSPENSION_REASON_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* The KMS key used by the instance is either revoked or denied access to.
*
*
* KMS_KEY_ISSUE = 1;
*/
public static final int KMS_KEY_ISSUE_VALUE = 1;
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 SuspensionReason 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 SuspensionReason forNumber(int value) {
switch (value) {
case 0:
return SUSPENSION_REASON_UNSPECIFIED;
case 1:
return KMS_KEY_ISSUE;
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 SuspensionReason findValueByNumber(int number) {
return SuspensionReason.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.filestore.v1beta1.Instance.getDescriptor().getEnumTypes().get(2);
}
private static final SuspensionReason[] VALUES = values();
public static SuspensionReason 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 SuspensionReason(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.filestore.v1beta1.Instance.SuspensionReason)
}
/**
*
*
*
* File access protocol.
*
*
* Protobuf enum {@code google.cloud.filestore.v1beta1.Instance.FileProtocol}
*/
public enum FileProtocol implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* FILE_PROTOCOL_UNSPECIFIED serves a "not set" default value when
* a FileProtocol is a separate field in a message.
*
*
* FILE_PROTOCOL_UNSPECIFIED = 0;
*/
FILE_PROTOCOL_UNSPECIFIED(0),
/**
*
*
*
* NFS 3.0.
*
*
* NFS_V3 = 1;
*/
NFS_V3(1),
/**
*
*
*
* NFS 4.1.
*
*
* NFS_V4_1 = 2;
*/
NFS_V4_1(2),
UNRECOGNIZED(-1),
;
/**
*
*
*
* FILE_PROTOCOL_UNSPECIFIED serves a "not set" default value when
* a FileProtocol is a separate field in a message.
*
*
* FILE_PROTOCOL_UNSPECIFIED = 0;
*/
public static final int FILE_PROTOCOL_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* NFS 3.0.
*
*
* NFS_V3 = 1;
*/
public static final int NFS_V3_VALUE = 1;
/**
*
*
*
* NFS 4.1.
*
*
* NFS_V4_1 = 2;
*/
public static final int NFS_V4_1_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 FileProtocol 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 FileProtocol forNumber(int value) {
switch (value) {
case 0:
return FILE_PROTOCOL_UNSPECIFIED;
case 1:
return NFS_V3;
case 2:
return NFS_V4_1;
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 FileProtocol findValueByNumber(int number) {
return FileProtocol.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.filestore.v1beta1.Instance.getDescriptor().getEnumTypes().get(3);
}
private static final FileProtocol[] VALUES = values();
public static FileProtocol 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 FileProtocol(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.filestore.v1beta1.Instance.FileProtocol)
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* Output only. The resource name of the instance, in the format
* `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
*
*
* 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 resource name of the instance, in the format
* `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
*
*
* 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 DESCRIPTION_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object description_ = "";
/**
*
*
*
* The description of the instance (2048 characters or less).
*
*
* string description = 2;
*
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
}
}
/**
*
*
*
* The description of the instance (2048 characters or less).
*
*
* string description = 2;
*
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATE_FIELD_NUMBER = 5;
private int state_ = 0;
/**
*
*
*
* Output only. The instance state.
*
*
*
* .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.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. The instance state.
*
*
*
* .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.filestore.v1beta1.Instance.State getState() {
com.google.cloud.filestore.v1beta1.Instance.State result =
com.google.cloud.filestore.v1beta1.Instance.State.forNumber(state_);
return result == null ? com.google.cloud.filestore.v1beta1.Instance.State.UNRECOGNIZED : result;
}
public static final int STATUS_MESSAGE_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object statusMessage_ = "";
/**
*
*
*
* Output only. Additional information about the instance state, if available.
*
*
* string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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;
}
}
/**
*
*
*
* Output only. Additional information about the instance state, if available.
*
*
* string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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 CREATE_TIME_FIELD_NUMBER = 7;
private com.google.protobuf.Timestamp createTime_;
/**
*
*
*
* Output only. The time when the instance was created.
*
*
* .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the createTime field is set.
*/
@java.lang.Override
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Output only. The time when the instance was created.
*
*
* .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The createTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreateTime() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
/**
*
*
*
* Output only. The time when the instance was created.
*
*
* .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
public static final int TIER_FIELD_NUMBER = 8;
private int tier_ = 0;
/**
*
*
*
* The service tier of the instance.
*
*
* .google.cloud.filestore.v1beta1.Instance.Tier tier = 8;
*
* @return The enum numeric value on the wire for tier.
*/
@java.lang.Override
public int getTierValue() {
return tier_;
}
/**
*
*
*
* The service tier of the instance.
*
*
* .google.cloud.filestore.v1beta1.Instance.Tier tier = 8;
*
* @return The tier.
*/
@java.lang.Override
public com.google.cloud.filestore.v1beta1.Instance.Tier getTier() {
com.google.cloud.filestore.v1beta1.Instance.Tier result =
com.google.cloud.filestore.v1beta1.Instance.Tier.forNumber(tier_);
return result == null ? com.google.cloud.filestore.v1beta1.Instance.Tier.UNRECOGNIZED : result;
}
public static final int LABELS_FIELD_NUMBER = 9;
private static final class LabelsDefaultEntryHolder {
static final com.google.protobuf.MapEntry defaultEntry =
com.google.protobuf.MapEntry.newDefaultInstance(
com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto
.internal_static_google_cloud_filestore_v1beta1_Instance_LabelsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField labels_;
private com.google.protobuf.MapField internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
*
*
* Resource labels to represent user provided metadata.
*
*
* map<string, string> labels = 9;
*/
@java.lang.Override
public boolean containsLabels(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetLabels().getMap().containsKey(key);
}
/** Use {@link #getLabelsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
*
*
* Resource labels to represent user provided metadata.
*
*
* map<string, string> labels = 9;
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
*
*
* Resource labels to represent user provided metadata.
*
*
* map<string, string> labels = 9;
*/
@java.lang.Override
public /* nullable */ java.lang.String getLabelsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* Resource labels to represent user provided metadata.
*
*
* map<string, string> labels = 9;
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int FILE_SHARES_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private java.util.List fileShares_;
/**
*
*
*
* File system shares on the instance.
* For this version, only a single file share is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
*/
@java.lang.Override
public java.util.List getFileSharesList() {
return fileShares_;
}
/**
*
*
*
* File system shares on the instance.
* For this version, only a single file share is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
*/
@java.lang.Override
public java.util.List extends com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder>
getFileSharesOrBuilderList() {
return fileShares_;
}
/**
*
*
*
* File system shares on the instance.
* For this version, only a single file share is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
*/
@java.lang.Override
public int getFileSharesCount() {
return fileShares_.size();
}
/**
*
*
*
* File system shares on the instance.
* For this version, only a single file share is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
*/
@java.lang.Override
public com.google.cloud.filestore.v1beta1.FileShareConfig getFileShares(int index) {
return fileShares_.get(index);
}
/**
*
*
*
* File system shares on the instance.
* For this version, only a single file share is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
*/
@java.lang.Override
public com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder getFileSharesOrBuilder(
int index) {
return fileShares_.get(index);
}
public static final int NETWORKS_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private java.util.List networks_;
/**
*
*
*
* VPC networks to which the instance is connected.
* For this version, only a single network is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
*/
@java.lang.Override
public java.util.List getNetworksList() {
return networks_;
}
/**
*
*
*
* VPC networks to which the instance is connected.
* For this version, only a single network is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
*/
@java.lang.Override
public java.util.List extends com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder>
getNetworksOrBuilderList() {
return networks_;
}
/**
*
*
*
* VPC networks to which the instance is connected.
* For this version, only a single network is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
*/
@java.lang.Override
public int getNetworksCount() {
return networks_.size();
}
/**
*
*
*
* VPC networks to which the instance is connected.
* For this version, only a single network is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
*/
@java.lang.Override
public com.google.cloud.filestore.v1beta1.NetworkConfig getNetworks(int index) {
return networks_.get(index);
}
/**
*
*
*
* VPC networks to which the instance is connected.
* For this version, only a single network is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
*/
@java.lang.Override
public com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder getNetworksOrBuilder(int index) {
return networks_.get(index);
}
public static final int ETAG_FIELD_NUMBER = 12;
@SuppressWarnings("serial")
private volatile java.lang.Object etag_ = "";
/**
*
*
*
* Server-specified ETag for the instance resource to prevent simultaneous
* updates from overwriting each other.
*
*
* string etag = 12;
*
* @return The etag.
*/
@java.lang.Override
public java.lang.String getEtag() {
java.lang.Object ref = etag_;
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();
etag_ = s;
return s;
}
}
/**
*
*
*
* Server-specified ETag for the instance resource to prevent simultaneous
* updates from overwriting each other.
*
*
* string etag = 12;
*
* @return The bytes for etag.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEtagBytes() {
java.lang.Object ref = etag_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
etag_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SATISFIES_PZS_FIELD_NUMBER = 13;
private com.google.protobuf.BoolValue satisfiesPzs_;
/**
*
*
*
* Output only. Reserved for future use.
*
*
*
* .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the satisfiesPzs field is set.
*/
@java.lang.Override
public boolean hasSatisfiesPzs() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Output only. Reserved for future use.
*
*
*
* .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The satisfiesPzs.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getSatisfiesPzs() {
return satisfiesPzs_ == null
? com.google.protobuf.BoolValue.getDefaultInstance()
: satisfiesPzs_;
}
/**
*
*
*
* Output only. Reserved for future use.
*
*
*
* .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() {
return satisfiesPzs_ == null
? com.google.protobuf.BoolValue.getDefaultInstance()
: satisfiesPzs_;
}
public static final int SATISFIES_PZI_FIELD_NUMBER = 26;
private boolean satisfiesPzi_ = false;
/**
*
*
*
* Output only. Reserved for future use.
*
*
* bool satisfies_pzi = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The satisfiesPzi.
*/
@java.lang.Override
public boolean getSatisfiesPzi() {
return satisfiesPzi_;
}
public static final int KMS_KEY_NAME_FIELD_NUMBER = 14;
@SuppressWarnings("serial")
private volatile java.lang.Object kmsKeyName_ = "";
/**
*
*
*
* KMS key name used for data encryption.
*
*
* string kms_key_name = 14;
*
* @return The kmsKeyName.
*/
@java.lang.Override
public java.lang.String getKmsKeyName() {
java.lang.Object ref = kmsKeyName_;
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();
kmsKeyName_ = s;
return s;
}
}
/**
*
*
*
* KMS key name used for data encryption.
*
*
* string kms_key_name = 14;
*
* @return The bytes for kmsKeyName.
*/
@java.lang.Override
public com.google.protobuf.ByteString getKmsKeyNameBytes() {
java.lang.Object ref = kmsKeyName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
kmsKeyName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SUSPENSION_REASONS_FIELD_NUMBER = 15;
@SuppressWarnings("serial")
private java.util.List suspensionReasons_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.cloud.filestore.v1beta1.Instance.SuspensionReason>
suspensionReasons_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.cloud.filestore.v1beta1.Instance.SuspensionReason>() {
public com.google.cloud.filestore.v1beta1.Instance.SuspensionReason convert(
java.lang.Integer from) {
com.google.cloud.filestore.v1beta1.Instance.SuspensionReason result =
com.google.cloud.filestore.v1beta1.Instance.SuspensionReason.forNumber(from);
return result == null
? com.google.cloud.filestore.v1beta1.Instance.SuspensionReason.UNRECOGNIZED
: result;
}
};
/**
*
*
*
* Output only. Field indicates all the reasons the instance is in "SUSPENDED"
* state.
*
*
*
* repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return A list containing the suspensionReasons.
*/
@java.lang.Override
public java.util.List
getSuspensionReasonsList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.google.cloud.filestore.v1beta1.Instance.SuspensionReason>(
suspensionReasons_, suspensionReasons_converter_);
}
/**
*
*
*
* Output only. Field indicates all the reasons the instance is in "SUSPENDED"
* state.
*
*
*
* repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The count of suspensionReasons.
*/
@java.lang.Override
public int getSuspensionReasonsCount() {
return suspensionReasons_.size();
}
/**
*
*
*
* Output only. Field indicates all the reasons the instance is in "SUSPENDED"
* state.
*
*
*
* repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param index The index of the element to return.
* @return The suspensionReasons at the given index.
*/
@java.lang.Override
public com.google.cloud.filestore.v1beta1.Instance.SuspensionReason getSuspensionReasons(
int index) {
return suspensionReasons_converter_.convert(suspensionReasons_.get(index));
}
/**
*
*
*
* Output only. Field indicates all the reasons the instance is in "SUSPENDED"
* state.
*
*
*
* repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return A list containing the enum numeric values on the wire for suspensionReasons.
*/
@java.lang.Override
public java.util.List getSuspensionReasonsValueList() {
return suspensionReasons_;
}
/**
*
*
*
* Output only. Field indicates all the reasons the instance is in "SUSPENDED"
* state.
*
*
*
* repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param index The index of the value to return.
* @return The enum numeric value on the wire of suspensionReasons at the given index.
*/
@java.lang.Override
public int getSuspensionReasonsValue(int index) {
return suspensionReasons_.get(index);
}
private int suspensionReasonsMemoizedSerializedSize;
public static final int MAX_CAPACITY_GB_FIELD_NUMBER = 16;
private long maxCapacityGb_ = 0L;
/**
*
*
*
* Output only. The max capacity of the instance.
*
*
* int64 max_capacity_gb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The maxCapacityGb.
*/
@java.lang.Override
public long getMaxCapacityGb() {
return maxCapacityGb_;
}
public static final int CAPACITY_STEP_SIZE_GB_FIELD_NUMBER = 17;
private long capacityStepSizeGb_ = 0L;
/**
*
*
*
* Output only. The increase/decrease capacity step size.
*
*
* int64 capacity_step_size_gb = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The capacityStepSizeGb.
*/
@java.lang.Override
public long getCapacityStepSizeGb() {
return capacityStepSizeGb_;
}
public static final int MAX_SHARE_COUNT_FIELD_NUMBER = 18;
private long maxShareCount_ = 0L;
/**
*
*
*
* The max number of shares allowed.
*
*
* int64 max_share_count = 18;
*
* @return The maxShareCount.
*/
@java.lang.Override
public long getMaxShareCount() {
return maxShareCount_;
}
public static final int CAPACITY_GB_FIELD_NUMBER = 19;
private long capacityGb_ = 0L;
/**
*
*
*
* The storage capacity of the instance in gigabytes (GB = 1024^3 bytes).
* This capacity can be increased up to `max_capacity_gb` GB in multipliers
* of `capacity_step_size_gb` GB.
*
*
* int64 capacity_gb = 19;
*
* @return The capacityGb.
*/
@java.lang.Override
public long getCapacityGb() {
return capacityGb_;
}
public static final int MULTI_SHARE_ENABLED_FIELD_NUMBER = 20;
private boolean multiShareEnabled_ = false;
/**
*
*
*
* Indicates whether this instance uses a multi-share configuration with which
* it can have more than one file-share or none at all. File-shares are added,
* updated and removed through the separate file-share APIs.
*
*
* bool multi_share_enabled = 20;
*
* @return The multiShareEnabled.
*/
@java.lang.Override
public boolean getMultiShareEnabled() {
return multiShareEnabled_;
}
public static final int PROTOCOL_FIELD_NUMBER = 21;
private int protocol_ = 0;
/**
*
*
*
* Immutable. The protocol indicates the access protocol for all shares in the
* instance. This field is immutable and it cannot be changed after the
* instance has been created. Default value: `NFS_V3`.
*
*
*
* .google.cloud.filestore.v1beta1.Instance.FileProtocol protocol = 21 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The enum numeric value on the wire for protocol.
*/
@java.lang.Override
public int getProtocolValue() {
return protocol_;
}
/**
*
*
*
* Immutable. The protocol indicates the access protocol for all shares in the
* instance. This field is immutable and it cannot be changed after the
* instance has been created. Default value: `NFS_V3`.
*
*
*
* .google.cloud.filestore.v1beta1.Instance.FileProtocol protocol = 21 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The protocol.
*/
@java.lang.Override
public com.google.cloud.filestore.v1beta1.Instance.FileProtocol getProtocol() {
com.google.cloud.filestore.v1beta1.Instance.FileProtocol result =
com.google.cloud.filestore.v1beta1.Instance.FileProtocol.forNumber(protocol_);
return result == null
? com.google.cloud.filestore.v1beta1.Instance.FileProtocol.UNRECOGNIZED
: result;
}
public static final int DIRECTORY_SERVICES_FIELD_NUMBER = 24;
private com.google.cloud.filestore.v1beta1.DirectoryServicesConfig directoryServices_;
/**
*
*
*
* Directory Services configuration for Kerberos-based authentication.
* Should only be set if protocol is "NFS_V4_1".
*
*
* .google.cloud.filestore.v1beta1.DirectoryServicesConfig directory_services = 24;
*
* @return Whether the directoryServices field is set.
*/
@java.lang.Override
public boolean hasDirectoryServices() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Directory Services configuration for Kerberos-based authentication.
* Should only be set if protocol is "NFS_V4_1".
*
*
* .google.cloud.filestore.v1beta1.DirectoryServicesConfig directory_services = 24;
*
* @return The directoryServices.
*/
@java.lang.Override
public com.google.cloud.filestore.v1beta1.DirectoryServicesConfig getDirectoryServices() {
return directoryServices_ == null
? com.google.cloud.filestore.v1beta1.DirectoryServicesConfig.getDefaultInstance()
: directoryServices_;
}
/**
*
*
*
* Directory Services configuration for Kerberos-based authentication.
* Should only be set if protocol is "NFS_V4_1".
*
*
* .google.cloud.filestore.v1beta1.DirectoryServicesConfig directory_services = 24;
*/
@java.lang.Override
public com.google.cloud.filestore.v1beta1.DirectoryServicesConfigOrBuilder
getDirectoryServicesOrBuilder() {
return directoryServices_ == null
? com.google.cloud.filestore.v1beta1.DirectoryServicesConfig.getDefaultInstance()
: directoryServices_;
}
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 {
getSerializedSize();
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
}
if (state_ != com.google.cloud.filestore.v1beta1.Instance.State.STATE_UNSPECIFIED.getNumber()) {
output.writeEnum(5, state_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, statusMessage_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(7, getCreateTime());
}
if (tier_ != com.google.cloud.filestore.v1beta1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) {
output.writeEnum(8, tier_);
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9);
for (int i = 0; i < fileShares_.size(); i++) {
output.writeMessage(10, fileShares_.get(i));
}
for (int i = 0; i < networks_.size(); i++) {
output.writeMessage(11, networks_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, etag_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(13, getSatisfiesPzs());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, kmsKeyName_);
}
if (getSuspensionReasonsList().size() > 0) {
output.writeUInt32NoTag(122);
output.writeUInt32NoTag(suspensionReasonsMemoizedSerializedSize);
}
for (int i = 0; i < suspensionReasons_.size(); i++) {
output.writeEnumNoTag(suspensionReasons_.get(i));
}
if (maxCapacityGb_ != 0L) {
output.writeInt64(16, maxCapacityGb_);
}
if (capacityStepSizeGb_ != 0L) {
output.writeInt64(17, capacityStepSizeGb_);
}
if (maxShareCount_ != 0L) {
output.writeInt64(18, maxShareCount_);
}
if (capacityGb_ != 0L) {
output.writeInt64(19, capacityGb_);
}
if (multiShareEnabled_ != false) {
output.writeBool(20, multiShareEnabled_);
}
if (protocol_
!= com.google.cloud.filestore.v1beta1.Instance.FileProtocol.FILE_PROTOCOL_UNSPECIFIED
.getNumber()) {
output.writeEnum(21, protocol_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(24, getDirectoryServices());
}
if (satisfiesPzi_ != false) {
output.writeBool(26, satisfiesPzi_);
}
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(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
}
if (state_ != com.google.cloud.filestore.v1beta1.Instance.State.STATE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, statusMessage_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime());
}
if (tier_ != com.google.cloud.filestore.v1beta1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, tier_);
}
for (java.util.Map.Entry entry :
internalGetLabels().getMap().entrySet()) {
com.google.protobuf.MapEntry labels__ =
LabelsDefaultEntryHolder.defaultEntry
.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__);
}
for (int i = 0; i < fileShares_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, fileShares_.get(i));
}
for (int i = 0; i < networks_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, networks_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, etag_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getSatisfiesPzs());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, kmsKeyName_);
}
{
int dataSize = 0;
for (int i = 0; i < suspensionReasons_.size(); i++) {
dataSize +=
com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(suspensionReasons_.get(i));
}
size += dataSize;
if (!getSuspensionReasonsList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
}
suspensionReasonsMemoizedSerializedSize = dataSize;
}
if (maxCapacityGb_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(16, maxCapacityGb_);
}
if (capacityStepSizeGb_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(17, capacityStepSizeGb_);
}
if (maxShareCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(18, maxShareCount_);
}
if (capacityGb_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(19, capacityGb_);
}
if (multiShareEnabled_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, multiShareEnabled_);
}
if (protocol_
!= com.google.cloud.filestore.v1beta1.Instance.FileProtocol.FILE_PROTOCOL_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(21, protocol_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getDirectoryServices());
}
if (satisfiesPzi_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(26, satisfiesPzi_);
}
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.filestore.v1beta1.Instance)) {
return super.equals(obj);
}
com.google.cloud.filestore.v1beta1.Instance other =
(com.google.cloud.filestore.v1beta1.Instance) obj;
if (!getName().equals(other.getName())) return false;
if (!getDescription().equals(other.getDescription())) return false;
if (state_ != other.state_) return false;
if (!getStatusMessage().equals(other.getStatusMessage())) return false;
if (hasCreateTime() != other.hasCreateTime()) return false;
if (hasCreateTime()) {
if (!getCreateTime().equals(other.getCreateTime())) return false;
}
if (tier_ != other.tier_) return false;
if (!internalGetLabels().equals(other.internalGetLabels())) return false;
if (!getFileSharesList().equals(other.getFileSharesList())) return false;
if (!getNetworksList().equals(other.getNetworksList())) return false;
if (!getEtag().equals(other.getEtag())) return false;
if (hasSatisfiesPzs() != other.hasSatisfiesPzs()) return false;
if (hasSatisfiesPzs()) {
if (!getSatisfiesPzs().equals(other.getSatisfiesPzs())) return false;
}
if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false;
if (!getKmsKeyName().equals(other.getKmsKeyName())) return false;
if (!suspensionReasons_.equals(other.suspensionReasons_)) return false;
if (getMaxCapacityGb() != other.getMaxCapacityGb()) return false;
if (getCapacityStepSizeGb() != other.getCapacityStepSizeGb()) return false;
if (getMaxShareCount() != other.getMaxShareCount()) return false;
if (getCapacityGb() != other.getCapacityGb()) return false;
if (getMultiShareEnabled() != other.getMultiShareEnabled()) return false;
if (protocol_ != other.protocol_) return false;
if (hasDirectoryServices() != other.hasDirectoryServices()) return false;
if (hasDirectoryServices()) {
if (!getDirectoryServices().equals(other.getDirectoryServices())) 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) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getStatusMessage().hashCode();
if (hasCreateTime()) {
hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getCreateTime().hashCode();
}
hash = (37 * hash) + TIER_FIELD_NUMBER;
hash = (53 * hash) + tier_;
if (!internalGetLabels().getMap().isEmpty()) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
if (getFileSharesCount() > 0) {
hash = (37 * hash) + FILE_SHARES_FIELD_NUMBER;
hash = (53 * hash) + getFileSharesList().hashCode();
}
if (getNetworksCount() > 0) {
hash = (37 * hash) + NETWORKS_FIELD_NUMBER;
hash = (53 * hash) + getNetworksList().hashCode();
}
hash = (37 * hash) + ETAG_FIELD_NUMBER;
hash = (53 * hash) + getEtag().hashCode();
if (hasSatisfiesPzs()) {
hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER;
hash = (53 * hash) + getSatisfiesPzs().hashCode();
}
hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi());
hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getKmsKeyName().hashCode();
if (getSuspensionReasonsCount() > 0) {
hash = (37 * hash) + SUSPENSION_REASONS_FIELD_NUMBER;
hash = (53 * hash) + suspensionReasons_.hashCode();
}
hash = (37 * hash) + MAX_CAPACITY_GB_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxCapacityGb());
hash = (37 * hash) + CAPACITY_STEP_SIZE_GB_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCapacityStepSizeGb());
hash = (37 * hash) + MAX_SHARE_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxShareCount());
hash = (37 * hash) + CAPACITY_GB_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCapacityGb());
hash = (37 * hash) + MULTI_SHARE_ENABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMultiShareEnabled());
hash = (37 * hash) + PROTOCOL_FIELD_NUMBER;
hash = (53 * hash) + protocol_;
if (hasDirectoryServices()) {
hash = (37 * hash) + DIRECTORY_SERVICES_FIELD_NUMBER;
hash = (53 * hash) + getDirectoryServices().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.filestore.v1beta1.Instance parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.filestore.v1beta1.Instance 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.filestore.v1beta1.Instance parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.filestore.v1beta1.Instance 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.filestore.v1beta1.Instance parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.filestore.v1beta1.Instance parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.filestore.v1beta1.Instance parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.filestore.v1beta1.Instance 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.filestore.v1beta1.Instance parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.filestore.v1beta1.Instance 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.filestore.v1beta1.Instance parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.filestore.v1beta1.Instance 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.filestore.v1beta1.Instance 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 Filestore instance.
*
*
* Protobuf type {@code google.cloud.filestore.v1beta1.Instance}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.filestore.v1beta1.Instance)
com.google.cloud.filestore.v1beta1.InstanceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto
.internal_static_google_cloud_filestore_v1beta1_Instance_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 9:
return internalGetLabels();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 9:
return internalGetMutableLabels();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto
.internal_static_google_cloud_filestore_v1beta1_Instance_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.filestore.v1beta1.Instance.class,
com.google.cloud.filestore.v1beta1.Instance.Builder.class);
}
// Construct using com.google.cloud.filestore.v1beta1.Instance.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getCreateTimeFieldBuilder();
getFileSharesFieldBuilder();
getNetworksFieldBuilder();
getSatisfiesPzsFieldBuilder();
getDirectoryServicesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
description_ = "";
state_ = 0;
statusMessage_ = "";
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
tier_ = 0;
internalGetMutableLabels().clear();
if (fileSharesBuilder_ == null) {
fileShares_ = java.util.Collections.emptyList();
} else {
fileShares_ = null;
fileSharesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
if (networksBuilder_ == null) {
networks_ = java.util.Collections.emptyList();
} else {
networks_ = null;
networksBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
etag_ = "";
satisfiesPzs_ = null;
if (satisfiesPzsBuilder_ != null) {
satisfiesPzsBuilder_.dispose();
satisfiesPzsBuilder_ = null;
}
satisfiesPzi_ = false;
kmsKeyName_ = "";
suspensionReasons_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00002000);
maxCapacityGb_ = 0L;
capacityStepSizeGb_ = 0L;
maxShareCount_ = 0L;
capacityGb_ = 0L;
multiShareEnabled_ = false;
protocol_ = 0;
directoryServices_ = null;
if (directoryServicesBuilder_ != null) {
directoryServicesBuilder_.dispose();
directoryServicesBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.filestore.v1beta1.CloudFilestoreServiceProto
.internal_static_google_cloud_filestore_v1beta1_Instance_descriptor;
}
@java.lang.Override
public com.google.cloud.filestore.v1beta1.Instance getDefaultInstanceForType() {
return com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.filestore.v1beta1.Instance build() {
com.google.cloud.filestore.v1beta1.Instance result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.filestore.v1beta1.Instance buildPartial() {
com.google.cloud.filestore.v1beta1.Instance result =
new com.google.cloud.filestore.v1beta1.Instance(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.cloud.filestore.v1beta1.Instance result) {
if (fileSharesBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0)) {
fileShares_ = java.util.Collections.unmodifiableList(fileShares_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.fileShares_ = fileShares_;
} else {
result.fileShares_ = fileSharesBuilder_.build();
}
if (networksBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0)) {
networks_ = java.util.Collections.unmodifiableList(networks_);
bitField0_ = (bitField0_ & ~0x00000100);
}
result.networks_ = networks_;
} else {
result.networks_ = networksBuilder_.build();
}
if (((bitField0_ & 0x00002000) != 0)) {
suspensionReasons_ = java.util.Collections.unmodifiableList(suspensionReasons_);
bitField0_ = (bitField0_ & ~0x00002000);
}
result.suspensionReasons_ = suspensionReasons_;
}
private void buildPartial0(com.google.cloud.filestore.v1beta1.Instance result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.description_ = description_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.state_ = state_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.statusMessage_ = statusMessage_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000010) != 0)) {
result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.tier_ = tier_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.etag_ = etag_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.satisfiesPzs_ =
satisfiesPzsBuilder_ == null ? satisfiesPzs_ : satisfiesPzsBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.satisfiesPzi_ = satisfiesPzi_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.kmsKeyName_ = kmsKeyName_;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.maxCapacityGb_ = maxCapacityGb_;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.capacityStepSizeGb_ = capacityStepSizeGb_;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.maxShareCount_ = maxShareCount_;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
result.capacityGb_ = capacityGb_;
}
if (((from_bitField0_ & 0x00040000) != 0)) {
result.multiShareEnabled_ = multiShareEnabled_;
}
if (((from_bitField0_ & 0x00080000) != 0)) {
result.protocol_ = protocol_;
}
if (((from_bitField0_ & 0x00100000) != 0)) {
result.directoryServices_ =
directoryServicesBuilder_ == null
? directoryServices_
: directoryServicesBuilder_.build();
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.filestore.v1beta1.Instance) {
return mergeFrom((com.google.cloud.filestore.v1beta1.Instance) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.filestore.v1beta1.Instance other) {
if (other == com.google.cloud.filestore.v1beta1.Instance.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (!other.getStatusMessage().isEmpty()) {
statusMessage_ = other.statusMessage_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasCreateTime()) {
mergeCreateTime(other.getCreateTime());
}
if (other.tier_ != 0) {
setTierValue(other.getTierValue());
}
internalGetMutableLabels().mergeFrom(other.internalGetLabels());
bitField0_ |= 0x00000040;
if (fileSharesBuilder_ == null) {
if (!other.fileShares_.isEmpty()) {
if (fileShares_.isEmpty()) {
fileShares_ = other.fileShares_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureFileSharesIsMutable();
fileShares_.addAll(other.fileShares_);
}
onChanged();
}
} else {
if (!other.fileShares_.isEmpty()) {
if (fileSharesBuilder_.isEmpty()) {
fileSharesBuilder_.dispose();
fileSharesBuilder_ = null;
fileShares_ = other.fileShares_;
bitField0_ = (bitField0_ & ~0x00000080);
fileSharesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getFileSharesFieldBuilder()
: null;
} else {
fileSharesBuilder_.addAllMessages(other.fileShares_);
}
}
}
if (networksBuilder_ == null) {
if (!other.networks_.isEmpty()) {
if (networks_.isEmpty()) {
networks_ = other.networks_;
bitField0_ = (bitField0_ & ~0x00000100);
} else {
ensureNetworksIsMutable();
networks_.addAll(other.networks_);
}
onChanged();
}
} else {
if (!other.networks_.isEmpty()) {
if (networksBuilder_.isEmpty()) {
networksBuilder_.dispose();
networksBuilder_ = null;
networks_ = other.networks_;
bitField0_ = (bitField0_ & ~0x00000100);
networksBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getNetworksFieldBuilder()
: null;
} else {
networksBuilder_.addAllMessages(other.networks_);
}
}
}
if (!other.getEtag().isEmpty()) {
etag_ = other.etag_;
bitField0_ |= 0x00000200;
onChanged();
}
if (other.hasSatisfiesPzs()) {
mergeSatisfiesPzs(other.getSatisfiesPzs());
}
if (other.getSatisfiesPzi() != false) {
setSatisfiesPzi(other.getSatisfiesPzi());
}
if (!other.getKmsKeyName().isEmpty()) {
kmsKeyName_ = other.kmsKeyName_;
bitField0_ |= 0x00001000;
onChanged();
}
if (!other.suspensionReasons_.isEmpty()) {
if (suspensionReasons_.isEmpty()) {
suspensionReasons_ = other.suspensionReasons_;
bitField0_ = (bitField0_ & ~0x00002000);
} else {
ensureSuspensionReasonsIsMutable();
suspensionReasons_.addAll(other.suspensionReasons_);
}
onChanged();
}
if (other.getMaxCapacityGb() != 0L) {
setMaxCapacityGb(other.getMaxCapacityGb());
}
if (other.getCapacityStepSizeGb() != 0L) {
setCapacityStepSizeGb(other.getCapacityStepSizeGb());
}
if (other.getMaxShareCount() != 0L) {
setMaxShareCount(other.getMaxShareCount());
}
if (other.getCapacityGb() != 0L) {
setCapacityGb(other.getCapacityGb());
}
if (other.getMultiShareEnabled() != false) {
setMultiShareEnabled(other.getMultiShareEnabled());
}
if (other.protocol_ != 0) {
setProtocolValue(other.getProtocolValue());
}
if (other.hasDirectoryServices()) {
mergeDirectoryServices(other.getDirectoryServices());
}
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:
{
description_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 40:
{
state_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 40
case 50:
{
statusMessage_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 50
case 58:
{
input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 58
case 64:
{
tier_ = input.readEnum();
bitField0_ |= 0x00000020;
break;
} // case 64
case 74:
{
com.google.protobuf.MapEntry labels__ =
input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
extensionRegistry);
internalGetMutableLabels()
.getMutableMap()
.put(labels__.getKey(), labels__.getValue());
bitField0_ |= 0x00000040;
break;
} // case 74
case 82:
{
com.google.cloud.filestore.v1beta1.FileShareConfig m =
input.readMessage(
com.google.cloud.filestore.v1beta1.FileShareConfig.parser(),
extensionRegistry);
if (fileSharesBuilder_ == null) {
ensureFileSharesIsMutable();
fileShares_.add(m);
} else {
fileSharesBuilder_.addMessage(m);
}
break;
} // case 82
case 90:
{
com.google.cloud.filestore.v1beta1.NetworkConfig m =
input.readMessage(
com.google.cloud.filestore.v1beta1.NetworkConfig.parser(),
extensionRegistry);
if (networksBuilder_ == null) {
ensureNetworksIsMutable();
networks_.add(m);
} else {
networksBuilder_.addMessage(m);
}
break;
} // case 90
case 98:
{
etag_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000200;
break;
} // case 98
case 106:
{
input.readMessage(getSatisfiesPzsFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000400;
break;
} // case 106
case 114:
{
kmsKeyName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00001000;
break;
} // case 114
case 120:
{
int tmpRaw = input.readEnum();
ensureSuspensionReasonsIsMutable();
suspensionReasons_.add(tmpRaw);
break;
} // case 120
case 122:
{
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while (input.getBytesUntilLimit() > 0) {
int tmpRaw = input.readEnum();
ensureSuspensionReasonsIsMutable();
suspensionReasons_.add(tmpRaw);
}
input.popLimit(oldLimit);
break;
} // case 122
case 128:
{
maxCapacityGb_ = input.readInt64();
bitField0_ |= 0x00004000;
break;
} // case 128
case 136:
{
capacityStepSizeGb_ = input.readInt64();
bitField0_ |= 0x00008000;
break;
} // case 136
case 144:
{
maxShareCount_ = input.readInt64();
bitField0_ |= 0x00010000;
break;
} // case 144
case 152:
{
capacityGb_ = input.readInt64();
bitField0_ |= 0x00020000;
break;
} // case 152
case 160:
{
multiShareEnabled_ = input.readBool();
bitField0_ |= 0x00040000;
break;
} // case 160
case 168:
{
protocol_ = input.readEnum();
bitField0_ |= 0x00080000;
break;
} // case 168
case 194:
{
input.readMessage(
getDirectoryServicesFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00100000;
break;
} // case 194
case 208:
{
satisfiesPzi_ = input.readBool();
bitField0_ |= 0x00000800;
break;
} // case 208
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 resource name of the instance, in the format
* `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
*
*
* 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 resource name of the instance, in the format
* `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
*
*
* 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 resource name of the instance, in the format
* `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
*
*
* 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 resource name of the instance, in the format
* `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
*
*
* 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 resource name of the instance, in the format
* `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
*
*
* 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.lang.Object description_ = "";
/**
*
*
*
* The description of the instance (2048 characters or less).
*
*
* string description = 2;
*
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The description of the instance (2048 characters or less).
*
*
* string description = 2;
*
* @return The bytes for description.
*/
public com.google.protobuf.ByteString getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The description of the instance (2048 characters or less).
*
*
* string description = 2;
*
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The description of the instance (2048 characters or less).
*
*
* string description = 2;
*
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* The description of the instance (2048 characters or less).
*
*
* string description = 2;
*
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private int state_ = 0;
/**
*
*
*
* Output only. The instance state.
*
*
*
* .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.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. The instance state.
*
*
*
* .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.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_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Output only. The instance state.
*
*
*
* .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.filestore.v1beta1.Instance.State getState() {
com.google.cloud.filestore.v1beta1.Instance.State result =
com.google.cloud.filestore.v1beta1.Instance.State.forNumber(state_);
return result == null
? com.google.cloud.filestore.v1beta1.Instance.State.UNRECOGNIZED
: result;
}
/**
*
*
*
* Output only. The instance state.
*
*
*
* .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(com.google.cloud.filestore.v1beta1.Instance.State value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
state_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Output only. The instance state.
*
*
*
* .google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return This builder for chaining.
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000004);
state_ = 0;
onChanged();
return this;
}
private java.lang.Object statusMessage_ = "";
/**
*
*
*
* Output only. Additional information about the instance state, if available.
*
*
* string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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;
}
}
/**
*
*
*
* Output only. Additional information about the instance state, if available.
*
*
* string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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;
}
}
/**
*
*
*
* Output only. Additional information about the instance state, if available.
*
*
* string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Output only. Additional information about the instance state, if available.
*
*
* string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearStatusMessage() {
statusMessage_ = getDefaultInstance().getStatusMessage();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
*
*
* Output only. Additional information about the instance state, if available.
*
*
* string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @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_ |= 0x00000008;
onChanged();
return this;
}
private com.google.protobuf.Timestamp createTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
createTimeBuilder_;
/**
*
*
*
* Output only. The time when the instance was created.
*
*
*
* .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the createTime field is set.
*/
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
*
*
* Output only. The time when the instance was created.
*
*
*
* .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The createTime.
*/
public com.google.protobuf.Timestamp getCreateTime() {
if (createTimeBuilder_ == null) {
return createTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: createTime_;
} else {
return createTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. The time when the instance was created.
*
*
*
* .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createTime_ = value;
} else {
createTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Output only. The time when the instance was created.
*
*
*
* .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (createTimeBuilder_ == null) {
createTime_ = builderForValue.build();
} else {
createTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Output only. The time when the instance was created.
*
*
*
* .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)
&& createTime_ != null
&& createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getCreateTimeBuilder().mergeFrom(value);
} else {
createTime_ = value;
}
} else {
createTimeBuilder_.mergeFrom(value);
}
if (createTime_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. The time when the instance was created.
*
*
*
* .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearCreateTime() {
bitField0_ = (bitField0_ & ~0x00000010);
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. The time when the instance was created.
*
*
*
* .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getCreateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. The time when the instance was created.
*
*
*
* .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
if (createTimeBuilder_ != null) {
return createTimeBuilder_.getMessageOrBuilder();
} else {
return createTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: createTime_;
}
}
/**
*
*
*
* Output only. The time when the instance was created.
*
*
*
* .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getCreateTimeFieldBuilder() {
if (createTimeBuilder_ == null) {
createTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getCreateTime(), getParentForChildren(), isClean());
createTime_ = null;
}
return createTimeBuilder_;
}
private int tier_ = 0;
/**
*
*
*
* The service tier of the instance.
*
*
* .google.cloud.filestore.v1beta1.Instance.Tier tier = 8;
*
* @return The enum numeric value on the wire for tier.
*/
@java.lang.Override
public int getTierValue() {
return tier_;
}
/**
*
*
*
* The service tier of the instance.
*
*
* .google.cloud.filestore.v1beta1.Instance.Tier tier = 8;
*
* @param value The enum numeric value on the wire for tier to set.
* @return This builder for chaining.
*/
public Builder setTierValue(int value) {
tier_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* The service tier of the instance.
*
*
* .google.cloud.filestore.v1beta1.Instance.Tier tier = 8;
*
* @return The tier.
*/
@java.lang.Override
public com.google.cloud.filestore.v1beta1.Instance.Tier getTier() {
com.google.cloud.filestore.v1beta1.Instance.Tier result =
com.google.cloud.filestore.v1beta1.Instance.Tier.forNumber(tier_);
return result == null
? com.google.cloud.filestore.v1beta1.Instance.Tier.UNRECOGNIZED
: result;
}
/**
*
*
*
* The service tier of the instance.
*
*
* .google.cloud.filestore.v1beta1.Instance.Tier tier = 8;
*
* @param value The tier to set.
* @return This builder for chaining.
*/
public Builder setTier(com.google.cloud.filestore.v1beta1.Instance.Tier value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
tier_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* The service tier of the instance.
*
*
* .google.cloud.filestore.v1beta1.Instance.Tier tier = 8;
*
* @return This builder for chaining.
*/
public Builder clearTier() {
bitField0_ = (bitField0_ & ~0x00000020);
tier_ = 0;
onChanged();
return this;
}
private com.google.protobuf.MapField labels_;
private com.google.protobuf.MapField internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
private com.google.protobuf.MapField
internalGetMutableLabels() {
if (labels_ == null) {
labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
}
if (!labels_.isMutable()) {
labels_ = labels_.copy();
}
bitField0_ |= 0x00000040;
onChanged();
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
*
*
* Resource labels to represent user provided metadata.
*
*
* map<string, string> labels = 9;
*/
@java.lang.Override
public boolean containsLabels(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetLabels().getMap().containsKey(key);
}
/** Use {@link #getLabelsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
*
*
* Resource labels to represent user provided metadata.
*
*
* map<string, string> labels = 9;
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
*
*
* Resource labels to represent user provided metadata.
*
*
* map<string, string> labels = 9;
*/
@java.lang.Override
public /* nullable */ java.lang.String getLabelsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* Resource labels to represent user provided metadata.
*
*
* map<string, string> labels = 9;
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearLabels() {
bitField0_ = (bitField0_ & ~0x00000040);
internalGetMutableLabels().getMutableMap().clear();
return this;
}
/**
*
*
*
* Resource labels to represent user provided metadata.
*
*
* map<string, string> labels = 9;
*/
public Builder removeLabels(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
internalGetMutableLabels().getMutableMap().remove(key);
return this;
}
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableLabels() {
bitField0_ |= 0x00000040;
return internalGetMutableLabels().getMutableMap();
}
/**
*
*
*
* Resource labels to represent user provided metadata.
*
*
* map<string, string> labels = 9;
*/
public Builder putLabels(java.lang.String key, java.lang.String value) {
if (key == null) {
throw new NullPointerException("map key");
}
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableLabels().getMutableMap().put(key, value);
bitField0_ |= 0x00000040;
return this;
}
/**
*
*
*
* Resource labels to represent user provided metadata.
*
*
* map<string, string> labels = 9;
*/
public Builder putAllLabels(java.util.Map values) {
internalGetMutableLabels().getMutableMap().putAll(values);
bitField0_ |= 0x00000040;
return this;
}
private java.util.List fileShares_ =
java.util.Collections.emptyList();
private void ensureFileSharesIsMutable() {
if (!((bitField0_ & 0x00000080) != 0)) {
fileShares_ =
new java.util.ArrayList(
fileShares_);
bitField0_ |= 0x00000080;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.filestore.v1beta1.FileShareConfig,
com.google.cloud.filestore.v1beta1.FileShareConfig.Builder,
com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder>
fileSharesBuilder_;
/**
*
*
*
* File system shares on the instance.
* For this version, only a single file share is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
*/
public java.util.List getFileSharesList() {
if (fileSharesBuilder_ == null) {
return java.util.Collections.unmodifiableList(fileShares_);
} else {
return fileSharesBuilder_.getMessageList();
}
}
/**
*
*
*
* File system shares on the instance.
* For this version, only a single file share is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
*/
public int getFileSharesCount() {
if (fileSharesBuilder_ == null) {
return fileShares_.size();
} else {
return fileSharesBuilder_.getCount();
}
}
/**
*
*
*
* File system shares on the instance.
* For this version, only a single file share is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
*/
public com.google.cloud.filestore.v1beta1.FileShareConfig getFileShares(int index) {
if (fileSharesBuilder_ == null) {
return fileShares_.get(index);
} else {
return fileSharesBuilder_.getMessage(index);
}
}
/**
*
*
*
* File system shares on the instance.
* For this version, only a single file share is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
*/
public Builder setFileShares(
int index, com.google.cloud.filestore.v1beta1.FileShareConfig value) {
if (fileSharesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFileSharesIsMutable();
fileShares_.set(index, value);
onChanged();
} else {
fileSharesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* File system shares on the instance.
* For this version, only a single file share is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
*/
public Builder setFileShares(
int index, com.google.cloud.filestore.v1beta1.FileShareConfig.Builder builderForValue) {
if (fileSharesBuilder_ == null) {
ensureFileSharesIsMutable();
fileShares_.set(index, builderForValue.build());
onChanged();
} else {
fileSharesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* File system shares on the instance.
* For this version, only a single file share is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
*/
public Builder addFileShares(com.google.cloud.filestore.v1beta1.FileShareConfig value) {
if (fileSharesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFileSharesIsMutable();
fileShares_.add(value);
onChanged();
} else {
fileSharesBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* File system shares on the instance.
* For this version, only a single file share is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
*/
public Builder addFileShares(
int index, com.google.cloud.filestore.v1beta1.FileShareConfig value) {
if (fileSharesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFileSharesIsMutable();
fileShares_.add(index, value);
onChanged();
} else {
fileSharesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* File system shares on the instance.
* For this version, only a single file share is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
*/
public Builder addFileShares(
com.google.cloud.filestore.v1beta1.FileShareConfig.Builder builderForValue) {
if (fileSharesBuilder_ == null) {
ensureFileSharesIsMutable();
fileShares_.add(builderForValue.build());
onChanged();
} else {
fileSharesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* File system shares on the instance.
* For this version, only a single file share is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
*/
public Builder addFileShares(
int index, com.google.cloud.filestore.v1beta1.FileShareConfig.Builder builderForValue) {
if (fileSharesBuilder_ == null) {
ensureFileSharesIsMutable();
fileShares_.add(index, builderForValue.build());
onChanged();
} else {
fileSharesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* File system shares on the instance.
* For this version, only a single file share is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
*/
public Builder addAllFileShares(
java.lang.Iterable extends com.google.cloud.filestore.v1beta1.FileShareConfig> values) {
if (fileSharesBuilder_ == null) {
ensureFileSharesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileShares_);
onChanged();
} else {
fileSharesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* File system shares on the instance.
* For this version, only a single file share is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
*/
public Builder clearFileShares() {
if (fileSharesBuilder_ == null) {
fileShares_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
} else {
fileSharesBuilder_.clear();
}
return this;
}
/**
*
*
*
* File system shares on the instance.
* For this version, only a single file share is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
*/
public Builder removeFileShares(int index) {
if (fileSharesBuilder_ == null) {
ensureFileSharesIsMutable();
fileShares_.remove(index);
onChanged();
} else {
fileSharesBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* File system shares on the instance.
* For this version, only a single file share is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
*/
public com.google.cloud.filestore.v1beta1.FileShareConfig.Builder getFileSharesBuilder(
int index) {
return getFileSharesFieldBuilder().getBuilder(index);
}
/**
*
*
*
* File system shares on the instance.
* For this version, only a single file share is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
*/
public com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder getFileSharesOrBuilder(
int index) {
if (fileSharesBuilder_ == null) {
return fileShares_.get(index);
} else {
return fileSharesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* File system shares on the instance.
* For this version, only a single file share is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
*/
public java.util.List extends com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder>
getFileSharesOrBuilderList() {
if (fileSharesBuilder_ != null) {
return fileSharesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(fileShares_);
}
}
/**
*
*
*
* File system shares on the instance.
* For this version, only a single file share is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
*/
public com.google.cloud.filestore.v1beta1.FileShareConfig.Builder addFileSharesBuilder() {
return getFileSharesFieldBuilder()
.addBuilder(com.google.cloud.filestore.v1beta1.FileShareConfig.getDefaultInstance());
}
/**
*
*
*
* File system shares on the instance.
* For this version, only a single file share is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
*/
public com.google.cloud.filestore.v1beta1.FileShareConfig.Builder addFileSharesBuilder(
int index) {
return getFileSharesFieldBuilder()
.addBuilder(
index, com.google.cloud.filestore.v1beta1.FileShareConfig.getDefaultInstance());
}
/**
*
*
*
* File system shares on the instance.
* For this version, only a single file share is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;
*/
public java.util.List
getFileSharesBuilderList() {
return getFileSharesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.filestore.v1beta1.FileShareConfig,
com.google.cloud.filestore.v1beta1.FileShareConfig.Builder,
com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder>
getFileSharesFieldBuilder() {
if (fileSharesBuilder_ == null) {
fileSharesBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.filestore.v1beta1.FileShareConfig,
com.google.cloud.filestore.v1beta1.FileShareConfig.Builder,
com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder>(
fileShares_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean());
fileShares_ = null;
}
return fileSharesBuilder_;
}
private java.util.List networks_ =
java.util.Collections.emptyList();
private void ensureNetworksIsMutable() {
if (!((bitField0_ & 0x00000100) != 0)) {
networks_ =
new java.util.ArrayList(networks_);
bitField0_ |= 0x00000100;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.filestore.v1beta1.NetworkConfig,
com.google.cloud.filestore.v1beta1.NetworkConfig.Builder,
com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder>
networksBuilder_;
/**
*
*
*
* VPC networks to which the instance is connected.
* For this version, only a single network is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
*/
public java.util.List getNetworksList() {
if (networksBuilder_ == null) {
return java.util.Collections.unmodifiableList(networks_);
} else {
return networksBuilder_.getMessageList();
}
}
/**
*
*
*
* VPC networks to which the instance is connected.
* For this version, only a single network is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
*/
public int getNetworksCount() {
if (networksBuilder_ == null) {
return networks_.size();
} else {
return networksBuilder_.getCount();
}
}
/**
*
*
*
* VPC networks to which the instance is connected.
* For this version, only a single network is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
*/
public com.google.cloud.filestore.v1beta1.NetworkConfig getNetworks(int index) {
if (networksBuilder_ == null) {
return networks_.get(index);
} else {
return networksBuilder_.getMessage(index);
}
}
/**
*
*
*
* VPC networks to which the instance is connected.
* For this version, only a single network is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
*/
public Builder setNetworks(int index, com.google.cloud.filestore.v1beta1.NetworkConfig value) {
if (networksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNetworksIsMutable();
networks_.set(index, value);
onChanged();
} else {
networksBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* VPC networks to which the instance is connected.
* For this version, only a single network is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
*/
public Builder setNetworks(
int index, com.google.cloud.filestore.v1beta1.NetworkConfig.Builder builderForValue) {
if (networksBuilder_ == null) {
ensureNetworksIsMutable();
networks_.set(index, builderForValue.build());
onChanged();
} else {
networksBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* VPC networks to which the instance is connected.
* For this version, only a single network is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
*/
public Builder addNetworks(com.google.cloud.filestore.v1beta1.NetworkConfig value) {
if (networksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNetworksIsMutable();
networks_.add(value);
onChanged();
} else {
networksBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* VPC networks to which the instance is connected.
* For this version, only a single network is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
*/
public Builder addNetworks(int index, com.google.cloud.filestore.v1beta1.NetworkConfig value) {
if (networksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNetworksIsMutable();
networks_.add(index, value);
onChanged();
} else {
networksBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* VPC networks to which the instance is connected.
* For this version, only a single network is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
*/
public Builder addNetworks(
com.google.cloud.filestore.v1beta1.NetworkConfig.Builder builderForValue) {
if (networksBuilder_ == null) {
ensureNetworksIsMutable();
networks_.add(builderForValue.build());
onChanged();
} else {
networksBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* VPC networks to which the instance is connected.
* For this version, only a single network is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
*/
public Builder addNetworks(
int index, com.google.cloud.filestore.v1beta1.NetworkConfig.Builder builderForValue) {
if (networksBuilder_ == null) {
ensureNetworksIsMutable();
networks_.add(index, builderForValue.build());
onChanged();
} else {
networksBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* VPC networks to which the instance is connected.
* For this version, only a single network is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
*/
public Builder addAllNetworks(
java.lang.Iterable extends com.google.cloud.filestore.v1beta1.NetworkConfig> values) {
if (networksBuilder_ == null) {
ensureNetworksIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networks_);
onChanged();
} else {
networksBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* VPC networks to which the instance is connected.
* For this version, only a single network is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
*/
public Builder clearNetworks() {
if (networksBuilder_ == null) {
networks_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
} else {
networksBuilder_.clear();
}
return this;
}
/**
*
*
*
* VPC networks to which the instance is connected.
* For this version, only a single network is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
*/
public Builder removeNetworks(int index) {
if (networksBuilder_ == null) {
ensureNetworksIsMutable();
networks_.remove(index);
onChanged();
} else {
networksBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* VPC networks to which the instance is connected.
* For this version, only a single network is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
*/
public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder getNetworksBuilder(int index) {
return getNetworksFieldBuilder().getBuilder(index);
}
/**
*
*
*
* VPC networks to which the instance is connected.
* For this version, only a single network is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
*/
public com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder getNetworksOrBuilder(
int index) {
if (networksBuilder_ == null) {
return networks_.get(index);
} else {
return networksBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* VPC networks to which the instance is connected.
* For this version, only a single network is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
*/
public java.util.List extends com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder>
getNetworksOrBuilderList() {
if (networksBuilder_ != null) {
return networksBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(networks_);
}
}
/**
*
*
*
* VPC networks to which the instance is connected.
* For this version, only a single network is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
*/
public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder addNetworksBuilder() {
return getNetworksFieldBuilder()
.addBuilder(com.google.cloud.filestore.v1beta1.NetworkConfig.getDefaultInstance());
}
/**
*
*
*
* VPC networks to which the instance is connected.
* For this version, only a single network is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
*/
public com.google.cloud.filestore.v1beta1.NetworkConfig.Builder addNetworksBuilder(int index) {
return getNetworksFieldBuilder()
.addBuilder(index, com.google.cloud.filestore.v1beta1.NetworkConfig.getDefaultInstance());
}
/**
*
*
*
* VPC networks to which the instance is connected.
* For this version, only a single network is supported.
*
*
* repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;
*/
public java.util.List
getNetworksBuilderList() {
return getNetworksFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.filestore.v1beta1.NetworkConfig,
com.google.cloud.filestore.v1beta1.NetworkConfig.Builder,
com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder>
getNetworksFieldBuilder() {
if (networksBuilder_ == null) {
networksBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.filestore.v1beta1.NetworkConfig,
com.google.cloud.filestore.v1beta1.NetworkConfig.Builder,
com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder>(
networks_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean());
networks_ = null;
}
return networksBuilder_;
}
private java.lang.Object etag_ = "";
/**
*
*
*
* Server-specified ETag for the instance resource to prevent simultaneous
* updates from overwriting each other.
*
*
* string etag = 12;
*
* @return The etag.
*/
public java.lang.String getEtag() {
java.lang.Object ref = etag_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
etag_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Server-specified ETag for the instance resource to prevent simultaneous
* updates from overwriting each other.
*
*
* string etag = 12;
*
* @return The bytes for etag.
*/
public com.google.protobuf.ByteString getEtagBytes() {
java.lang.Object ref = etag_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
etag_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Server-specified ETag for the instance resource to prevent simultaneous
* updates from overwriting each other.
*
*
* string etag = 12;
*
* @param value The etag to set.
* @return This builder for chaining.
*/
public Builder setEtag(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
etag_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*
*
* Server-specified ETag for the instance resource to prevent simultaneous
* updates from overwriting each other.
*
*
* string etag = 12;
*
* @return This builder for chaining.
*/
public Builder clearEtag() {
etag_ = getDefaultInstance().getEtag();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
*
*
*
* Server-specified ETag for the instance resource to prevent simultaneous
* updates from overwriting each other.
*
*
* string etag = 12;
*
* @param value The bytes for etag to set.
* @return This builder for chaining.
*/
public Builder setEtagBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
etag_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
private com.google.protobuf.BoolValue satisfiesPzs_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue,
com.google.protobuf.BoolValue.Builder,
com.google.protobuf.BoolValueOrBuilder>
satisfiesPzsBuilder_;
/**
*
*
*
* Output only. Reserved for future use.
*
*
*
* .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the satisfiesPzs field is set.
*/
public boolean hasSatisfiesPzs() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
*
*
* Output only. Reserved for future use.
*
*
*
* .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The satisfiesPzs.
*/
public com.google.protobuf.BoolValue getSatisfiesPzs() {
if (satisfiesPzsBuilder_ == null) {
return satisfiesPzs_ == null
? com.google.protobuf.BoolValue.getDefaultInstance()
: satisfiesPzs_;
} else {
return satisfiesPzsBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. Reserved for future use.
*
*
*
* .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setSatisfiesPzs(com.google.protobuf.BoolValue value) {
if (satisfiesPzsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
satisfiesPzs_ = value;
} else {
satisfiesPzsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*
*
* Output only. Reserved for future use.
*
*
*
* .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setSatisfiesPzs(com.google.protobuf.BoolValue.Builder builderForValue) {
if (satisfiesPzsBuilder_ == null) {
satisfiesPzs_ = builderForValue.build();
} else {
satisfiesPzsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*
*
* Output only. Reserved for future use.
*
*
*
* .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeSatisfiesPzs(com.google.protobuf.BoolValue value) {
if (satisfiesPzsBuilder_ == null) {
if (((bitField0_ & 0x00000400) != 0)
&& satisfiesPzs_ != null
&& satisfiesPzs_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
getSatisfiesPzsBuilder().mergeFrom(value);
} else {
satisfiesPzs_ = value;
}
} else {
satisfiesPzsBuilder_.mergeFrom(value);
}
if (satisfiesPzs_ != null) {
bitField0_ |= 0x00000400;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. Reserved for future use.
*
*
*
* .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearSatisfiesPzs() {
bitField0_ = (bitField0_ & ~0x00000400);
satisfiesPzs_ = null;
if (satisfiesPzsBuilder_ != null) {
satisfiesPzsBuilder_.dispose();
satisfiesPzsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. Reserved for future use.
*
*
*
* .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.BoolValue.Builder getSatisfiesPzsBuilder() {
bitField0_ |= 0x00000400;
onChanged();
return getSatisfiesPzsFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. Reserved for future use.
*
*
*
* .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() {
if (satisfiesPzsBuilder_ != null) {
return satisfiesPzsBuilder_.getMessageOrBuilder();
} else {
return satisfiesPzs_ == null
? com.google.protobuf.BoolValue.getDefaultInstance()
: satisfiesPzs_;
}
}
/**
*
*
*
* Output only. Reserved for future use.
*
*
*
* .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue,
com.google.protobuf.BoolValue.Builder,
com.google.protobuf.BoolValueOrBuilder>
getSatisfiesPzsFieldBuilder() {
if (satisfiesPzsBuilder_ == null) {
satisfiesPzsBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue,
com.google.protobuf.BoolValue.Builder,
com.google.protobuf.BoolValueOrBuilder>(
getSatisfiesPzs(), getParentForChildren(), isClean());
satisfiesPzs_ = null;
}
return satisfiesPzsBuilder_;
}
private boolean satisfiesPzi_;
/**
*
*
*
* Output only. Reserved for future use.
*
*
* bool satisfies_pzi = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The satisfiesPzi.
*/
@java.lang.Override
public boolean getSatisfiesPzi() {
return satisfiesPzi_;
}
/**
*
*
*
* Output only. Reserved for future use.
*
*
* bool satisfies_pzi = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The satisfiesPzi to set.
* @return This builder for chaining.
*/
public Builder setSatisfiesPzi(boolean value) {
satisfiesPzi_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
*
*
* Output only. Reserved for future use.
*
*
* bool satisfies_pzi = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearSatisfiesPzi() {
bitField0_ = (bitField0_ & ~0x00000800);
satisfiesPzi_ = false;
onChanged();
return this;
}
private java.lang.Object kmsKeyName_ = "";
/**
*
*
*
* KMS key name used for data encryption.
*
*
* string kms_key_name = 14;
*
* @return The kmsKeyName.
*/
public java.lang.String getKmsKeyName() {
java.lang.Object ref = kmsKeyName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
kmsKeyName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* KMS key name used for data encryption.
*
*
* string kms_key_name = 14;
*
* @return The bytes for kmsKeyName.
*/
public com.google.protobuf.ByteString getKmsKeyNameBytes() {
java.lang.Object ref = kmsKeyName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
kmsKeyName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* KMS key name used for data encryption.
*
*
* string kms_key_name = 14;
*
* @param value The kmsKeyName to set.
* @return This builder for chaining.
*/
public Builder setKmsKeyName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
kmsKeyName_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
*
*
* KMS key name used for data encryption.
*
*
* string kms_key_name = 14;
*
* @return This builder for chaining.
*/
public Builder clearKmsKeyName() {
kmsKeyName_ = getDefaultInstance().getKmsKeyName();
bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
return this;
}
/**
*
*
*
* KMS key name used for data encryption.
*
*
* string kms_key_name = 14;
*
* @param value The bytes for kmsKeyName to set.
* @return This builder for chaining.
*/
public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
kmsKeyName_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
private java.util.List suspensionReasons_ =
java.util.Collections.emptyList();
private void ensureSuspensionReasonsIsMutable() {
if (!((bitField0_ & 0x00002000) != 0)) {
suspensionReasons_ = new java.util.ArrayList(suspensionReasons_);
bitField0_ |= 0x00002000;
}
}
/**
*
*
*
* Output only. Field indicates all the reasons the instance is in "SUSPENDED"
* state.
*
*
*
* repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return A list containing the suspensionReasons.
*/
public java.util.List
getSuspensionReasonsList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.google.cloud.filestore.v1beta1.Instance.SuspensionReason>(
suspensionReasons_, suspensionReasons_converter_);
}
/**
*
*
*
* Output only. Field indicates all the reasons the instance is in "SUSPENDED"
* state.
*
*
*
* repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The count of suspensionReasons.
*/
public int getSuspensionReasonsCount() {
return suspensionReasons_.size();
}
/**
*
*
*
* Output only. Field indicates all the reasons the instance is in "SUSPENDED"
* state.
*
*
*
* repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param index The index of the element to return.
* @return The suspensionReasons at the given index.
*/
public com.google.cloud.filestore.v1beta1.Instance.SuspensionReason getSuspensionReasons(
int index) {
return suspensionReasons_converter_.convert(suspensionReasons_.get(index));
}
/**
*
*
*
* Output only. Field indicates all the reasons the instance is in "SUSPENDED"
* state.
*
*
*
* repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param index The index to set the value at.
* @param value The suspensionReasons to set.
* @return This builder for chaining.
*/
public Builder setSuspensionReasons(
int index, com.google.cloud.filestore.v1beta1.Instance.SuspensionReason value) {
if (value == null) {
throw new NullPointerException();
}
ensureSuspensionReasonsIsMutable();
suspensionReasons_.set(index, value.getNumber());
onChanged();
return this;
}
/**
*
*
*
* Output only. Field indicates all the reasons the instance is in "SUSPENDED"
* state.
*
*
*
* repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The suspensionReasons to add.
* @return This builder for chaining.
*/
public Builder addSuspensionReasons(
com.google.cloud.filestore.v1beta1.Instance.SuspensionReason value) {
if (value == null) {
throw new NullPointerException();
}
ensureSuspensionReasonsIsMutable();
suspensionReasons_.add(value.getNumber());
onChanged();
return this;
}
/**
*
*
*
* Output only. Field indicates all the reasons the instance is in "SUSPENDED"
* state.
*
*
*
* repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param values The suspensionReasons to add.
* @return This builder for chaining.
*/
public Builder addAllSuspensionReasons(
java.lang.Iterable extends com.google.cloud.filestore.v1beta1.Instance.SuspensionReason>
values) {
ensureSuspensionReasonsIsMutable();
for (com.google.cloud.filestore.v1beta1.Instance.SuspensionReason value : values) {
suspensionReasons_.add(value.getNumber());
}
onChanged();
return this;
}
/**
*
*
*
* Output only. Field indicates all the reasons the instance is in "SUSPENDED"
* state.
*
*
*
* repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return This builder for chaining.
*/
public Builder clearSuspensionReasons() {
suspensionReasons_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00002000);
onChanged();
return this;
}
/**
*
*
*
* Output only. Field indicates all the reasons the instance is in "SUSPENDED"
* state.
*
*
*
* repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return A list containing the enum numeric values on the wire for suspensionReasons.
*/
public java.util.List getSuspensionReasonsValueList() {
return java.util.Collections.unmodifiableList(suspensionReasons_);
}
/**
*
*
*
* Output only. Field indicates all the reasons the instance is in "SUSPENDED"
* state.
*
*
*
* repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param index The index of the value to return.
* @return The enum numeric value on the wire of suspensionReasons at the given index.
*/
public int getSuspensionReasonsValue(int index) {
return suspensionReasons_.get(index);
}
/**
*
*
*
* Output only. Field indicates all the reasons the instance is in "SUSPENDED"
* state.
*
*
*
* repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param index The index to set the value at.
* @param value The enum numeric value on the wire for suspensionReasons to set.
* @return This builder for chaining.
*/
public Builder setSuspensionReasonsValue(int index, int value) {
ensureSuspensionReasonsIsMutable();
suspensionReasons_.set(index, value);
onChanged();
return this;
}
/**
*
*
*
* Output only. Field indicates all the reasons the instance is in "SUSPENDED"
* state.
*
*
*
* repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The enum numeric value on the wire for suspensionReasons to add.
* @return This builder for chaining.
*/
public Builder addSuspensionReasonsValue(int value) {
ensureSuspensionReasonsIsMutable();
suspensionReasons_.add(value);
onChanged();
return this;
}
/**
*
*
*
* Output only. Field indicates all the reasons the instance is in "SUSPENDED"
* state.
*
*
*
* repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param values The enum numeric values on the wire for suspensionReasons to add.
* @return This builder for chaining.
*/
public Builder addAllSuspensionReasonsValue(java.lang.Iterable values) {
ensureSuspensionReasonsIsMutable();
for (int value : values) {
suspensionReasons_.add(value);
}
onChanged();
return this;
}
private long maxCapacityGb_;
/**
*
*
*
* Output only. The max capacity of the instance.
*
*
* int64 max_capacity_gb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The maxCapacityGb.
*/
@java.lang.Override
public long getMaxCapacityGb() {
return maxCapacityGb_;
}
/**
*
*
*
* Output only. The max capacity of the instance.
*
*
* int64 max_capacity_gb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The maxCapacityGb to set.
* @return This builder for chaining.
*/
public Builder setMaxCapacityGb(long value) {
maxCapacityGb_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
*
*
* Output only. The max capacity of the instance.
*
*
* int64 max_capacity_gb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearMaxCapacityGb() {
bitField0_ = (bitField0_ & ~0x00004000);
maxCapacityGb_ = 0L;
onChanged();
return this;
}
private long capacityStepSizeGb_;
/**
*
*
*
* Output only. The increase/decrease capacity step size.
*
*
* int64 capacity_step_size_gb = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The capacityStepSizeGb.
*/
@java.lang.Override
public long getCapacityStepSizeGb() {
return capacityStepSizeGb_;
}
/**
*
*
*
* Output only. The increase/decrease capacity step size.
*
*
* int64 capacity_step_size_gb = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The capacityStepSizeGb to set.
* @return This builder for chaining.
*/
public Builder setCapacityStepSizeGb(long value) {
capacityStepSizeGb_ = value;
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
*
*
* Output only. The increase/decrease capacity step size.
*
*
* int64 capacity_step_size_gb = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearCapacityStepSizeGb() {
bitField0_ = (bitField0_ & ~0x00008000);
capacityStepSizeGb_ = 0L;
onChanged();
return this;
}
private long maxShareCount_;
/**
*
*
*
* The max number of shares allowed.
*
*
* int64 max_share_count = 18;
*
* @return The maxShareCount.
*/
@java.lang.Override
public long getMaxShareCount() {
return maxShareCount_;
}
/**
*
*
*
* The max number of shares allowed.
*
*
* int64 max_share_count = 18;
*
* @param value The maxShareCount to set.
* @return This builder for chaining.
*/
public Builder setMaxShareCount(long value) {
maxShareCount_ = value;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
*
*
*
* The max number of shares allowed.
*
*
* int64 max_share_count = 18;
*
* @return This builder for chaining.
*/
public Builder clearMaxShareCount() {
bitField0_ = (bitField0_ & ~0x00010000);
maxShareCount_ = 0L;
onChanged();
return this;
}
private long capacityGb_;
/**
*
*
*
* The storage capacity of the instance in gigabytes (GB = 1024^3 bytes).
* This capacity can be increased up to `max_capacity_gb` GB in multipliers
* of `capacity_step_size_gb` GB.
*
*
* int64 capacity_gb = 19;
*
* @return The capacityGb.
*/
@java.lang.Override
public long getCapacityGb() {
return capacityGb_;
}
/**
*
*
*
* The storage capacity of the instance in gigabytes (GB = 1024^3 bytes).
* This capacity can be increased up to `max_capacity_gb` GB in multipliers
* of `capacity_step_size_gb` GB.
*
*
* int64 capacity_gb = 19;
*
* @param value The capacityGb to set.
* @return This builder for chaining.
*/
public Builder setCapacityGb(long value) {
capacityGb_ = value;
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
*
*
*
* The storage capacity of the instance in gigabytes (GB = 1024^3 bytes).
* This capacity can be increased up to `max_capacity_gb` GB in multipliers
* of `capacity_step_size_gb` GB.
*
*
* int64 capacity_gb = 19;
*
* @return This builder for chaining.
*/
public Builder clearCapacityGb() {
bitField0_ = (bitField0_ & ~0x00020000);
capacityGb_ = 0L;
onChanged();
return this;
}
private boolean multiShareEnabled_;
/**
*
*
*
* Indicates whether this instance uses a multi-share configuration with which
* it can have more than one file-share or none at all. File-shares are added,
* updated and removed through the separate file-share APIs.
*
*
* bool multi_share_enabled = 20;
*
* @return The multiShareEnabled.
*/
@java.lang.Override
public boolean getMultiShareEnabled() {
return multiShareEnabled_;
}
/**
*
*
*
* Indicates whether this instance uses a multi-share configuration with which
* it can have more than one file-share or none at all. File-shares are added,
* updated and removed through the separate file-share APIs.
*
*
* bool multi_share_enabled = 20;
*
* @param value The multiShareEnabled to set.
* @return This builder for chaining.
*/
public Builder setMultiShareEnabled(boolean value) {
multiShareEnabled_ = value;
bitField0_ |= 0x00040000;
onChanged();
return this;
}
/**
*
*
*
* Indicates whether this instance uses a multi-share configuration with which
* it can have more than one file-share or none at all. File-shares are added,
* updated and removed through the separate file-share APIs.
*
*
* bool multi_share_enabled = 20;
*
* @return This builder for chaining.
*/
public Builder clearMultiShareEnabled() {
bitField0_ = (bitField0_ & ~0x00040000);
multiShareEnabled_ = false;
onChanged();
return this;
}
private int protocol_ = 0;
/**
*
*
*
* Immutable. The protocol indicates the access protocol for all shares in the
* instance. This field is immutable and it cannot be changed after the
* instance has been created. Default value: `NFS_V3`.
*
*
*
* .google.cloud.filestore.v1beta1.Instance.FileProtocol protocol = 21 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The enum numeric value on the wire for protocol.
*/
@java.lang.Override
public int getProtocolValue() {
return protocol_;
}
/**
*
*
*
* Immutable. The protocol indicates the access protocol for all shares in the
* instance. This field is immutable and it cannot be changed after the
* instance has been created. Default value: `NFS_V3`.
*
*
*
* .google.cloud.filestore.v1beta1.Instance.FileProtocol protocol = 21 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @param value The enum numeric value on the wire for protocol to set.
* @return This builder for chaining.
*/
public Builder setProtocolValue(int value) {
protocol_ = value;
bitField0_ |= 0x00080000;
onChanged();
return this;
}
/**
*
*
*
* Immutable. The protocol indicates the access protocol for all shares in the
* instance. This field is immutable and it cannot be changed after the
* instance has been created. Default value: `NFS_V3`.
*
*
*
* .google.cloud.filestore.v1beta1.Instance.FileProtocol protocol = 21 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The protocol.
*/
@java.lang.Override
public com.google.cloud.filestore.v1beta1.Instance.FileProtocol getProtocol() {
com.google.cloud.filestore.v1beta1.Instance.FileProtocol result =
com.google.cloud.filestore.v1beta1.Instance.FileProtocol.forNumber(protocol_);
return result == null
? com.google.cloud.filestore.v1beta1.Instance.FileProtocol.UNRECOGNIZED
: result;
}
/**
*
*
*
* Immutable. The protocol indicates the access protocol for all shares in the
* instance. This field is immutable and it cannot be changed after the
* instance has been created. Default value: `NFS_V3`.
*
*
*
* .google.cloud.filestore.v1beta1.Instance.FileProtocol protocol = 21 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @param value The protocol to set.
* @return This builder for chaining.
*/
public Builder setProtocol(com.google.cloud.filestore.v1beta1.Instance.FileProtocol value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00080000;
protocol_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Immutable. The protocol indicates the access protocol for all shares in the
* instance. This field is immutable and it cannot be changed after the
* instance has been created. Default value: `NFS_V3`.
*
*
*
* .google.cloud.filestore.v1beta1.Instance.FileProtocol protocol = 21 [(.google.api.field_behavior) = IMMUTABLE];
*
*
* @return This builder for chaining.
*/
public Builder clearProtocol() {
bitField0_ = (bitField0_ & ~0x00080000);
protocol_ = 0;
onChanged();
return this;
}
private com.google.cloud.filestore.v1beta1.DirectoryServicesConfig directoryServices_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.filestore.v1beta1.DirectoryServicesConfig,
com.google.cloud.filestore.v1beta1.DirectoryServicesConfig.Builder,
com.google.cloud.filestore.v1beta1.DirectoryServicesConfigOrBuilder>
directoryServicesBuilder_;
/**
*
*
*
* Directory Services configuration for Kerberos-based authentication.
* Should only be set if protocol is "NFS_V4_1".
*
*
* .google.cloud.filestore.v1beta1.DirectoryServicesConfig directory_services = 24;
*
* @return Whether the directoryServices field is set.
*/
public boolean hasDirectoryServices() {
return ((bitField0_ & 0x00100000) != 0);
}
/**
*
*
*
* Directory Services configuration for Kerberos-based authentication.
* Should only be set if protocol is "NFS_V4_1".
*
*
* .google.cloud.filestore.v1beta1.DirectoryServicesConfig directory_services = 24;
*
* @return The directoryServices.
*/
public com.google.cloud.filestore.v1beta1.DirectoryServicesConfig getDirectoryServices() {
if (directoryServicesBuilder_ == null) {
return directoryServices_ == null
? com.google.cloud.filestore.v1beta1.DirectoryServicesConfig.getDefaultInstance()
: directoryServices_;
} else {
return directoryServicesBuilder_.getMessage();
}
}
/**
*
*
*
* Directory Services configuration for Kerberos-based authentication.
* Should only be set if protocol is "NFS_V4_1".
*
*
* .google.cloud.filestore.v1beta1.DirectoryServicesConfig directory_services = 24;
*/
public Builder setDirectoryServices(
com.google.cloud.filestore.v1beta1.DirectoryServicesConfig value) {
if (directoryServicesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
directoryServices_ = value;
} else {
directoryServicesBuilder_.setMessage(value);
}
bitField0_ |= 0x00100000;
onChanged();
return this;
}
/**
*
*
*
* Directory Services configuration for Kerberos-based authentication.
* Should only be set if protocol is "NFS_V4_1".
*
*
* .google.cloud.filestore.v1beta1.DirectoryServicesConfig directory_services = 24;
*/
public Builder setDirectoryServices(
com.google.cloud.filestore.v1beta1.DirectoryServicesConfig.Builder builderForValue) {
if (directoryServicesBuilder_ == null) {
directoryServices_ = builderForValue.build();
} else {
directoryServicesBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00100000;
onChanged();
return this;
}
/**
*
*
*
* Directory Services configuration for Kerberos-based authentication.
* Should only be set if protocol is "NFS_V4_1".
*
*
* .google.cloud.filestore.v1beta1.DirectoryServicesConfig directory_services = 24;
*/
public Builder mergeDirectoryServices(
com.google.cloud.filestore.v1beta1.DirectoryServicesConfig value) {
if (directoryServicesBuilder_ == null) {
if (((bitField0_ & 0x00100000) != 0)
&& directoryServices_ != null
&& directoryServices_
!= com.google.cloud.filestore.v1beta1.DirectoryServicesConfig
.getDefaultInstance()) {
getDirectoryServicesBuilder().mergeFrom(value);
} else {
directoryServices_ = value;
}
} else {
directoryServicesBuilder_.mergeFrom(value);
}
if (directoryServices_ != null) {
bitField0_ |= 0x00100000;
onChanged();
}
return this;
}
/**
*
*
*
* Directory Services configuration for Kerberos-based authentication.
* Should only be set if protocol is "NFS_V4_1".
*
*
* .google.cloud.filestore.v1beta1.DirectoryServicesConfig directory_services = 24;
*/
public Builder clearDirectoryServices() {
bitField0_ = (bitField0_ & ~0x00100000);
directoryServices_ = null;
if (directoryServicesBuilder_ != null) {
directoryServicesBuilder_.dispose();
directoryServicesBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Directory Services configuration for Kerberos-based authentication.
* Should only be set if protocol is "NFS_V4_1".
*
*
* .google.cloud.filestore.v1beta1.DirectoryServicesConfig directory_services = 24;
*/
public com.google.cloud.filestore.v1beta1.DirectoryServicesConfig.Builder
getDirectoryServicesBuilder() {
bitField0_ |= 0x00100000;
onChanged();
return getDirectoryServicesFieldBuilder().getBuilder();
}
/**
*
*
*
* Directory Services configuration for Kerberos-based authentication.
* Should only be set if protocol is "NFS_V4_1".
*
*
* .google.cloud.filestore.v1beta1.DirectoryServicesConfig directory_services = 24;
*/
public com.google.cloud.filestore.v1beta1.DirectoryServicesConfigOrBuilder
getDirectoryServicesOrBuilder() {
if (directoryServicesBuilder_ != null) {
return directoryServicesBuilder_.getMessageOrBuilder();
} else {
return directoryServices_ == null
? com.google.cloud.filestore.v1beta1.DirectoryServicesConfig.getDefaultInstance()
: directoryServices_;
}
}
/**
*
*
*
* Directory Services configuration for Kerberos-based authentication.
* Should only be set if protocol is "NFS_V4_1".
*
*
* .google.cloud.filestore.v1beta1.DirectoryServicesConfig directory_services = 24;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.filestore.v1beta1.DirectoryServicesConfig,
com.google.cloud.filestore.v1beta1.DirectoryServicesConfig.Builder,
com.google.cloud.filestore.v1beta1.DirectoryServicesConfigOrBuilder>
getDirectoryServicesFieldBuilder() {
if (directoryServicesBuilder_ == null) {
directoryServicesBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.filestore.v1beta1.DirectoryServicesConfig,
com.google.cloud.filestore.v1beta1.DirectoryServicesConfig.Builder,
com.google.cloud.filestore.v1beta1.DirectoryServicesConfigOrBuilder>(
getDirectoryServices(), getParentForChildren(), isClean());
directoryServices_ = null;
}
return directoryServicesBuilder_;
}
@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.filestore.v1beta1.Instance)
}
// @@protoc_insertion_point(class_scope:google.cloud.filestore.v1beta1.Instance)
private static final com.google.cloud.filestore.v1beta1.Instance DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.filestore.v1beta1.Instance();
}
public static com.google.cloud.filestore.v1beta1.Instance getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Instance 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.filestore.v1beta1.Instance getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}