Class ExistingDisk.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ExistingDisk.Builder>
-
- com.google.cloud.lifesciences.v2beta.ExistingDisk.Builder
-
- All Implemented Interfaces:
ExistingDiskOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ExistingDisk
public static final class ExistingDisk.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ExistingDisk.Builder> implements ExistingDiskOrBuilder
Configuration for an existing disk to be attached to the VM.
Protobuf typegoogle.cloud.lifesciences.v2beta.ExistingDisk
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExistingDisk.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ExistingDisk
build()
ExistingDisk
buildPartial()
ExistingDisk.Builder
clear()
ExistingDisk.Builder
clearDisk()
If `disk` contains slashes, the Cloud Life Sciences API assumes that it is a complete URL for the disk.ExistingDisk.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ExistingDisk.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ExistingDisk.Builder
clone()
ExistingDisk
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getDisk()
If `disk` contains slashes, the Cloud Life Sciences API assumes that it is a complete URL for the disk.com.google.protobuf.ByteString
getDiskBytes()
If `disk` contains slashes, the Cloud Life Sciences API assumes that it is a complete URL for the disk.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ExistingDisk.Builder
mergeFrom(ExistingDisk other)
ExistingDisk.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ExistingDisk.Builder
mergeFrom(com.google.protobuf.Message other)
ExistingDisk.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ExistingDisk.Builder
setDisk(String value)
If `disk` contains slashes, the Cloud Life Sciences API assumes that it is a complete URL for the disk.ExistingDisk.Builder
setDiskBytes(com.google.protobuf.ByteString value)
If `disk` contains slashes, the Cloud Life Sciences API assumes that it is a complete URL for the disk.ExistingDisk.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ExistingDisk.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ExistingDisk.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
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<ExistingDisk.Builder>
-
clear
public ExistingDisk.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<ExistingDisk.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<ExistingDisk.Builder>
-
getDefaultInstanceForType
public ExistingDisk getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ExistingDisk build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ExistingDisk buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ExistingDisk.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<ExistingDisk.Builder>
-
setField
public ExistingDisk.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<ExistingDisk.Builder>
-
clearField
public ExistingDisk.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<ExistingDisk.Builder>
-
clearOneof
public ExistingDisk.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<ExistingDisk.Builder>
-
setRepeatedField
public ExistingDisk.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<ExistingDisk.Builder>
-
addRepeatedField
public ExistingDisk.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<ExistingDisk.Builder>
-
mergeFrom
public ExistingDisk.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ExistingDisk.Builder>
-
mergeFrom
public ExistingDisk.Builder mergeFrom(ExistingDisk other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExistingDisk.Builder>
-
mergeFrom
public ExistingDisk.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<ExistingDisk.Builder>
- Throws:
IOException
-
getDisk
public String getDisk()
If `disk` contains slashes, the Cloud Life Sciences API assumes that it is a complete URL for the disk. If `disk` does not contain slashes, the Cloud Life Sciences API assumes that the disk is a zonal disk and a URL will be generated of the form `zones/<zone>/disks/<disk>`, where `<zone>` is the zone in which the instance is allocated. The disk must be ext4 formatted. If all `Mount` references to this disk have the `read_only` flag set to true, the disk will be attached in `read-only` mode and can be shared with other instances. Otherwise, the disk will be available for writing but cannot be shared.
string disk = 1;
- Specified by:
getDisk
in interfaceExistingDiskOrBuilder
- Returns:
- The disk.
-
getDiskBytes
public com.google.protobuf.ByteString getDiskBytes()
If `disk` contains slashes, the Cloud Life Sciences API assumes that it is a complete URL for the disk. If `disk` does not contain slashes, the Cloud Life Sciences API assumes that the disk is a zonal disk and a URL will be generated of the form `zones/<zone>/disks/<disk>`, where `<zone>` is the zone in which the instance is allocated. The disk must be ext4 formatted. If all `Mount` references to this disk have the `read_only` flag set to true, the disk will be attached in `read-only` mode and can be shared with other instances. Otherwise, the disk will be available for writing but cannot be shared.
string disk = 1;
- Specified by:
getDiskBytes
in interfaceExistingDiskOrBuilder
- Returns:
- The bytes for disk.
-
setDisk
public ExistingDisk.Builder setDisk(String value)
If `disk` contains slashes, the Cloud Life Sciences API assumes that it is a complete URL for the disk. If `disk` does not contain slashes, the Cloud Life Sciences API assumes that the disk is a zonal disk and a URL will be generated of the form `zones/<zone>/disks/<disk>`, where `<zone>` is the zone in which the instance is allocated. The disk must be ext4 formatted. If all `Mount` references to this disk have the `read_only` flag set to true, the disk will be attached in `read-only` mode and can be shared with other instances. Otherwise, the disk will be available for writing but cannot be shared.
string disk = 1;
- Parameters:
value
- The disk to set.- Returns:
- This builder for chaining.
-
clearDisk
public ExistingDisk.Builder clearDisk()
If `disk` contains slashes, the Cloud Life Sciences API assumes that it is a complete URL for the disk. If `disk` does not contain slashes, the Cloud Life Sciences API assumes that the disk is a zonal disk and a URL will be generated of the form `zones/<zone>/disks/<disk>`, where `<zone>` is the zone in which the instance is allocated. The disk must be ext4 formatted. If all `Mount` references to this disk have the `read_only` flag set to true, the disk will be attached in `read-only` mode and can be shared with other instances. Otherwise, the disk will be available for writing but cannot be shared.
string disk = 1;
- Returns:
- This builder for chaining.
-
setDiskBytes
public ExistingDisk.Builder setDiskBytes(com.google.protobuf.ByteString value)
If `disk` contains slashes, the Cloud Life Sciences API assumes that it is a complete URL for the disk. If `disk` does not contain slashes, the Cloud Life Sciences API assumes that the disk is a zonal disk and a URL will be generated of the form `zones/<zone>/disks/<disk>`, where `<zone>` is the zone in which the instance is allocated. The disk must be ext4 formatted. If all `Mount` references to this disk have the `read_only` flag set to true, the disk will be attached in `read-only` mode and can be shared with other instances. Otherwise, the disk will be available for writing but cannot be shared.
string disk = 1;
- Parameters:
value
- The bytes for disk to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ExistingDisk.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExistingDisk.Builder>
-
mergeUnknownFields
public final ExistingDisk.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExistingDisk.Builder>
-
-