| Package | Description | 
|---|---|
| com.google.api.services.compute | |
| com.google.api.services.compute.model | 
| Modifier and Type | Method and Description | 
|---|---|
| Compute.Projects.SetCommonInstanceMetadata | Compute.Projects. setCommonInstanceMetadata(String project,
                         Metadata content)Sets metadata common to all instances within the specified project using the data included in the
 request. | 
| Compute.Instances.SetMetadata | Compute.Instances. setMetadata(String project,
           String zone,
           String instance,
           Metadata content)Sets metadata for the specified instance to the data included in the request. | 
| Constructor and Description | 
|---|
| SetCommonInstanceMetadata(String project,
                         Metadata content)Sets metadata common to all instances within the specified project using the data included in
 the request. | 
| SetMetadata(String project,
           String zone,
           String instance,
           Metadata content)Sets metadata for the specified instance to the data included in the request. | 
| Modifier and Type | Method and Description | 
|---|---|
| Metadata | Metadata. clone() | 
| Metadata | Metadata. encodeFingerprint(byte[] fingerprint)Specifies a fingerprint for this request, which is essentially a hash of the metadata's
 contents and used for optimistic locking. | 
| Metadata | Project. getCommonInstanceMetadata()Metadata key/value pairs available to all instances contained in this project. | 
| Metadata | InstanceProperties. getMetadata()The metadata key/value pairs to assign to instances that are created from these properties. | 
| Metadata | Instance. getMetadata()The metadata key/value pairs assigned to this instance. | 
| Metadata | Metadata. set(String fieldName,
   Object value) | 
| Metadata | Metadata. setFingerprint(String fingerprint)Specifies a fingerprint for this request, which is essentially a hash of the metadata's
 contents and used for optimistic locking. | 
| Metadata | Metadata. setItems(List<Metadata.Items> items)Array of key/value pairs. | 
| Metadata | Metadata. setKind(String kind)[Output Only] Type of the resource. | 
| Modifier and Type | Method and Description | 
|---|---|
| Project | Project. setCommonInstanceMetadata(Metadata commonInstanceMetadata)Metadata key/value pairs available to all instances contained in this project. | 
| InstanceProperties | InstanceProperties. setMetadata(Metadata metadata)The metadata key/value pairs to assign to instances that are created from these properties. | 
| Instance | Instance. setMetadata(Metadata metadata)The metadata key/value pairs assigned to this instance. | 
Copyright © 2011–2021 Google. All rights reserved.