public static final class AttachedDisk.InitializeParams extends GeneratedMessageV3 implements AttachedDisk.InitializeParamsOrBuilder
Specifies the parameters to initialize this disk.
Protobuf type google.cloud.backupdr.v1.AttachedDisk.InitializeParams
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AttachedDisk.InitializeParamsImplements
AttachedDisk.InitializeParamsOrBuilderStatic Fields
DISK_NAME_FIELD_NUMBER
public static final int DISK_NAME_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
REPLICA_ZONES_FIELD_NUMBER
public static final int REPLICA_ZONES_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static AttachedDisk.InitializeParams getDefaultInstance()
Returns | |
---|---|
Type | Description |
AttachedDisk.InitializeParams |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static AttachedDisk.InitializeParams.Builder newBuilder()
Returns | |
---|---|
Type | Description |
AttachedDisk.InitializeParams.Builder |
newBuilder(AttachedDisk.InitializeParams prototype)
public static AttachedDisk.InitializeParams.Builder newBuilder(AttachedDisk.InitializeParams prototype)
Parameter | |
---|---|
Name | Description |
prototype |
AttachedDisk.InitializeParams |
Returns | |
---|---|
Type | Description |
AttachedDisk.InitializeParams.Builder |
parseDelimitedFrom(InputStream input)
public static AttachedDisk.InitializeParams parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
AttachedDisk.InitializeParams |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AttachedDisk.InitializeParams parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AttachedDisk.InitializeParams |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static AttachedDisk.InitializeParams parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data |
byte[] |
Returns | |
---|---|
Type | Description |
AttachedDisk.InitializeParams |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AttachedDisk.InitializeParams parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AttachedDisk.InitializeParams |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static AttachedDisk.InitializeParams parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data |
ByteString |
Returns | |
---|---|
Type | Description |
AttachedDisk.InitializeParams |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AttachedDisk.InitializeParams parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AttachedDisk.InitializeParams |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static AttachedDisk.InitializeParams parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input |
CodedInputStream |
Returns | |
---|---|
Type | Description |
AttachedDisk.InitializeParams |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AttachedDisk.InitializeParams parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AttachedDisk.InitializeParams |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static AttachedDisk.InitializeParams parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
AttachedDisk.InitializeParams |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AttachedDisk.InitializeParams parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AttachedDisk.InitializeParams |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static AttachedDisk.InitializeParams parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data |
ByteBuffer |
Returns | |
---|---|
Type | Description |
AttachedDisk.InitializeParams |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AttachedDisk.InitializeParams parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AttachedDisk.InitializeParams |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<AttachedDisk.InitializeParams> parser()
Returns | |
---|---|
Type | Description |
Parser<InitializeParams> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj |
Object |
Returns | |
---|---|
Type | Description |
boolean |
getDefaultInstanceForType()
public AttachedDisk.InitializeParams getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
AttachedDisk.InitializeParams |
getDiskName()
public String getDiskName()
Optional. Specifies the disk name. If not specified, the default is to use the name of the instance.
optional string disk_name = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The diskName. |
getDiskNameBytes()
public ByteString getDiskNameBytes()
Optional. Specifies the disk name. If not specified, the default is to use the name of the instance.
optional string disk_name = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for diskName. |
getParserForType()
public Parser<AttachedDisk.InitializeParams> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<InitializeParams> |
getReplicaZones(int index)
public String getReplicaZones(int index)
Optional. URL of the zone where the disk should be created. Required for each regional disk associated with the instance.
repeated string replica_zones = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String |
The replicaZones at the given index. |
getReplicaZonesBytes(int index)
public ByteString getReplicaZonesBytes(int index)
Optional. URL of the zone where the disk should be created. Required for each regional disk associated with the instance.
repeated string replica_zones = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString |
The bytes of the replicaZones at the given index. |
getReplicaZonesCount()
public int getReplicaZonesCount()
Optional. URL of the zone where the disk should be created. Required for each regional disk associated with the instance.
repeated string replica_zones = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
The count of replicaZones. |
getReplicaZonesList()
public ProtocolStringList getReplicaZonesList()
Optional. URL of the zone where the disk should be created. Required for each regional disk associated with the instance.
repeated string replica_zones = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ProtocolStringList |
A list containing the replicaZones. |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
hasDiskName()
public boolean hasDiskName()
Optional. Specifies the disk name. If not specified, the default is to use the name of the instance.
optional string disk_name = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the diskName field is set. |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public AttachedDisk.InitializeParams.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
AttachedDisk.InitializeParams.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AttachedDisk.InitializeParams.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent |
BuilderParent |
Returns | |
---|---|
Type | Description |
AttachedDisk.InitializeParams.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused |
UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public AttachedDisk.InitializeParams.Builder toBuilder()
Returns | |
---|---|
Type | Description |
AttachedDisk.InitializeParams.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output |
CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |