Class Metadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Metadata.Builder>
com.google.cloud.compute.v1.Metadata.Builder
All Implemented Interfaces:
MetadataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Metadata

public static final class Metadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<Metadata.Builder> implements MetadataOrBuilder
 A metadata key/value entry.
 
Protobuf type google.cloud.compute.v1.Metadata
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Metadata.Builder>
    • clear

      public Metadata.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Metadata.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Metadata.Builder>
    • getDefaultInstanceForType

      public Metadata getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Metadata build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Metadata buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Metadata.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Metadata.Builder>
    • mergeFrom

      public Metadata.Builder mergeFrom(Metadata other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Metadata.Builder>
    • mergeFrom

      public Metadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Metadata.Builder>
      Throws:
      IOException
    • hasFingerprint

      public boolean hasFingerprint()
       Specifies a fingerprint for this request, which is essentially a hash of
       the metadata's contents and used for optimistic locking. The
       fingerprint is initially generated by Compute Engine and changes after
       every request to modify or update metadata. You must always provide an
       up-to-date fingerprint hash in order to update or change metadata,
       otherwise the request will fail with error412 conditionNotMet.
      
       To see the latest fingerprint, make a get() request to
       retrieve the resource.
       
      optional string fingerprint = 234678500;
      Specified by:
      hasFingerprint in interface MetadataOrBuilder
      Returns:
      Whether the fingerprint field is set.
    • getFingerprint

      public String getFingerprint()
       Specifies a fingerprint for this request, which is essentially a hash of
       the metadata's contents and used for optimistic locking. The
       fingerprint is initially generated by Compute Engine and changes after
       every request to modify or update metadata. You must always provide an
       up-to-date fingerprint hash in order to update or change metadata,
       otherwise the request will fail with error412 conditionNotMet.
      
       To see the latest fingerprint, make a get() request to
       retrieve the resource.
       
      optional string fingerprint = 234678500;
      Specified by:
      getFingerprint in interface MetadataOrBuilder
      Returns:
      The fingerprint.
    • getFingerprintBytes

      public com.google.protobuf.ByteString getFingerprintBytes()
       Specifies a fingerprint for this request, which is essentially a hash of
       the metadata's contents and used for optimistic locking. The
       fingerprint is initially generated by Compute Engine and changes after
       every request to modify or update metadata. You must always provide an
       up-to-date fingerprint hash in order to update or change metadata,
       otherwise the request will fail with error412 conditionNotMet.
      
       To see the latest fingerprint, make a get() request to
       retrieve the resource.
       
      optional string fingerprint = 234678500;
      Specified by:
      getFingerprintBytes in interface MetadataOrBuilder
      Returns:
      The bytes for fingerprint.
    • setFingerprint

      public Metadata.Builder setFingerprint(String value)
       Specifies a fingerprint for this request, which is essentially a hash of
       the metadata's contents and used for optimistic locking. The
       fingerprint is initially generated by Compute Engine and changes after
       every request to modify or update metadata. You must always provide an
       up-to-date fingerprint hash in order to update or change metadata,
       otherwise the request will fail with error412 conditionNotMet.
      
       To see the latest fingerprint, make a get() request to
       retrieve the resource.
       
      optional string fingerprint = 234678500;
      Parameters:
      value - The fingerprint to set.
      Returns:
      This builder for chaining.
    • clearFingerprint

      public Metadata.Builder clearFingerprint()
       Specifies a fingerprint for this request, which is essentially a hash of
       the metadata's contents and used for optimistic locking. The
       fingerprint is initially generated by Compute Engine and changes after
       every request to modify or update metadata. You must always provide an
       up-to-date fingerprint hash in order to update or change metadata,
       otherwise the request will fail with error412 conditionNotMet.
      
       To see the latest fingerprint, make a get() request to
       retrieve the resource.
       
      optional string fingerprint = 234678500;
      Returns:
      This builder for chaining.
    • setFingerprintBytes

      public Metadata.Builder setFingerprintBytes(com.google.protobuf.ByteString value)
       Specifies a fingerprint for this request, which is essentially a hash of
       the metadata's contents and used for optimistic locking. The
       fingerprint is initially generated by Compute Engine and changes after
       every request to modify or update metadata. You must always provide an
       up-to-date fingerprint hash in order to update or change metadata,
       otherwise the request will fail with error412 conditionNotMet.
      
       To see the latest fingerprint, make a get() request to
       retrieve the resource.
       
      optional string fingerprint = 234678500;
      Parameters:
      value - The bytes for fingerprint to set.
      Returns:
      This builder for chaining.
    • getItemsList

      public List<Items> getItemsList()
       Array of key/value pairs. The total size of all keys and values must be
       less than 512 KB.
       
      repeated .google.cloud.compute.v1.Items items = 100526016;
      Specified by:
      getItemsList in interface MetadataOrBuilder
    • getItemsCount

      public int getItemsCount()
       Array of key/value pairs. The total size of all keys and values must be
       less than 512 KB.
       
      repeated .google.cloud.compute.v1.Items items = 100526016;
      Specified by:
      getItemsCount in interface MetadataOrBuilder
    • getItems

      public Items getItems(int index)
       Array of key/value pairs. The total size of all keys and values must be
       less than 512 KB.
       
      repeated .google.cloud.compute.v1.Items items = 100526016;
      Specified by:
      getItems in interface MetadataOrBuilder
    • setItems

      public Metadata.Builder setItems(int index, Items value)
       Array of key/value pairs. The total size of all keys and values must be
       less than 512 KB.
       
      repeated .google.cloud.compute.v1.Items items = 100526016;
    • setItems

      public Metadata.Builder setItems(int index, Items.Builder builderForValue)
       Array of key/value pairs. The total size of all keys and values must be
       less than 512 KB.
       
      repeated .google.cloud.compute.v1.Items items = 100526016;
    • addItems

      public Metadata.Builder addItems(Items value)
       Array of key/value pairs. The total size of all keys and values must be
       less than 512 KB.
       
      repeated .google.cloud.compute.v1.Items items = 100526016;
    • addItems

      public Metadata.Builder addItems(int index, Items value)
       Array of key/value pairs. The total size of all keys and values must be
       less than 512 KB.
       
      repeated .google.cloud.compute.v1.Items items = 100526016;
    • addItems

      public Metadata.Builder addItems(Items.Builder builderForValue)
       Array of key/value pairs. The total size of all keys and values must be
       less than 512 KB.
       
      repeated .google.cloud.compute.v1.Items items = 100526016;
    • addItems

      public Metadata.Builder addItems(int index, Items.Builder builderForValue)
       Array of key/value pairs. The total size of all keys and values must be
       less than 512 KB.
       
      repeated .google.cloud.compute.v1.Items items = 100526016;
    • addAllItems

      public Metadata.Builder addAllItems(Iterable<? extends Items> values)
       Array of key/value pairs. The total size of all keys and values must be
       less than 512 KB.
       
      repeated .google.cloud.compute.v1.Items items = 100526016;
    • clearItems

      public Metadata.Builder clearItems()
       Array of key/value pairs. The total size of all keys and values must be
       less than 512 KB.
       
      repeated .google.cloud.compute.v1.Items items = 100526016;
    • removeItems

      public Metadata.Builder removeItems(int index)
       Array of key/value pairs. The total size of all keys and values must be
       less than 512 KB.
       
      repeated .google.cloud.compute.v1.Items items = 100526016;
    • getItemsBuilder

      public Items.Builder getItemsBuilder(int index)
       Array of key/value pairs. The total size of all keys and values must be
       less than 512 KB.
       
      repeated .google.cloud.compute.v1.Items items = 100526016;
    • getItemsOrBuilder

      public ItemsOrBuilder getItemsOrBuilder(int index)
       Array of key/value pairs. The total size of all keys and values must be
       less than 512 KB.
       
      repeated .google.cloud.compute.v1.Items items = 100526016;
      Specified by:
      getItemsOrBuilder in interface MetadataOrBuilder
    • getItemsOrBuilderList

      public List<? extends ItemsOrBuilder> getItemsOrBuilderList()
       Array of key/value pairs. The total size of all keys and values must be
       less than 512 KB.
       
      repeated .google.cloud.compute.v1.Items items = 100526016;
      Specified by:
      getItemsOrBuilderList in interface MetadataOrBuilder
    • addItemsBuilder

      public Items.Builder addItemsBuilder()
       Array of key/value pairs. The total size of all keys and values must be
       less than 512 KB.
       
      repeated .google.cloud.compute.v1.Items items = 100526016;
    • addItemsBuilder

      public Items.Builder addItemsBuilder(int index)
       Array of key/value pairs. The total size of all keys and values must be
       less than 512 KB.
       
      repeated .google.cloud.compute.v1.Items items = 100526016;
    • getItemsBuilderList

      public List<Items.Builder> getItemsBuilderList()
       Array of key/value pairs. The total size of all keys and values must be
       less than 512 KB.
       
      repeated .google.cloud.compute.v1.Items items = 100526016;
    • hasKind

      public boolean hasKind()
       Output only. [Output Only] Type of the resource. Always compute#metadata
       for metadata.
       
      optional string kind = 3292052;
      Specified by:
      hasKind in interface MetadataOrBuilder
      Returns:
      Whether the kind field is set.
    • getKind

      public String getKind()
       Output only. [Output Only] Type of the resource. Always compute#metadata
       for metadata.
       
      optional string kind = 3292052;
      Specified by:
      getKind in interface MetadataOrBuilder
      Returns:
      The kind.
    • getKindBytes

      public com.google.protobuf.ByteString getKindBytes()
       Output only. [Output Only] Type of the resource. Always compute#metadata
       for metadata.
       
      optional string kind = 3292052;
      Specified by:
      getKindBytes in interface MetadataOrBuilder
      Returns:
      The bytes for kind.
    • setKind

      public Metadata.Builder setKind(String value)
       Output only. [Output Only] Type of the resource. Always compute#metadata
       for metadata.
       
      optional string kind = 3292052;
      Parameters:
      value - The kind to set.
      Returns:
      This builder for chaining.
    • clearKind

      public Metadata.Builder clearKind()
       Output only. [Output Only] Type of the resource. Always compute#metadata
       for metadata.
       
      optional string kind = 3292052;
      Returns:
      This builder for chaining.
    • setKindBytes

      public Metadata.Builder setKindBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] Type of the resource. Always compute#metadata
       for metadata.
       
      optional string kind = 3292052;
      Parameters:
      value - The bytes for kind to set.
      Returns:
      This builder for chaining.