Package com.google.cloud.compute.v1
Class RawDisk.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<RawDisk.Builder>
-
- com.google.cloud.compute.v1.RawDisk.Builder
-
- All Implemented Interfaces:
RawDiskOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- RawDisk
public static final class RawDisk.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RawDisk.Builder> implements RawDiskOrBuilder
The parameters of the raw disk image.
Protobuf typegoogle.cloud.compute.v1.RawDisk
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RawDisk.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
RawDisk
build()
RawDisk
buildPartial()
RawDisk.Builder
clear()
RawDisk.Builder
clearContainerType()
The format used to encode and transmit the block device, which should be TAR.RawDisk.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
RawDisk.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
RawDisk.Builder
clearSha1Checksum()
[Deprecated] This field is deprecated.RawDisk.Builder
clearSource()
The full Google Cloud Storage URL where the raw disk image archive is stored.RawDisk.Builder
clone()
String
getContainerType()
The format used to encode and transmit the block device, which should be TAR.com.google.protobuf.ByteString
getContainerTypeBytes()
The format used to encode and transmit the block device, which should be TAR.RawDisk
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getSha1Checksum()
[Deprecated] This field is deprecated.com.google.protobuf.ByteString
getSha1ChecksumBytes()
[Deprecated] This field is deprecated.String
getSource()
The full Google Cloud Storage URL where the raw disk image archive is stored.com.google.protobuf.ByteString
getSourceBytes()
The full Google Cloud Storage URL where the raw disk image archive is stored.boolean
hasContainerType()
The format used to encode and transmit the block device, which should be TAR.boolean
hasSha1Checksum()
[Deprecated] This field is deprecated.boolean
hasSource()
The full Google Cloud Storage URL where the raw disk image archive is stored.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
RawDisk.Builder
mergeFrom(RawDisk other)
RawDisk.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
RawDisk.Builder
mergeFrom(com.google.protobuf.Message other)
RawDisk.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
RawDisk.Builder
setContainerType(String value)
The format used to encode and transmit the block device, which should be TAR.RawDisk.Builder
setContainerTypeBytes(com.google.protobuf.ByteString value)
The format used to encode and transmit the block device, which should be TAR.RawDisk.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
RawDisk.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
RawDisk.Builder
setSha1Checksum(String value)
[Deprecated] This field is deprecated.RawDisk.Builder
setSha1ChecksumBytes(com.google.protobuf.ByteString value)
[Deprecated] This field is deprecated.RawDisk.Builder
setSource(String value)
The full Google Cloud Storage URL where the raw disk image archive is stored.RawDisk.Builder
setSourceBytes(com.google.protobuf.ByteString value)
The full Google Cloud Storage URL where the raw disk image archive is stored.RawDisk.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<RawDisk.Builder>
-
clear
public RawDisk.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<RawDisk.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<RawDisk.Builder>
-
getDefaultInstanceForType
public RawDisk getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public RawDisk build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RawDisk buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RawDisk.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<RawDisk.Builder>
-
setField
public RawDisk.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<RawDisk.Builder>
-
clearField
public RawDisk.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<RawDisk.Builder>
-
clearOneof
public RawDisk.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<RawDisk.Builder>
-
setRepeatedField
public RawDisk.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<RawDisk.Builder>
-
addRepeatedField
public RawDisk.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<RawDisk.Builder>
-
mergeFrom
public RawDisk.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RawDisk.Builder>
-
mergeFrom
public RawDisk.Builder mergeFrom(RawDisk other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<RawDisk.Builder>
-
mergeFrom
public RawDisk.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<RawDisk.Builder>
- Throws:
IOException
-
hasContainerType
public boolean hasContainerType()
The format used to encode and transmit the block device, which should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created. Check the ContainerType enum for the list of possible values.
optional string container_type = 318809144;
- Specified by:
hasContainerType
in interfaceRawDiskOrBuilder
- Returns:
- Whether the containerType field is set.
-
getContainerType
public String getContainerType()
The format used to encode and transmit the block device, which should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created. Check the ContainerType enum for the list of possible values.
optional string container_type = 318809144;
- Specified by:
getContainerType
in interfaceRawDiskOrBuilder
- Returns:
- The containerType.
-
getContainerTypeBytes
public com.google.protobuf.ByteString getContainerTypeBytes()
The format used to encode and transmit the block device, which should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created. Check the ContainerType enum for the list of possible values.
optional string container_type = 318809144;
- Specified by:
getContainerTypeBytes
in interfaceRawDiskOrBuilder
- Returns:
- The bytes for containerType.
-
setContainerType
public RawDisk.Builder setContainerType(String value)
The format used to encode and transmit the block device, which should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created. Check the ContainerType enum for the list of possible values.
optional string container_type = 318809144;
- Parameters:
value
- The containerType to set.- Returns:
- This builder for chaining.
-
clearContainerType
public RawDisk.Builder clearContainerType()
The format used to encode and transmit the block device, which should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created. Check the ContainerType enum for the list of possible values.
optional string container_type = 318809144;
- Returns:
- This builder for chaining.
-
setContainerTypeBytes
public RawDisk.Builder setContainerTypeBytes(com.google.protobuf.ByteString value)
The format used to encode and transmit the block device, which should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created. Check the ContainerType enum for the list of possible values.
optional string container_type = 318809144;
- Parameters:
value
- The bytes for containerType to set.- Returns:
- This builder for chaining.
-
hasSha1Checksum
public boolean hasSha1Checksum()
[Deprecated] This field is deprecated. An optional SHA1 checksum of the disk image before unpackaging provided by the client when the disk image is created.
optional string sha1_checksum = 314444349;
- Specified by:
hasSha1Checksum
in interfaceRawDiskOrBuilder
- Returns:
- Whether the sha1Checksum field is set.
-
getSha1Checksum
public String getSha1Checksum()
[Deprecated] This field is deprecated. An optional SHA1 checksum of the disk image before unpackaging provided by the client when the disk image is created.
optional string sha1_checksum = 314444349;
- Specified by:
getSha1Checksum
in interfaceRawDiskOrBuilder
- Returns:
- The sha1Checksum.
-
getSha1ChecksumBytes
public com.google.protobuf.ByteString getSha1ChecksumBytes()
[Deprecated] This field is deprecated. An optional SHA1 checksum of the disk image before unpackaging provided by the client when the disk image is created.
optional string sha1_checksum = 314444349;
- Specified by:
getSha1ChecksumBytes
in interfaceRawDiskOrBuilder
- Returns:
- The bytes for sha1Checksum.
-
setSha1Checksum
public RawDisk.Builder setSha1Checksum(String value)
[Deprecated] This field is deprecated. An optional SHA1 checksum of the disk image before unpackaging provided by the client when the disk image is created.
optional string sha1_checksum = 314444349;
- Parameters:
value
- The sha1Checksum to set.- Returns:
- This builder for chaining.
-
clearSha1Checksum
public RawDisk.Builder clearSha1Checksum()
[Deprecated] This field is deprecated. An optional SHA1 checksum of the disk image before unpackaging provided by the client when the disk image is created.
optional string sha1_checksum = 314444349;
- Returns:
- This builder for chaining.
-
setSha1ChecksumBytes
public RawDisk.Builder setSha1ChecksumBytes(com.google.protobuf.ByteString value)
[Deprecated] This field is deprecated. An optional SHA1 checksum of the disk image before unpackaging provided by the client when the disk image is created.
optional string sha1_checksum = 314444349;
- Parameters:
value
- The bytes for sha1Checksum to set.- Returns:
- This builder for chaining.
-
hasSource
public boolean hasSource()
The full Google Cloud Storage URL where the raw disk image archive is stored. The following are valid formats for the URL: - https://storage.googleapis.com/bucket_name/image_archive_name - https://storage.googleapis.com/bucket_name/folder_name/ image_archive_name In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL
optional string source = 177235995;
- Specified by:
hasSource
in interfaceRawDiskOrBuilder
- Returns:
- Whether the source field is set.
-
getSource
public String getSource()
The full Google Cloud Storage URL where the raw disk image archive is stored. The following are valid formats for the URL: - https://storage.googleapis.com/bucket_name/image_archive_name - https://storage.googleapis.com/bucket_name/folder_name/ image_archive_name In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL
optional string source = 177235995;
- Specified by:
getSource
in interfaceRawDiskOrBuilder
- Returns:
- The source.
-
getSourceBytes
public com.google.protobuf.ByteString getSourceBytes()
The full Google Cloud Storage URL where the raw disk image archive is stored. The following are valid formats for the URL: - https://storage.googleapis.com/bucket_name/image_archive_name - https://storage.googleapis.com/bucket_name/folder_name/ image_archive_name In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL
optional string source = 177235995;
- Specified by:
getSourceBytes
in interfaceRawDiskOrBuilder
- Returns:
- The bytes for source.
-
setSource
public RawDisk.Builder setSource(String value)
The full Google Cloud Storage URL where the raw disk image archive is stored. The following are valid formats for the URL: - https://storage.googleapis.com/bucket_name/image_archive_name - https://storage.googleapis.com/bucket_name/folder_name/ image_archive_name In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL
optional string source = 177235995;
- Parameters:
value
- The source to set.- Returns:
- This builder for chaining.
-
clearSource
public RawDisk.Builder clearSource()
The full Google Cloud Storage URL where the raw disk image archive is stored. The following are valid formats for the URL: - https://storage.googleapis.com/bucket_name/image_archive_name - https://storage.googleapis.com/bucket_name/folder_name/ image_archive_name In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL
optional string source = 177235995;
- Returns:
- This builder for chaining.
-
setSourceBytes
public RawDisk.Builder setSourceBytes(com.google.protobuf.ByteString value)
The full Google Cloud Storage URL where the raw disk image archive is stored. The following are valid formats for the URL: - https://storage.googleapis.com/bucket_name/image_archive_name - https://storage.googleapis.com/bucket_name/folder_name/ image_archive_name In order to create an image, you must provide the full or partial URL of one of the following: - The rawDisk.source URL - The sourceDisk URL - The sourceImage URL - The sourceSnapshot URL
optional string source = 177235995;
- Parameters:
value
- The bytes for source to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final RawDisk.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RawDisk.Builder>
-
mergeUnknownFields
public final RawDisk.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RawDisk.Builder>
-
-