public final class InstanceTemplate extends com.google.protobuf.GeneratedMessageV3 implements InstanceTemplateOrBuilder
Represents an Instance Template resource. You can use instance templates to create VM instances and managed instance groups. For more information, read Instance Templates.Protobuf type
google.cloud.compute.v1.InstanceTemplate| Modifier and Type | Class and Description |
|---|---|
static class |
InstanceTemplate.Builder
Represents an Instance Template resource.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CREATION_TIMESTAMP_FIELD_NUMBER |
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
KIND_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
PROPERTIES_FIELD_NUMBER |
static int |
SELF_LINK_FIELD_NUMBER |
static int |
SOURCE_INSTANCE_FIELD_NUMBER |
static int |
SOURCE_INSTANCE_PARAMS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCreationTimestamp()
[Output Only] The creation timestamp for this instance template in RFC3339 text format.
|
com.google.protobuf.ByteString |
getCreationTimestampBytes()
[Output Only] The creation timestamp for this instance template in RFC3339 text format.
|
static InstanceTemplate |
getDefaultInstance() |
InstanceTemplate |
getDefaultInstanceForType() |
String |
getDescription()
An optional description of this resource.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
An optional description of this resource.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
long |
getId()
[Output Only] A unique identifier for this instance template.
|
String |
getKind()
[Output Only] The resource type, which is always compute#instanceTemplate for instance templates.
|
com.google.protobuf.ByteString |
getKindBytes()
[Output Only] The resource type, which is always compute#instanceTemplate for instance templates.
|
String |
getName()
Name of the resource; provided by the client when the resource is created.
|
com.google.protobuf.ByteString |
getNameBytes()
Name of the resource; provided by the client when the resource is created.
|
com.google.protobuf.Parser<InstanceTemplate> |
getParserForType() |
InstanceProperties |
getProperties()
The instance properties for this instance template.
|
InstancePropertiesOrBuilder |
getPropertiesOrBuilder()
The instance properties for this instance template.
|
String |
getSelfLink()
[Output Only] The URL for this instance template.
|
com.google.protobuf.ByteString |
getSelfLinkBytes()
[Output Only] The URL for this instance template.
|
int |
getSerializedSize() |
String |
getSourceInstance()
The source instance used to create the template.
|
com.google.protobuf.ByteString |
getSourceInstanceBytes()
The source instance used to create the template.
|
SourceInstanceParams |
getSourceInstanceParams()
The source instance params to use to create this instance template.
|
SourceInstanceParamsOrBuilder |
getSourceInstanceParamsOrBuilder()
The source instance params to use to create this instance template.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasCreationTimestamp()
[Output Only] The creation timestamp for this instance template in RFC3339 text format.
|
boolean |
hasDescription()
An optional description of this resource.
|
int |
hashCode() |
boolean |
hasId()
[Output Only] A unique identifier for this instance template.
|
boolean |
hasKind()
[Output Only] The resource type, which is always compute#instanceTemplate for instance templates.
|
boolean |
hasName()
Name of the resource; provided by the client when the resource is created.
|
boolean |
hasProperties()
The instance properties for this instance template.
|
boolean |
hasSelfLink()
[Output Only] The URL for this instance template.
|
boolean |
hasSourceInstance()
The source instance used to create the template.
|
boolean |
hasSourceInstanceParams()
The source instance params to use to create this instance template.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static InstanceTemplate.Builder |
newBuilder() |
static InstanceTemplate.Builder |
newBuilder(InstanceTemplate prototype) |
InstanceTemplate.Builder |
newBuilderForType() |
protected InstanceTemplate.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static InstanceTemplate |
parseDelimitedFrom(InputStream input) |
static InstanceTemplate |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InstanceTemplate |
parseFrom(byte[] data) |
static InstanceTemplate |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InstanceTemplate |
parseFrom(ByteBuffer data) |
static InstanceTemplate |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InstanceTemplate |
parseFrom(com.google.protobuf.ByteString data) |
static InstanceTemplate |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InstanceTemplate |
parseFrom(com.google.protobuf.CodedInputStream input) |
static InstanceTemplate |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InstanceTemplate |
parseFrom(InputStream input) |
static InstanceTemplate |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<InstanceTemplate> |
parser() |
InstanceTemplate.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int CREATION_TIMESTAMP_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int PROPERTIES_FIELD_NUMBER
public static final int SELF_LINK_FIELD_NUMBER
public static final int SOURCE_INSTANCE_FIELD_NUMBER
public static final int SOURCE_INSTANCE_PARAMS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasCreationTimestamp()
[Output Only] The creation timestamp for this instance template in RFC3339 text format.
optional string creation_timestamp = 30525366;hasCreationTimestamp in interface InstanceTemplateOrBuilderpublic String getCreationTimestamp()
[Output Only] The creation timestamp for this instance template in RFC3339 text format.
optional string creation_timestamp = 30525366;getCreationTimestamp in interface InstanceTemplateOrBuilderpublic com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] The creation timestamp for this instance template in RFC3339 text format.
optional string creation_timestamp = 30525366;getCreationTimestampBytes in interface InstanceTemplateOrBuilderpublic boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;hasDescription in interface InstanceTemplateOrBuilderpublic String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;getDescription in interface InstanceTemplateOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;getDescriptionBytes in interface InstanceTemplateOrBuilderpublic boolean hasId()
[Output Only] A unique identifier for this instance template. The server defines this identifier.
optional uint64 id = 3355;hasId in interface InstanceTemplateOrBuilderpublic long getId()
[Output Only] A unique identifier for this instance template. The server defines this identifier.
optional uint64 id = 3355;getId in interface InstanceTemplateOrBuilderpublic boolean hasKind()
[Output Only] The resource type, which is always compute#instanceTemplate for instance templates.
optional string kind = 3292052;hasKind in interface InstanceTemplateOrBuilderpublic String getKind()
[Output Only] The resource type, which is always compute#instanceTemplate for instance templates.
optional string kind = 3292052;getKind in interface InstanceTemplateOrBuilderpublic com.google.protobuf.ByteString getKindBytes()
[Output Only] The resource type, which is always compute#instanceTemplate for instance templates.
optional string kind = 3292052;getKindBytes in interface InstanceTemplateOrBuilderpublic boolean hasName()
Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;hasName in interface InstanceTemplateOrBuilderpublic String getName()
Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;getName in interface InstanceTemplateOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;getNameBytes in interface InstanceTemplateOrBuilderpublic boolean hasProperties()
The instance properties for this instance template.
optional .google.cloud.compute.v1.InstanceProperties properties = 147688755;hasProperties in interface InstanceTemplateOrBuilderpublic InstanceProperties getProperties()
The instance properties for this instance template.
optional .google.cloud.compute.v1.InstanceProperties properties = 147688755;getProperties in interface InstanceTemplateOrBuilderpublic InstancePropertiesOrBuilder getPropertiesOrBuilder()
The instance properties for this instance template.
optional .google.cloud.compute.v1.InstanceProperties properties = 147688755;getPropertiesOrBuilder in interface InstanceTemplateOrBuilderpublic boolean hasSelfLink()
[Output Only] The URL for this instance template. The server defines this URL.
optional string self_link = 456214797;hasSelfLink in interface InstanceTemplateOrBuilderpublic String getSelfLink()
[Output Only] The URL for this instance template. The server defines this URL.
optional string self_link = 456214797;getSelfLink in interface InstanceTemplateOrBuilderpublic com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] The URL for this instance template. The server defines this URL.
optional string self_link = 456214797;getSelfLinkBytes in interface InstanceTemplateOrBuilderpublic boolean hasSourceInstance()
The source instance used to create the template. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance
optional string source_instance = 396315705;hasSourceInstance in interface InstanceTemplateOrBuilderpublic String getSourceInstance()
The source instance used to create the template. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance
optional string source_instance = 396315705;getSourceInstance in interface InstanceTemplateOrBuilderpublic com.google.protobuf.ByteString getSourceInstanceBytes()
The source instance used to create the template. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance
optional string source_instance = 396315705;getSourceInstanceBytes in interface InstanceTemplateOrBuilderpublic boolean hasSourceInstanceParams()
The source instance params to use to create this instance template.
optional .google.cloud.compute.v1.SourceInstanceParams source_instance_params = 135342156;
hasSourceInstanceParams in interface InstanceTemplateOrBuilderpublic SourceInstanceParams getSourceInstanceParams()
The source instance params to use to create this instance template.
optional .google.cloud.compute.v1.SourceInstanceParams source_instance_params = 135342156;
getSourceInstanceParams in interface InstanceTemplateOrBuilderpublic SourceInstanceParamsOrBuilder getSourceInstanceParamsOrBuilder()
The source instance params to use to create this instance template.
optional .google.cloud.compute.v1.SourceInstanceParams source_instance_params = 135342156;
getSourceInstanceParamsOrBuilder in interface InstanceTemplateOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static InstanceTemplate parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InstanceTemplate parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InstanceTemplate parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InstanceTemplate parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InstanceTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InstanceTemplate parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InstanceTemplate parseFrom(InputStream input) throws IOException
IOExceptionpublic static InstanceTemplate parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static InstanceTemplate parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static InstanceTemplate parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static InstanceTemplate parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static InstanceTemplate parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic InstanceTemplate.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static InstanceTemplate.Builder newBuilder()
public static InstanceTemplate.Builder newBuilder(InstanceTemplate prototype)
public InstanceTemplate.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected InstanceTemplate.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static InstanceTemplate getDefaultInstance()
public static com.google.protobuf.Parser<InstanceTemplate> parser()
public com.google.protobuf.Parser<InstanceTemplate> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public InstanceTemplate getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.