public static final class Instance.Builder extends GeneratedMessageV3.Builder<Instance.Builder> implements InstanceOrBuilder
A Cloud Filestore instance.
Protobuf type google.cloud.filestore.v1.Instance
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Instance.BuilderImplements
InstanceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllFileShares(Iterable<? extends FileShareConfig> values)
public Instance.Builder addAllFileShares(Iterable<? extends FileShareConfig> values)
File system shares on the instance. For this version, only a single file share is supported.
repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.cloud.filestore.v1.FileShareConfig> |
Returns | |
---|---|
Type | Description |
Instance.Builder |
addAllNetworks(Iterable<? extends NetworkConfig> values)
public Instance.Builder addAllNetworks(Iterable<? extends NetworkConfig> values)
VPC networks to which the instance is connected. For this version, only a single network is supported.
repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.cloud.filestore.v1.NetworkConfig> |
Returns | |
---|---|
Type | Description |
Instance.Builder |
addFileShares(FileShareConfig value)
public Instance.Builder addFileShares(FileShareConfig value)
File system shares on the instance. For this version, only a single file share is supported.
repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
Parameter | |
---|---|
Name | Description |
value | FileShareConfig |
Returns | |
---|---|
Type | Description |
Instance.Builder |
addFileShares(FileShareConfig.Builder builderForValue)
public Instance.Builder addFileShares(FileShareConfig.Builder builderForValue)
File system shares on the instance. For this version, only a single file share is supported.
repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
Parameter | |
---|---|
Name | Description |
builderForValue | FileShareConfig.Builder |
Returns | |
---|---|
Type | Description |
Instance.Builder |
addFileShares(int index, FileShareConfig value)
public Instance.Builder addFileShares(int index, FileShareConfig value)
File system shares on the instance. For this version, only a single file share is supported.
repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
Parameters | |
---|---|
Name | Description |
index | int |
value | FileShareConfig |
Returns | |
---|---|
Type | Description |
Instance.Builder |
addFileShares(int index, FileShareConfig.Builder builderForValue)
public Instance.Builder addFileShares(int index, FileShareConfig.Builder builderForValue)
File system shares on the instance. For this version, only a single file share is supported.
repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | FileShareConfig.Builder |
Returns | |
---|---|
Type | Description |
Instance.Builder |
addFileSharesBuilder()
public FileShareConfig.Builder addFileSharesBuilder()
File system shares on the instance. For this version, only a single file share is supported.
repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
Returns | |
---|---|
Type | Description |
FileShareConfig.Builder |
addFileSharesBuilder(int index)
public FileShareConfig.Builder addFileSharesBuilder(int index)
File system shares on the instance. For this version, only a single file share is supported.
repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
FileShareConfig.Builder |
addNetworks(NetworkConfig value)
public Instance.Builder addNetworks(NetworkConfig value)
VPC networks to which the instance is connected. For this version, only a single network is supported.
repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
Parameter | |
---|---|
Name | Description |
value | NetworkConfig |
Returns | |
---|---|
Type | Description |
Instance.Builder |
addNetworks(NetworkConfig.Builder builderForValue)
public Instance.Builder addNetworks(NetworkConfig.Builder builderForValue)
VPC networks to which the instance is connected. For this version, only a single network is supported.
repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
Parameter | |
---|---|
Name | Description |
builderForValue | NetworkConfig.Builder |
Returns | |
---|---|
Type | Description |
Instance.Builder |
addNetworks(int index, NetworkConfig value)
public Instance.Builder addNetworks(int index, NetworkConfig value)
VPC networks to which the instance is connected. For this version, only a single network is supported.
repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
Parameters | |
---|---|
Name | Description |
index | int |
value | NetworkConfig |
Returns | |
---|---|
Type | Description |
Instance.Builder |
addNetworks(int index, NetworkConfig.Builder builderForValue)
public Instance.Builder addNetworks(int index, NetworkConfig.Builder builderForValue)
VPC networks to which the instance is connected. For this version, only a single network is supported.
repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | NetworkConfig.Builder |
Returns | |
---|---|
Type | Description |
Instance.Builder |
addNetworksBuilder()
public NetworkConfig.Builder addNetworksBuilder()
VPC networks to which the instance is connected. For this version, only a single network is supported.
repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
Returns | |
---|---|
Type | Description |
NetworkConfig.Builder |
addNetworksBuilder(int index)
public NetworkConfig.Builder addNetworksBuilder(int index)
VPC networks to which the instance is connected. For this version, only a single network is supported.
repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
NetworkConfig.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Instance.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Instance.Builder |
build()
public Instance build()
Returns | |
---|---|
Type | Description |
Instance |
buildPartial()
public Instance buildPartial()
Returns | |
---|---|
Type | Description |
Instance |
clear()
public Instance.Builder clear()
Returns | |
---|---|
Type | Description |
Instance.Builder |
clearCreateTime()
public Instance.Builder clearCreateTime()
Output only. The time when the instance was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Instance.Builder |
clearDescription()
public Instance.Builder clearDescription()
The description of the instance (2048 characters or less).
string description = 2;
Returns | |
---|---|
Type | Description |
Instance.Builder | This builder for chaining. |
clearEtag()
public Instance.Builder clearEtag()
Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.
string etag = 12;
Returns | |
---|---|
Type | Description |
Instance.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Instance.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
Instance.Builder |
clearFileShares()
public Instance.Builder clearFileShares()
File system shares on the instance. For this version, only a single file share is supported.
repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
Returns | |
---|---|
Type | Description |
Instance.Builder |
clearLabels()
public Instance.Builder clearLabels()
Returns | |
---|---|
Type | Description |
Instance.Builder |
clearName()
public Instance.Builder clearName()
Output only. The resource name of the instance, in the format
projects/{project}/locations/{location}/instances/{instance}
.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Instance.Builder | This builder for chaining. |
clearNetworks()
public Instance.Builder clearNetworks()
VPC networks to which the instance is connected. For this version, only a single network is supported.
repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
Returns | |
---|---|
Type | Description |
Instance.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Instance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
Instance.Builder |
clearSatisfiesPzs()
public Instance.Builder clearSatisfiesPzs()
Output only. Reserved for future use.
.google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Instance.Builder |
clearState()
public Instance.Builder clearState()
Output only. The instance state.
.google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Instance.Builder | This builder for chaining. |
clearStatusMessage()
public Instance.Builder clearStatusMessage()
Output only. Additional information about the instance state, if available.
string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Instance.Builder | This builder for chaining. |
clearTier()
public Instance.Builder clearTier()
The service tier of the instance.
.google.cloud.filestore.v1.Instance.Tier tier = 8;
Returns | |
---|---|
Type | Description |
Instance.Builder | This builder for chaining. |
clone()
public Instance.Builder clone()
Returns | |
---|---|
Type | Description |
Instance.Builder |
containsLabels(String key)
public boolean containsLabels(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 9;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
boolean |
getCreateTime()
public Timestamp getCreateTime()
Output only. The time when the instance was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp | The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Output only. The time when the instance was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time when the instance was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public Instance getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Instance |
getDescription()
public String getDescription()
The description of the instance (2048 characters or less).
string description = 2;
Returns | |
---|---|
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
The description of the instance (2048 characters or less).
string description = 2;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getEtag()
public String getEtag()
Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.
string etag = 12;
Returns | |
---|---|
Type | Description |
String | The etag. |
getEtagBytes()
public ByteString getEtagBytes()
Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.
string etag = 12;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for etag. |
getFileShares(int index)
public FileShareConfig getFileShares(int index)
File system shares on the instance. For this version, only a single file share is supported.
repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
FileShareConfig |
getFileSharesBuilder(int index)
public FileShareConfig.Builder getFileSharesBuilder(int index)
File system shares on the instance. For this version, only a single file share is supported.
repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
FileShareConfig.Builder |
getFileSharesBuilderList()
public List<FileShareConfig.Builder> getFileSharesBuilderList()
File system shares on the instance. For this version, only a single file share is supported.
repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
Returns | |
---|---|
Type | Description |
List<Builder> |
getFileSharesCount()
public int getFileSharesCount()
File system shares on the instance. For this version, only a single file share is supported.
repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
Returns | |
---|---|
Type | Description |
int |
getFileSharesList()
public List<FileShareConfig> getFileSharesList()
File system shares on the instance. For this version, only a single file share is supported.
repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
Returns | |
---|---|
Type | Description |
List<FileShareConfig> |
getFileSharesOrBuilder(int index)
public FileShareConfigOrBuilder getFileSharesOrBuilder(int index)
File system shares on the instance. For this version, only a single file share is supported.
repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
FileShareConfigOrBuilder |
getFileSharesOrBuilderList()
public List<? extends FileShareConfigOrBuilder> getFileSharesOrBuilderList()
File system shares on the instance. For this version, only a single file share is supported.
repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.filestore.v1.FileShareConfigOrBuilder> |
getLabels()
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getLabelsCount()
public int getLabelsCount()
Resource labels to represent user provided metadata.
map<string, string> labels = 9;
Returns | |
---|---|
Type | Description |
int |
getLabelsMap()
public Map<String,String> getLabelsMap()
Resource labels to represent user provided metadata.
map<string, string> labels = 9;
Returns | |
---|---|
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Resource labels to represent user provided metadata.
map<string, string> labels = 9;
Parameters | |
---|---|
Name | Description |
key | String |
defaultValue | String |
Returns | |
---|---|
Type | Description |
String |
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 9;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
String |
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getName()
public String getName()
Output only. The resource name of the instance, in the format
projects/{project}/locations/{location}/instances/{instance}
.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
Output only. The resource name of the instance, in the format
projects/{project}/locations/{location}/instances/{instance}
.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for name. |
getNetworks(int index)
public NetworkConfig getNetworks(int index)
VPC networks to which the instance is connected. For this version, only a single network is supported.
repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
NetworkConfig |