Package com.google.cloud.compute.v1
Class SourceInstanceProperties
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.compute.v1.SourceInstanceProperties
-
- All Implemented Interfaces:
SourceInstancePropertiesOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class SourceInstanceProperties extends com.google.protobuf.GeneratedMessageV3 implements SourceInstancePropertiesOrBuilder
DEPRECATED: Please use compute#instanceProperties instead. New properties will not be added to this field.
Protobuf typegoogle.cloud.compute.v1.SourceInstanceProperties
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SourceInstanceProperties.Builder
DEPRECATED: Please use compute#instanceProperties instead.static class
SourceInstanceProperties.KeyRevocationActionType
KeyRevocationActionType of the instance.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
CAN_IP_FORWARD_FIELD_NUMBER
static int
DELETION_PROTECTION_FIELD_NUMBER
static int
DESCRIPTION_FIELD_NUMBER
static int
DISKS_FIELD_NUMBER
static int
GUEST_ACCELERATORS_FIELD_NUMBER
static int
KEY_REVOCATION_ACTION_TYPE_FIELD_NUMBER
static int
LABELS_FIELD_NUMBER
static int
MACHINE_TYPE_FIELD_NUMBER
static int
METADATA_FIELD_NUMBER
static int
MIN_CPU_PLATFORM_FIELD_NUMBER
static int
NETWORK_INTERFACES_FIELD_NUMBER
static int
SCHEDULING_FIELD_NUMBER
static int
SERVICE_ACCOUNTS_FIELD_NUMBER
static int
TAGS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsLabels(String key)
Labels to apply to instances that are created from this machine image.boolean
equals(Object obj)
boolean
getCanIpForward()
Enables instances created based on this machine image to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own.static SourceInstanceProperties
getDefaultInstance()
SourceInstanceProperties
getDefaultInstanceForType()
boolean
getDeletionProtection()
Whether the instance created from this machine image should be protected against deletion.String
getDescription()
An optional text description for the instances that are created from this machine image.com.google.protobuf.ByteString
getDescriptionBytes()
An optional text description for the instances that are created from this machine image.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
SavedAttachedDisk
getDisks(int index)
An array of disks that are associated with the instances that are created from this machine image.int
getDisksCount()
An array of disks that are associated with the instances that are created from this machine image.List<SavedAttachedDisk>
getDisksList()
An array of disks that are associated with the instances that are created from this machine image.SavedAttachedDiskOrBuilder
getDisksOrBuilder(int index)
An array of disks that are associated with the instances that are created from this machine image.List<? extends SavedAttachedDiskOrBuilder>
getDisksOrBuilderList()
An array of disks that are associated with the instances that are created from this machine image.AcceleratorConfig
getGuestAccelerators(int index)
A list of guest accelerator cards' type and count to use for instances created from this machine image.int
getGuestAcceleratorsCount()
A list of guest accelerator cards' type and count to use for instances created from this machine image.List<AcceleratorConfig>
getGuestAcceleratorsList()
A list of guest accelerator cards' type and count to use for instances created from this machine image.AcceleratorConfigOrBuilder
getGuestAcceleratorsOrBuilder(int index)
A list of guest accelerator cards' type and count to use for instances created from this machine image.List<? extends AcceleratorConfigOrBuilder>
getGuestAcceleratorsOrBuilderList()
A list of guest accelerator cards' type and count to use for instances created from this machine image.String
getKeyRevocationActionType()
KeyRevocationActionType of the instance.com.google.protobuf.ByteString
getKeyRevocationActionTypeBytes()
KeyRevocationActionType of the instance.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Labels to apply to instances that are created from this machine image.Map<String,String>
getLabelsMap()
Labels to apply to instances that are created from this machine image.String
getLabelsOrDefault(String key, String defaultValue)
Labels to apply to instances that are created from this machine image.String
getLabelsOrThrow(String key)
Labels to apply to instances that are created from this machine image.String
getMachineType()
The machine type to use for instances that are created from this machine image.com.google.protobuf.ByteString
getMachineTypeBytes()
The machine type to use for instances that are created from this machine image.Metadata
getMetadata()
The metadata key/value pairs to assign to instances that are created from this machine image.MetadataOrBuilder
getMetadataOrBuilder()
The metadata key/value pairs to assign to instances that are created from this machine image.String
getMinCpuPlatform()
Minimum cpu/platform to be used by instances created from this machine image.com.google.protobuf.ByteString
getMinCpuPlatformBytes()
Minimum cpu/platform to be used by instances created from this machine image.NetworkInterface
getNetworkInterfaces(int index)
An array of network access configurations for this interface.int
getNetworkInterfacesCount()
An array of network access configurations for this interface.List<NetworkInterface>
getNetworkInterfacesList()
An array of network access configurations for this interface.NetworkInterfaceOrBuilder
getNetworkInterfacesOrBuilder(int index)
An array of network access configurations for this interface.List<? extends NetworkInterfaceOrBuilder>
getNetworkInterfacesOrBuilderList()
An array of network access configurations for this interface.com.google.protobuf.Parser<SourceInstanceProperties>
getParserForType()
Scheduling
getScheduling()
Specifies the scheduling options for the instances that are created from this machine image.SchedulingOrBuilder
getSchedulingOrBuilder()
Specifies the scheduling options for the instances that are created from this machine image.int
getSerializedSize()
ServiceAccount
getServiceAccounts(int index)
A list of service accounts with specified scopes.int
getServiceAccountsCount()
A list of service accounts with specified scopes.List<ServiceAccount>
getServiceAccountsList()
A list of service accounts with specified scopes.ServiceAccountOrBuilder
getServiceAccountsOrBuilder(int index)
A list of service accounts with specified scopes.List<? extends ServiceAccountOrBuilder>
getServiceAccountsOrBuilderList()
A list of service accounts with specified scopes.Tags
getTags()
A list of tags to apply to the instances that are created from this machine image.TagsOrBuilder
getTagsOrBuilder()
A list of tags to apply to the instances that are created from this machine image.boolean
hasCanIpForward()
Enables instances created based on this machine image to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own.boolean
hasDeletionProtection()
Whether the instance created from this machine image should be protected against deletion.boolean
hasDescription()
An optional text description for the instances that are created from this machine image.int
hashCode()
boolean
hasKeyRevocationActionType()
KeyRevocationActionType of the instance.boolean
hasMachineType()
The machine type to use for instances that are created from this machine image.boolean
hasMetadata()
The metadata key/value pairs to assign to instances that are created from this machine image.boolean
hasMinCpuPlatform()
Minimum cpu/platform to be used by instances created from this machine image.boolean
hasScheduling()
Specifies the scheduling options for the instances that are created from this machine image.boolean
hasTags()
A list of tags to apply to the instances that are created from this machine image.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static SourceInstanceProperties.Builder
newBuilder()
static SourceInstanceProperties.Builder
newBuilder(SourceInstanceProperties prototype)
SourceInstanceProperties.Builder
newBuilderForType()
protected SourceInstanceProperties.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static SourceInstanceProperties
parseDelimitedFrom(InputStream input)
static SourceInstanceProperties
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SourceInstanceProperties
parseFrom(byte[] data)
static SourceInstanceProperties
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SourceInstanceProperties
parseFrom(com.google.protobuf.ByteString data)
static SourceInstanceProperties
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SourceInstanceProperties
parseFrom(com.google.protobuf.CodedInputStream input)
static SourceInstanceProperties
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SourceInstanceProperties
parseFrom(InputStream input)
static SourceInstanceProperties
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SourceInstanceProperties
parseFrom(ByteBuffer data)
static SourceInstanceProperties
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<SourceInstanceProperties>
parser()
SourceInstanceProperties.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
CAN_IP_FORWARD_FIELD_NUMBER
public static final int CAN_IP_FORWARD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DELETION_PROTECTION_FIELD_NUMBER
public static final int DELETION_PROTECTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISKS_FIELD_NUMBER
public static final int DISKS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GUEST_ACCELERATORS_FIELD_NUMBER
public static final int GUEST_ACCELERATORS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KEY_REVOCATION_ACTION_TYPE_FIELD_NUMBER
public static final int KEY_REVOCATION_ACTION_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MACHINE_TYPE_FIELD_NUMBER
public static final int MACHINE_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MIN_CPU_PLATFORM_FIELD_NUMBER
public static final int MIN_CPU_PLATFORM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NETWORK_INTERFACES_FIELD_NUMBER
public static final int NETWORK_INTERFACES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCHEDULING_FIELD_NUMBER
public static final int SCHEDULING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVICE_ACCOUNTS_FIELD_NUMBER
public static final int SERVICE_ACCOUNTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TAGS_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
hasCanIpForward
public boolean hasCanIpForward()
Enables instances created based on this machine image to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own. If these instances will be used as an IP gateway or it will be set as the next-hop in a Route resource, specify true. If unsure, leave this set to false. See the Enable IP forwarding documentation for more information.
optional bool can_ip_forward = 467731324;
- Specified by:
hasCanIpForward
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- Whether the canIpForward field is set.
-
getCanIpForward
public boolean getCanIpForward()
Enables instances created based on this machine image to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own. If these instances will be used as an IP gateway or it will be set as the next-hop in a Route resource, specify true. If unsure, leave this set to false. See the Enable IP forwarding documentation for more information.
optional bool can_ip_forward = 467731324;
- Specified by:
getCanIpForward
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- The canIpForward.
-
hasDeletionProtection
public boolean hasDeletionProtection()
Whether the instance created from this machine image should be protected against deletion.
optional bool deletion_protection = 458014698;
- Specified by:
hasDeletionProtection
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- Whether the deletionProtection field is set.
-
getDeletionProtection
public boolean getDeletionProtection()
Whether the instance created from this machine image should be protected against deletion.
optional bool deletion_protection = 458014698;
- Specified by:
getDeletionProtection
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- The deletionProtection.
-
hasDescription
public boolean hasDescription()
An optional text description for the instances that are created from this machine image.
optional string description = 422937596;
- Specified by:
hasDescription
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- Whether the description field is set.
-
getDescription
public String getDescription()
An optional text description for the instances that are created from this machine image.
optional string description = 422937596;
- Specified by:
getDescription
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
An optional text description for the instances that are created from this machine image.
optional string description = 422937596;
- Specified by:
getDescriptionBytes
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- The bytes for description.
-
getDisksList
public List<SavedAttachedDisk> getDisksList()
An array of disks that are associated with the instances that are created from this machine image.
repeated .google.cloud.compute.v1.SavedAttachedDisk disks = 95594102;
- Specified by:
getDisksList
in interfaceSourceInstancePropertiesOrBuilder
-
getDisksOrBuilderList
public List<? extends SavedAttachedDiskOrBuilder> getDisksOrBuilderList()
An array of disks that are associated with the instances that are created from this machine image.
repeated .google.cloud.compute.v1.SavedAttachedDisk disks = 95594102;
- Specified by:
getDisksOrBuilderList
in interfaceSourceInstancePropertiesOrBuilder
-
getDisksCount
public int getDisksCount()
An array of disks that are associated with the instances that are created from this machine image.
repeated .google.cloud.compute.v1.SavedAttachedDisk disks = 95594102;
- Specified by:
getDisksCount
in interfaceSourceInstancePropertiesOrBuilder
-
getDisks
public SavedAttachedDisk getDisks(int index)
An array of disks that are associated with the instances that are created from this machine image.
repeated .google.cloud.compute.v1.SavedAttachedDisk disks = 95594102;
- Specified by:
getDisks
in interfaceSourceInstancePropertiesOrBuilder
-
getDisksOrBuilder
public SavedAttachedDiskOrBuilder getDisksOrBuilder(int index)
An array of disks that are associated with the instances that are created from this machine image.
repeated .google.cloud.compute.v1.SavedAttachedDisk disks = 95594102;
- Specified by:
getDisksOrBuilder
in interfaceSourceInstancePropertiesOrBuilder
-
getGuestAcceleratorsList
public List<AcceleratorConfig> getGuestAcceleratorsList()
A list of guest accelerator cards' type and count to use for instances created from this machine image.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
- Specified by:
getGuestAcceleratorsList
in interfaceSourceInstancePropertiesOrBuilder
-
getGuestAcceleratorsOrBuilderList
public List<? extends AcceleratorConfigOrBuilder> getGuestAcceleratorsOrBuilderList()
A list of guest accelerator cards' type and count to use for instances created from this machine image.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
- Specified by:
getGuestAcceleratorsOrBuilderList
in interfaceSourceInstancePropertiesOrBuilder
-
getGuestAcceleratorsCount
public int getGuestAcceleratorsCount()
A list of guest accelerator cards' type and count to use for instances created from this machine image.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
- Specified by:
getGuestAcceleratorsCount
in interfaceSourceInstancePropertiesOrBuilder
-
getGuestAccelerators
public AcceleratorConfig getGuestAccelerators(int index)
A list of guest accelerator cards' type and count to use for instances created from this machine image.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
- Specified by:
getGuestAccelerators
in interfaceSourceInstancePropertiesOrBuilder
-
getGuestAcceleratorsOrBuilder
public AcceleratorConfigOrBuilder getGuestAcceleratorsOrBuilder(int index)
A list of guest accelerator cards' type and count to use for instances created from this machine image.
repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
- Specified by:
getGuestAcceleratorsOrBuilder
in interfaceSourceInstancePropertiesOrBuilder
-
hasKeyRevocationActionType
public boolean hasKeyRevocationActionType()
KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. Check the KeyRevocationActionType enum for the list of possible values.
optional string key_revocation_action_type = 235941474;
- Specified by:
hasKeyRevocationActionType
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- Whether the keyRevocationActionType field is set.
-
getKeyRevocationActionType
public String getKeyRevocationActionType()
KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. Check the KeyRevocationActionType enum for the list of possible values.
optional string key_revocation_action_type = 235941474;
- Specified by:
getKeyRevocationActionType
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- The keyRevocationActionType.
-
getKeyRevocationActionTypeBytes
public com.google.protobuf.ByteString getKeyRevocationActionTypeBytes()
KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. Check the KeyRevocationActionType enum for the list of possible values.
optional string key_revocation_action_type = 235941474;
- Specified by:
getKeyRevocationActionTypeBytes
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- The bytes for keyRevocationActionType.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:SourceInstancePropertiesOrBuilder
Labels to apply to instances that are created from this machine image.
map<string, string> labels = 500195327;
- Specified by:
getLabelsCount
in interfaceSourceInstancePropertiesOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels to apply to instances that are created from this machine image.
map<string, string> labels = 500195327;
- Specified by:
containsLabels
in interfaceSourceInstancePropertiesOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceSourceInstancePropertiesOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels to apply to instances that are created from this machine image.
map<string, string> labels = 500195327;
- Specified by:
getLabelsMap
in interfaceSourceInstancePropertiesOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels to apply to instances that are created from this machine image.
map<string, string> labels = 500195327;
- Specified by:
getLabelsOrDefault
in interfaceSourceInstancePropertiesOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels to apply to instances that are created from this machine image.
map<string, string> labels = 500195327;
- Specified by:
getLabelsOrThrow
in interfaceSourceInstancePropertiesOrBuilder
-
hasMachineType
public boolean hasMachineType()
The machine type to use for instances that are created from this machine image.
optional string machine_type = 227711026;
- Specified by:
hasMachineType
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- Whether the machineType field is set.
-
getMachineType
public String getMachineType()
The machine type to use for instances that are created from this machine image.
optional string machine_type = 227711026;
- Specified by:
getMachineType
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- The machineType.
-
getMachineTypeBytes
public com.google.protobuf.ByteString getMachineTypeBytes()
The machine type to use for instances that are created from this machine image.
optional string machine_type = 227711026;
- Specified by:
getMachineTypeBytes
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- The bytes for machineType.
-
hasMetadata
public boolean hasMetadata()
The metadata key/value pairs to assign to instances that are created from this machine image. These pairs can consist of custom metadata or predefined keys. See Project and instance metadata for more information.
optional .google.cloud.compute.v1.Metadata metadata = 86866735;
- Specified by:
hasMetadata
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- Whether the metadata field is set.
-
getMetadata
public Metadata getMetadata()
The metadata key/value pairs to assign to instances that are created from this machine image. These pairs can consist of custom metadata or predefined keys. See Project and instance metadata for more information.
optional .google.cloud.compute.v1.Metadata metadata = 86866735;
- Specified by:
getMetadata
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- The metadata.
-
getMetadataOrBuilder
public MetadataOrBuilder getMetadataOrBuilder()
The metadata key/value pairs to assign to instances that are created from this machine image. These pairs can consist of custom metadata or predefined keys. See Project and instance metadata for more information.
optional .google.cloud.compute.v1.Metadata metadata = 86866735;
- Specified by:
getMetadataOrBuilder
in interfaceSourceInstancePropertiesOrBuilder
-
hasMinCpuPlatform
public boolean hasMinCpuPlatform()
Minimum cpu/platform to be used by instances created from this machine image. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a Minimum CPU Platform.
optional string min_cpu_platform = 242912759;
- Specified by:
hasMinCpuPlatform
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- Whether the minCpuPlatform field is set.
-
getMinCpuPlatform
public String getMinCpuPlatform()
Minimum cpu/platform to be used by instances created from this machine image. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a Minimum CPU Platform.
optional string min_cpu_platform = 242912759;
- Specified by:
getMinCpuPlatform
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- The minCpuPlatform.
-
getMinCpuPlatformBytes
public com.google.protobuf.ByteString getMinCpuPlatformBytes()
Minimum cpu/platform to be used by instances created from this machine image. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a Minimum CPU Platform.
optional string min_cpu_platform = 242912759;
- Specified by:
getMinCpuPlatformBytes
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- The bytes for minCpuPlatform.
-
getNetworkInterfacesList
public List<NetworkInterface> getNetworkInterfacesList()
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
- Specified by:
getNetworkInterfacesList
in interfaceSourceInstancePropertiesOrBuilder
-
getNetworkInterfacesOrBuilderList
public List<? extends NetworkInterfaceOrBuilder> getNetworkInterfacesOrBuilderList()
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
- Specified by:
getNetworkInterfacesOrBuilderList
in interfaceSourceInstancePropertiesOrBuilder
-
getNetworkInterfacesCount
public int getNetworkInterfacesCount()
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
- Specified by:
getNetworkInterfacesCount
in interfaceSourceInstancePropertiesOrBuilder
-
getNetworkInterfaces
public NetworkInterface getNetworkInterfaces(int index)
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
- Specified by:
getNetworkInterfaces
in interfaceSourceInstancePropertiesOrBuilder
-
getNetworkInterfacesOrBuilder
public NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder(int index)
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
- Specified by:
getNetworkInterfacesOrBuilder
in interfaceSourceInstancePropertiesOrBuilder
-
hasScheduling
public boolean hasScheduling()
Specifies the scheduling options for the instances that are created from this machine image.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
- Specified by:
hasScheduling
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- Whether the scheduling field is set.
-
getScheduling
public Scheduling getScheduling()
Specifies the scheduling options for the instances that are created from this machine image.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
- Specified by:
getScheduling
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- The scheduling.
-
getSchedulingOrBuilder
public SchedulingOrBuilder getSchedulingOrBuilder()
Specifies the scheduling options for the instances that are created from this machine image.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
- Specified by:
getSchedulingOrBuilder
in interfaceSourceInstancePropertiesOrBuilder
-
getServiceAccountsList
public List<ServiceAccount> getServiceAccountsList()
A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from this machine image. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
- Specified by:
getServiceAccountsList
in interfaceSourceInstancePropertiesOrBuilder
-
getServiceAccountsOrBuilderList
public List<? extends ServiceAccountOrBuilder> getServiceAccountsOrBuilderList()
A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from this machine image. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
- Specified by:
getServiceAccountsOrBuilderList
in interfaceSourceInstancePropertiesOrBuilder
-
getServiceAccountsCount
public int getServiceAccountsCount()
A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from this machine image. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
- Specified by:
getServiceAccountsCount
in interfaceSourceInstancePropertiesOrBuilder
-
getServiceAccounts
public ServiceAccount getServiceAccounts(int index)
A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from this machine image. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
- Specified by:
getServiceAccounts
in interfaceSourceInstancePropertiesOrBuilder
-
getServiceAccountsOrBuilder
public ServiceAccountOrBuilder getServiceAccountsOrBuilder(int index)
A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from this machine image. Use metadata queries to obtain the access tokens for these instances.
repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
- Specified by:
getServiceAccountsOrBuilder
in interfaceSourceInstancePropertiesOrBuilder
-
hasTags
public boolean hasTags()
A list of tags to apply to the instances that are created from this machine image. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035.
optional .google.cloud.compute.v1.Tags tags = 3552281;
- Specified by:
hasTags
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- Whether the tags field is set.
-
getTags
public Tags getTags()
A list of tags to apply to the instances that are created from this machine image. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035.
optional .google.cloud.compute.v1.Tags tags = 3552281;
- Specified by:
getTags
in interfaceSourceInstancePropertiesOrBuilder
- Returns:
- The tags.
-
getTagsOrBuilder
public TagsOrBuilder getTagsOrBuilder()
A list of tags to apply to the instances that are created from this machine image. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035.
optional .google.cloud.compute.v1.Tags tags = 3552281;
- Specified by:
getTagsOrBuilder
in interfaceSourceInstancePropertiesOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SourceInstanceProperties parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SourceInstanceProperties parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SourceInstanceProperties parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SourceInstanceProperties parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SourceInstanceProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SourceInstanceProperties parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SourceInstanceProperties parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static SourceInstanceProperties parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static SourceInstanceProperties parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static SourceInstanceProperties parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static SourceInstanceProperties parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static SourceInstanceProperties parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public SourceInstanceProperties.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static SourceInstanceProperties.Builder newBuilder()
-
newBuilder
public static SourceInstanceProperties.Builder newBuilder(SourceInstanceProperties prototype)
-
toBuilder
public SourceInstanceProperties.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SourceInstanceProperties.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static SourceInstanceProperties getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<SourceInstanceProperties> parser()
-
getParserForType
public com.google.protobuf.Parser<SourceInstanceProperties> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public SourceInstanceProperties getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-