Class DiskParams (1.38.0)

public final class DiskParams extends GeneratedMessageV3 implements DiskParamsOrBuilder

Additional disk params.

Protobuf type google.cloud.compute.v1.DiskParams

Implements

DiskParamsOrBuilder

Static Fields

RESOURCE_MANAGER_TAGS_FIELD_NUMBER

public static final int RESOURCE_MANAGER_TAGS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DiskParams getDefaultInstance()
Returns
TypeDescription
DiskParams

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static DiskParams.Builder newBuilder()
Returns
TypeDescription
DiskParams.Builder

newBuilder(DiskParams prototype)

public static DiskParams.Builder newBuilder(DiskParams prototype)
Parameter
NameDescription
prototypeDiskParams
Returns
TypeDescription
DiskParams.Builder

parseDelimitedFrom(InputStream input)

public static DiskParams parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DiskParams
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DiskParams parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiskParams
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static DiskParams parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
DiskParams
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DiskParams parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiskParams
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DiskParams parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
DiskParams
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DiskParams parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiskParams
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DiskParams parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
DiskParams
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DiskParams parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiskParams
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static DiskParams parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DiskParams
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DiskParams parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiskParams
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static DiskParams parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
DiskParams
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DiskParams parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiskParams
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<DiskParams> parser()
Returns
TypeDescription
Parser<DiskParams>

Methods

containsResourceManagerTags(String key)

public boolean containsResourceManagerTags(String key)

Resource manager tags to be bound to the disk. Tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.

map<string, string> resource_manager_tags = 377671164;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public DiskParams getDefaultInstanceForType()
Returns
TypeDescription
DiskParams

getParserForType()

public Parser<DiskParams> getParserForType()
Returns
TypeDescription
Parser<DiskParams>
Overrides

getResourceManagerTags()

public Map<String,String> getResourceManagerTags()
Returns
TypeDescription
Map<String,String>

getResourceManagerTagsCount()

public int getResourceManagerTagsCount()

Resource manager tags to be bound to the disk. Tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.

map<string, string> resource_manager_tags = 377671164;

Returns
TypeDescription
int

getResourceManagerTagsMap()

public Map<String,String> getResourceManagerTagsMap()

Resource manager tags to be bound to the disk. Tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.

map<string, string> resource_manager_tags = 377671164;

Returns
TypeDescription
Map<String,String>

getResourceManagerTagsOrDefault(String key, String defaultValue)

public String getResourceManagerTagsOrDefault(String key, String defaultValue)

Resource manager tags to be bound to the disk. Tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.

map<string, string> resource_manager_tags = 377671164;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getResourceManagerTagsOrThrow(String key)

public String getResourceManagerTagsOrThrow(String key)

Resource manager tags to be bound to the disk. Tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.

map<string, string> resource_manager_tags = 377671164;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public DiskParams.Builder newBuilderForType()
Returns
TypeDescription
DiskParams.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DiskParams.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
DiskParams.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public DiskParams.Builder toBuilder()
Returns
TypeDescription
DiskParams.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException