Class 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.GeneratedMessageV3.Builder<Metadata.Builder>
    implements MetadataOrBuilder
     A metadata key/value entry.
     
    Protobuf type google.cloud.compute.v1.Metadata
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public Metadata.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Metadata.Builder>
      • setField

        public Metadata.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                         Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Metadata.Builder>
      • clearField

        public Metadata.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Metadata.Builder>
      • clearOneof

        public Metadata.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Metadata.Builder>
      • setRepeatedField

        public Metadata.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 int index,
                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Metadata.Builder>
      • addRepeatedField

        public Metadata.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Metadata.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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 error 412 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 error 412 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 error 412 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 error 412 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 error 412 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 error 412 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] 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] 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] 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] 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] 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] 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.
      • setUnknownFields

        public final Metadata.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Metadata.Builder>
      • mergeUnknownFields

        public final Metadata.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Metadata.Builder>