public final class NewReservedInstancesConfig extends GeneratedMessage implements NewReservedInstancesConfigOrBuilderWhen set in a ComputeResourceConfig, indicates that VM instances should be created from a reservation.
Protobuf type google.cloud.hypercomputecluster.v1beta.NewReservedInstancesConfig
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > NewReservedInstancesConfigImplements
NewReservedInstancesConfigOrBuilderStatic Fields
RESERVATION_FIELD_NUMBER
public static final int RESERVATION_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static NewReservedInstancesConfig getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static NewReservedInstancesConfig.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig.Builder |
|
newBuilder(NewReservedInstancesConfig prototype)
public static NewReservedInstancesConfig.Builder newBuilder(NewReservedInstancesConfig prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
NewReservedInstancesConfig |
| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig.Builder |
|
parseDelimitedFrom(InputStream input)
public static NewReservedInstancesConfig parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static NewReservedInstancesConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static NewReservedInstancesConfig parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static NewReservedInstancesConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static NewReservedInstancesConfig parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static NewReservedInstancesConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static NewReservedInstancesConfig parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static NewReservedInstancesConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static NewReservedInstancesConfig parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static NewReservedInstancesConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static NewReservedInstancesConfig parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static NewReservedInstancesConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<NewReservedInstancesConfig> parser()| Returns | |
|---|---|
| Type | Description |
Parser<NewReservedInstancesConfig> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public NewReservedInstancesConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig |
|
getParserForType()
public Parser<NewReservedInstancesConfig> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<NewReservedInstancesConfig> |
|
getReservation()
public String getReservation() Optional. Immutable. Name of the reservation from which VM instances
should be created, in the format
projects/{project}/zones/{zone}/reservations/{reservation}.
string reservation = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The reservation. |
getReservationBytes()
public ByteString getReservationBytes() Optional. Immutable. Name of the reservation from which VM instances
should be created, in the format
projects/{project}/zones/{zone}/reservations/{reservation}.
string reservation = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for reservation. |
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
getSourceCase()
public NewReservedInstancesConfig.SourceCase getSourceCase()| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig.SourceCase |
|
hasReservation()
public boolean hasReservation() Optional. Immutable. Name of the reservation from which VM instances
should be created, in the format
projects/{project}/zones/{zone}/reservations/{reservation}.
string reservation = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the reservation field is set. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public NewReservedInstancesConfig.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected NewReservedInstancesConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig.Builder |
|
toBuilder()
public NewReservedInstancesConfig.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
NewReservedInstancesConfig.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|