Package com.google.cloud.compute.v1
Class DiskType.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<DiskType.Builder>
-
- com.google.cloud.compute.v1.DiskType.Builder
-
- All Implemented Interfaces:
DiskTypeOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- DiskType
public static final class DiskType.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DiskType.Builder> implements DiskTypeOrBuilder
Represents a Disk Type resource. Google Compute Engine has two Disk Type resources: * [Regional](/compute/docs/reference/rest/v1/regionDiskTypes) * [Zonal](/compute/docs/reference/rest/v1/diskTypes) You can choose from a variety of disk types based on your needs. For more information, read Storage options. The diskTypes resource represents disk types for a zonal persistent disk. For more information, read Zonal persistent disks. The regionDiskTypes resource represents disk types for a regional persistent disk. For more information, read Regional persistent disks.
Protobuf typegoogle.cloud.compute.v1.DiskType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DiskType.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
DiskType
build()
DiskType
buildPartial()
DiskType.Builder
clear()
DiskType.Builder
clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.DiskType.Builder
clearDefaultDiskSizeGb()
[Output Only] Server-defined default disk size in GB.DiskType.Builder
clearDeprecated()
[Output Only] The deprecation status associated with this disk type.DiskType.Builder
clearDescription()
[Output Only] An optional description of this resource.DiskType.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
DiskType.Builder
clearId()
[Output Only] The unique identifier for the resource.DiskType.Builder
clearKind()
[Output Only] Type of the resource.DiskType.Builder
clearName()
[Output Only] Name of the resource.DiskType.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
DiskType.Builder
clearRegion()
[Output Only] URL of the region where the disk type resides.DiskType.Builder
clearSelfLink()
[Output Only] Server-defined URL for the resource.DiskType.Builder
clearValidDiskSize()
[Output Only] An optional textual description of the valid disk size, such as "10GB-10TB".DiskType.Builder
clearZone()
[Output Only] URL of the zone where the disk type resides.DiskType.Builder
clone()
String
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.com.google.protobuf.ByteString
getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.long
getDefaultDiskSizeGb()
[Output Only] Server-defined default disk size in GB.DiskType
getDefaultInstanceForType()
DeprecationStatus
getDeprecated()
[Output Only] The deprecation status associated with this disk type.DeprecationStatus.Builder
getDeprecatedBuilder()
[Output Only] The deprecation status associated with this disk type.DeprecationStatusOrBuilder
getDeprecatedOrBuilder()
[Output Only] The deprecation status associated with this disk type.String
getDescription()
[Output Only] An optional description of this resource.com.google.protobuf.ByteString
getDescriptionBytes()
[Output Only] An optional description of this resource.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
long
getId()
[Output Only] The unique identifier for the resource.String
getKind()
[Output Only] Type of the resource.com.google.protobuf.ByteString
getKindBytes()
[Output Only] Type of the resource.String
getName()
[Output Only] Name of the resource.com.google.protobuf.ByteString
getNameBytes()
[Output Only] Name of the resource.String
getRegion()
[Output Only] URL of the region where the disk type resides.com.google.protobuf.ByteString
getRegionBytes()
[Output Only] URL of the region where the disk type resides.String
getSelfLink()
[Output Only] Server-defined URL for the resource.com.google.protobuf.ByteString
getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.String
getValidDiskSize()
[Output Only] An optional textual description of the valid disk size, such as "10GB-10TB".com.google.protobuf.ByteString
getValidDiskSizeBytes()
[Output Only] An optional textual description of the valid disk size, such as "10GB-10TB".String
getZone()
[Output Only] URL of the zone where the disk type resides.com.google.protobuf.ByteString
getZoneBytes()
[Output Only] URL of the zone where the disk type resides.boolean
hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.boolean
hasDefaultDiskSizeGb()
[Output Only] Server-defined default disk size in GB.boolean
hasDeprecated()
[Output Only] The deprecation status associated with this disk type.boolean
hasDescription()
[Output Only] An optional description of this resource.boolean
hasId()
[Output Only] The unique identifier for the resource.boolean
hasKind()
[Output Only] Type of the resource.boolean
hasName()
[Output Only] Name of the resource.boolean
hasRegion()
[Output Only] URL of the region where the disk type resides.boolean
hasSelfLink()
[Output Only] Server-defined URL for the resource.boolean
hasValidDiskSize()
[Output Only] An optional textual description of the valid disk size, such as "10GB-10TB".boolean
hasZone()
[Output Only] URL of the zone where the disk type resides.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
DiskType.Builder
mergeDeprecated(DeprecationStatus value)
[Output Only] The deprecation status associated with this disk type.DiskType.Builder
mergeFrom(DiskType other)
DiskType.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
DiskType.Builder
mergeFrom(com.google.protobuf.Message other)
DiskType.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
DiskType.Builder
setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.DiskType.Builder
setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.DiskType.Builder
setDefaultDiskSizeGb(long value)
[Output Only] Server-defined default disk size in GB.DiskType.Builder
setDeprecated(DeprecationStatus value)
[Output Only] The deprecation status associated with this disk type.DiskType.Builder
setDeprecated(DeprecationStatus.Builder builderForValue)
[Output Only] The deprecation status associated with this disk type.DiskType.Builder
setDescription(String value)
[Output Only] An optional description of this resource.DiskType.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
[Output Only] An optional description of this resource.DiskType.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
DiskType.Builder
setId(long value)
[Output Only] The unique identifier for the resource.DiskType.Builder
setKind(String value)
[Output Only] Type of the resource.DiskType.Builder
setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource.DiskType.Builder
setName(String value)
[Output Only] Name of the resource.DiskType.Builder
setNameBytes(com.google.protobuf.ByteString value)
[Output Only] Name of the resource.DiskType.Builder
setRegion(String value)
[Output Only] URL of the region where the disk type resides.DiskType.Builder
setRegionBytes(com.google.protobuf.ByteString value)
[Output Only] URL of the region where the disk type resides.DiskType.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
DiskType.Builder
setSelfLink(String value)
[Output Only] Server-defined URL for the resource.DiskType.Builder
setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for the resource.DiskType.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
DiskType.Builder
setValidDiskSize(String value)
[Output Only] An optional textual description of the valid disk size, such as "10GB-10TB".DiskType.Builder
setValidDiskSizeBytes(com.google.protobuf.ByteString value)
[Output Only] An optional textual description of the valid disk size, such as "10GB-10TB".DiskType.Builder
setZone(String value)
[Output Only] URL of the zone where the disk type resides.DiskType.Builder
setZoneBytes(com.google.protobuf.ByteString value)
[Output Only] URL of the zone where the disk type resides.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiskType.Builder>
-
clear
public DiskType.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiskType.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiskType.Builder>
-
getDefaultInstanceForType
public DiskType getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public DiskType build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DiskType buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DiskType.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiskType.Builder>
-
setField
public DiskType.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiskType.Builder>
-
clearField
public DiskType.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiskType.Builder>
-
clearOneof
public DiskType.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiskType.Builder>
-
setRepeatedField
public DiskType.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiskType.Builder>
-
addRepeatedField
public DiskType.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiskType.Builder>
-
mergeFrom
public DiskType.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DiskType.Builder>
-
mergeFrom
public DiskType.Builder mergeFrom(DiskType other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiskType.Builder>
-
mergeFrom
public DiskType.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DiskType.Builder>
- Throws:
IOException
-
hasCreationTimestamp
public boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
hasCreationTimestamp
in interfaceDiskTypeOrBuilder
- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
public String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
getCreationTimestamp
in interfaceDiskTypeOrBuilder
- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Specified by:
getCreationTimestampBytes
in interfaceDiskTypeOrBuilder
- Returns:
- The bytes for creationTimestamp.
-
setCreationTimestamp
public DiskType.Builder setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Parameters:
value
- The creationTimestamp to set.- Returns:
- This builder for chaining.
-
clearCreationTimestamp
public DiskType.Builder clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Returns:
- This builder for chaining.
-
setCreationTimestampBytes
public DiskType.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Parameters:
value
- The bytes for creationTimestamp to set.- Returns:
- This builder for chaining.
-
hasDefaultDiskSizeGb
public boolean hasDefaultDiskSizeGb()
[Output Only] Server-defined default disk size in GB.
optional int64 default_disk_size_gb = 270619253;
- Specified by:
hasDefaultDiskSizeGb
in interfaceDiskTypeOrBuilder
- Returns:
- Whether the defaultDiskSizeGb field is set.
-
getDefaultDiskSizeGb
public long getDefaultDiskSizeGb()
[Output Only] Server-defined default disk size in GB.
optional int64 default_disk_size_gb = 270619253;
- Specified by:
getDefaultDiskSizeGb
in interfaceDiskTypeOrBuilder
- Returns:
- The defaultDiskSizeGb.
-
setDefaultDiskSizeGb
public DiskType.Builder setDefaultDiskSizeGb(long value)
[Output Only] Server-defined default disk size in GB.
optional int64 default_disk_size_gb = 270619253;
- Parameters:
value
- The defaultDiskSizeGb to set.- Returns:
- This builder for chaining.
-
clearDefaultDiskSizeGb
public DiskType.Builder clearDefaultDiskSizeGb()
[Output Only] Server-defined default disk size in GB.
optional int64 default_disk_size_gb = 270619253;
- Returns:
- This builder for chaining.
-
hasDeprecated
public boolean hasDeprecated()
[Output Only] The deprecation status associated with this disk type.
optional .google.cloud.compute.v1.DeprecationStatus deprecated = 515138995;
- Specified by:
hasDeprecated
in interfaceDiskTypeOrBuilder
- Returns:
- Whether the deprecated field is set.
-
getDeprecated
public DeprecationStatus getDeprecated()
[Output Only] The deprecation status associated with this disk type.
optional .google.cloud.compute.v1.DeprecationStatus deprecated = 515138995;
- Specified by:
getDeprecated
in interfaceDiskTypeOrBuilder
- Returns:
- The deprecated.
-
setDeprecated
public DiskType.Builder setDeprecated(DeprecationStatus value)
[Output Only] The deprecation status associated with this disk type.
optional .google.cloud.compute.v1.DeprecationStatus deprecated = 515138995;
-
setDeprecated
public DiskType.Builder setDeprecated(DeprecationStatus.Builder builderForValue)
[Output Only] The deprecation status associated with this disk type.
optional .google.cloud.compute.v1.DeprecationStatus deprecated = 515138995;
-
mergeDeprecated
public DiskType.Builder mergeDeprecated(DeprecationStatus value)
[Output Only] The deprecation status associated with this disk type.
optional .google.cloud.compute.v1.DeprecationStatus deprecated = 515138995;
-
clearDeprecated
public DiskType.Builder clearDeprecated()
[Output Only] The deprecation status associated with this disk type.
optional .google.cloud.compute.v1.DeprecationStatus deprecated = 515138995;
-
getDeprecatedBuilder
public DeprecationStatus.Builder getDeprecatedBuilder()
[Output Only] The deprecation status associated with this disk type.
optional .google.cloud.compute.v1.DeprecationStatus deprecated = 515138995;
-
getDeprecatedOrBuilder
public DeprecationStatusOrBuilder getDeprecatedOrBuilder()
[Output Only] The deprecation status associated with this disk type.
optional .google.cloud.compute.v1.DeprecationStatus deprecated = 515138995;
- Specified by:
getDeprecatedOrBuilder
in interfaceDiskTypeOrBuilder
-
hasDescription
public boolean hasDescription()
[Output Only] An optional description of this resource.
optional string description = 422937596;
- Specified by:
hasDescription
in interfaceDiskTypeOrBuilder
- Returns:
- Whether the description field is set.
-
getDescription
public String getDescription()
[Output Only] An optional description of this resource.
optional string description = 422937596;
- Specified by:
getDescription
in interfaceDiskTypeOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
[Output Only] An optional description of this resource.
optional string description = 422937596;
- Specified by:
getDescriptionBytes
in interfaceDiskTypeOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public DiskType.Builder setDescription(String value)
[Output Only] An optional description of this resource.
optional string description = 422937596;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public DiskType.Builder clearDescription()
[Output Only] An optional description of this resource.
optional string description = 422937596;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
public DiskType.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
[Output Only] An optional description of this resource.
optional string description = 422937596;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasId
public boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Specified by:
hasId
in interfaceDiskTypeOrBuilder
- Returns:
- Whether the id field is set.
-
getId
public long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Specified by:
getId
in interfaceDiskTypeOrBuilder
- Returns:
- The id.
-
setId
public DiskType.Builder setId(long value)
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
public DiskType.Builder clearId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
- Returns:
- This builder for chaining.
-
hasKind
public boolean hasKind()
[Output Only] Type of the resource. Always compute#diskType for disk types.
optional string kind = 3292052;
- Specified by:
hasKind
in interfaceDiskTypeOrBuilder
- Returns:
- Whether the kind field is set.
-
getKind
public String getKind()
[Output Only] Type of the resource. Always compute#diskType for disk types.
optional string kind = 3292052;
- Specified by:
getKind
in interfaceDiskTypeOrBuilder
- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#diskType for disk types.
optional string kind = 3292052;
- Specified by:
getKindBytes
in interfaceDiskTypeOrBuilder
- Returns:
- The bytes for kind.
-
setKind
public DiskType.Builder setKind(String value)
[Output Only] Type of the resource. Always compute#diskType for disk types.
optional string kind = 3292052;
- Parameters:
value
- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
public DiskType.Builder clearKind()
[Output Only] Type of the resource. Always compute#diskType for disk types.
optional string kind = 3292052;
- Returns:
- This builder for chaining.
-
setKindBytes
public DiskType.Builder setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource. Always compute#diskType for disk types.
optional string kind = 3292052;
- Parameters:
value
- The bytes for kind to set.- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()
[Output Only] Name of the resource.
optional string name = 3373707;
- Specified by:
hasName
in interfaceDiskTypeOrBuilder
- Returns:
- Whether the name field is set.
-
getName
public String getName()
[Output Only] Name of the resource.
optional string name = 3373707;
- Specified by:
getName
in interfaceDiskTypeOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
[Output Only] Name of the resource.
optional string name = 3373707;
- Specified by:
getNameBytes
in interfaceDiskTypeOrBuilder
- Returns:
- The bytes for name.
-
setName
public DiskType.Builder setName(String value)
[Output Only] Name of the resource.
optional string name = 3373707;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public DiskType.Builder clearName()
[Output Only] Name of the resource.
optional string name = 3373707;
- Returns:
- This builder for chaining.
-
setNameBytes
public DiskType.Builder setNameBytes(com.google.protobuf.ByteString value)
[Output Only] Name of the resource.
optional string name = 3373707;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasRegion
public boolean hasRegion()
[Output Only] URL of the region where the disk type resides. Only applicable for regional resources. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string region = 138946292;
- Specified by:
hasRegion
in interfaceDiskTypeOrBuilder
- Returns:
- Whether the region field is set.
-
getRegion
public String getRegion()
[Output Only] URL of the region where the disk type resides. Only applicable for regional resources. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string region = 138946292;
- Specified by:
getRegion
in interfaceDiskTypeOrBuilder
- Returns:
- The region.
-
getRegionBytes
public com.google.protobuf.ByteString getRegionBytes()
[Output Only] URL of the region where the disk type resides. Only applicable for regional resources. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string region = 138946292;
- Specified by:
getRegionBytes
in interfaceDiskTypeOrBuilder
- Returns:
- The bytes for region.
-
setRegion
public DiskType.Builder setRegion(String value)
[Output Only] URL of the region where the disk type resides. Only applicable for regional resources. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string region = 138946292;
- Parameters:
value
- The region to set.- Returns:
- This builder for chaining.
-
clearRegion
public DiskType.Builder clearRegion()
[Output Only] URL of the region where the disk type resides. Only applicable for regional resources. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string region = 138946292;
- Returns:
- This builder for chaining.
-
setRegionBytes
public DiskType.Builder setRegionBytes(com.google.protobuf.ByteString value)
[Output Only] URL of the region where the disk type resides. Only applicable for regional resources. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string region = 138946292;
- Parameters:
value
- The bytes for region to set.- Returns:
- This builder for chaining.
-
hasSelfLink
public boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Specified by:
hasSelfLink
in interfaceDiskTypeOrBuilder
- Returns:
- Whether the selfLink field is set.
-
getSelfLink
public String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Specified by:
getSelfLink
in interfaceDiskTypeOrBuilder
- Returns:
- The selfLink.
-
getSelfLinkBytes
public com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Specified by:
getSelfLinkBytes
in interfaceDiskTypeOrBuilder
- Returns:
- The bytes for selfLink.
-
setSelfLink
public DiskType.Builder setSelfLink(String value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Parameters:
value
- The selfLink to set.- Returns:
- This builder for chaining.
-
clearSelfLink
public DiskType.Builder clearSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Returns:
- This builder for chaining.
-
setSelfLinkBytes
public DiskType.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
- Parameters:
value
- The bytes for selfLink to set.- Returns:
- This builder for chaining.
-
hasValidDiskSize
public boolean hasValidDiskSize()
[Output Only] An optional textual description of the valid disk size, such as "10GB-10TB".
optional string valid_disk_size = 493962464;
- Specified by:
hasValidDiskSize
in interfaceDiskTypeOrBuilder
- Returns:
- Whether the validDiskSize field is set.
-
getValidDiskSize
public String getValidDiskSize()
[Output Only] An optional textual description of the valid disk size, such as "10GB-10TB".
optional string valid_disk_size = 493962464;
- Specified by:
getValidDiskSize
in interfaceDiskTypeOrBuilder
- Returns:
- The validDiskSize.
-
getValidDiskSizeBytes
public com.google.protobuf.ByteString getValidDiskSizeBytes()
[Output Only] An optional textual description of the valid disk size, such as "10GB-10TB".
optional string valid_disk_size = 493962464;
- Specified by:
getValidDiskSizeBytes
in interfaceDiskTypeOrBuilder
- Returns:
- The bytes for validDiskSize.
-
setValidDiskSize
public DiskType.Builder setValidDiskSize(String value)
[Output Only] An optional textual description of the valid disk size, such as "10GB-10TB".
optional string valid_disk_size = 493962464;
- Parameters:
value
- The validDiskSize to set.- Returns:
- This builder for chaining.
-
clearValidDiskSize
public DiskType.Builder clearValidDiskSize()
[Output Only] An optional textual description of the valid disk size, such as "10GB-10TB".
optional string valid_disk_size = 493962464;
- Returns:
- This builder for chaining.
-
setValidDiskSizeBytes
public DiskType.Builder setValidDiskSizeBytes(com.google.protobuf.ByteString value)
[Output Only] An optional textual description of the valid disk size, such as "10GB-10TB".
optional string valid_disk_size = 493962464;
- Parameters:
value
- The bytes for validDiskSize to set.- Returns:
- This builder for chaining.
-
hasZone
public boolean hasZone()
[Output Only] URL of the zone where the disk type resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string zone = 3744684;
- Specified by:
hasZone
in interfaceDiskTypeOrBuilder
- Returns:
- Whether the zone field is set.
-
getZone
public String getZone()
[Output Only] URL of the zone where the disk type resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string zone = 3744684;
- Specified by:
getZone
in interfaceDiskTypeOrBuilder
- Returns:
- The zone.
-
getZoneBytes
public com.google.protobuf.ByteString getZoneBytes()
[Output Only] URL of the zone where the disk type resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string zone = 3744684;
- Specified by:
getZoneBytes
in interfaceDiskTypeOrBuilder
- Returns:
- The bytes for zone.
-
setZone
public DiskType.Builder setZone(String value)
[Output Only] URL of the zone where the disk type resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string zone = 3744684;
- Parameters:
value
- The zone to set.- Returns:
- This builder for chaining.
-
clearZone
public DiskType.Builder clearZone()
[Output Only] URL of the zone where the disk type resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string zone = 3744684;
- Returns:
- This builder for chaining.
-
setZoneBytes
public DiskType.Builder setZoneBytes(com.google.protobuf.ByteString value)
[Output Only] URL of the zone where the disk type resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
optional string zone = 3744684;
- Parameters:
value
- The bytes for zone to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final DiskType.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiskType.Builder>
-
mergeUnknownFields
public final DiskType.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiskType.Builder>
-
-