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.GeneratedMessage.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.GeneratedMessage.Builder<RawDisk.Builder>
implements RawDiskOrBuilder
The parameters of the raw disk image.Protobuf type
google.cloud.compute.v1.RawDisk-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The format used to encode and transmit the block device, which should beTAR.[Deprecated] This field is deprecated.The full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is stored.The format used to encode and transmit the block device, which should beTAR.com.google.protobuf.ByteStringThe format used to encode and transmit the block device, which should beTAR.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptor[Deprecated] This field is deprecated.com.google.protobuf.ByteString[Deprecated] This field is deprecated.The full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is stored.com.google.protobuf.ByteStringThe full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is stored.booleanThe format used to encode and transmit the block device, which should beTAR.boolean[Deprecated] This field is deprecated.booleanThe full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is stored.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setContainerType(String value) The format used to encode and transmit the block device, which should beTAR.setContainerTypeBytes(com.google.protobuf.ByteString value) The format used to encode and transmit the block device, which should beTAR.setSha1Checksum(String value) [Deprecated] This field is deprecated.setSha1ChecksumBytes(com.google.protobuf.ByteString value) [Deprecated] This field is deprecated.The full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is stored.setSourceBytes(com.google.protobuf.ByteString value) The full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is stored.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<RawDisk.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RawDisk.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<RawDisk.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RawDisk.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RawDisk.Builder>
-
mergeFrom
public RawDisk.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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 beTAR. 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:
hasContainerTypein interfaceRawDiskOrBuilder- Returns:
- Whether the containerType field is set.
-
getContainerType
The format used to encode and transmit the block device, which should beTAR. 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:
getContainerTypein interfaceRawDiskOrBuilder- Returns:
- The containerType.
-
getContainerTypeBytes
public com.google.protobuf.ByteString getContainerTypeBytes()The format used to encode and transmit the block device, which should beTAR. 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:
getContainerTypeBytesin interfaceRawDiskOrBuilder- Returns:
- The bytes for containerType.
-
setContainerType
The format used to encode and transmit the block device, which should beTAR. 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
The format used to encode and transmit the block device, which should beTAR. 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
The format used to encode and transmit the block device, which should beTAR. 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:
hasSha1Checksumin interfaceRawDiskOrBuilder- Returns:
- Whether the sha1Checksum field is set.
-
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:
getSha1Checksumin 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:
getSha1ChecksumBytesin interfaceRawDiskOrBuilder- Returns:
- The bytes for sha1Checksum.
-
setSha1Checksum
[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
[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
[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 or Artifact Registry path where the raw disk image archive is stored. The following are valid formats: - https://storage.googleapis.com/bucket_name/image_archive_name - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name - projects/project/locations/location/repositories/repo/packages/package/versions/version_id - projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value 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:
hasSourcein interfaceRawDiskOrBuilder- Returns:
- Whether the source field is set.
-
getSource
The full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is stored. The following are valid formats: - https://storage.googleapis.com/bucket_name/image_archive_name - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name - projects/project/locations/location/repositories/repo/packages/package/versions/version_id - projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value 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:
getSourcein interfaceRawDiskOrBuilder- Returns:
- The source.
-
getSourceBytes
public com.google.protobuf.ByteString getSourceBytes()The full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is stored. The following are valid formats: - https://storage.googleapis.com/bucket_name/image_archive_name - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name - projects/project/locations/location/repositories/repo/packages/package/versions/version_id - projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value 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:
getSourceBytesin interfaceRawDiskOrBuilder- Returns:
- The bytes for source.
-
setSource
The full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is stored. The following are valid formats: - https://storage.googleapis.com/bucket_name/image_archive_name - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name - projects/project/locations/location/repositories/repo/packages/package/versions/version_id - projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value 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
The full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is stored. The following are valid formats: - https://storage.googleapis.com/bucket_name/image_archive_name - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name - projects/project/locations/location/repositories/repo/packages/package/versions/version_id - projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value 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
The full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is stored. The following are valid formats: - https://storage.googleapis.com/bucket_name/image_archive_name - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name - projects/project/locations/location/repositories/repo/packages/package/versions/version_id - projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value 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.
-