Class Tags.Builder

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

public static final class Tags.Builder extends com.google.protobuf.GeneratedMessage.Builder<Tags.Builder> implements TagsOrBuilder
 A set of instance tags.
 
Protobuf type google.cloud.compute.v1.Tags
  • Method Summary

    Modifier and Type
    Method
    Description
    An array of tags.
    An array of tags.
    addItemsBytes(com.google.protobuf.ByteString value)
    An array of tags.
     
     
     
    Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and used for optimistic locking.
    An array of tags.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and used for optimistic locking.
    com.google.protobuf.ByteString
    Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and used for optimistic locking.
    getItems(int index)
    An array of tags.
    com.google.protobuf.ByteString
    getItemsBytes(int index)
    An array of tags.
    int
    An array of tags.
    com.google.protobuf.ProtocolStringList
    An array of tags.
    boolean
    Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and used for optimistic locking.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    mergeFrom(Tags other)
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and used for optimistic locking.
    setFingerprintBytes(com.google.protobuf.ByteString value)
    Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and used for optimistic locking.
    setItems(int index, String value)
    An array of tags.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<Tags.Builder>
    • clear

      public Tags.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<Tags.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<Tags.Builder>
    • getDefaultInstanceForType

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

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

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

      public Tags.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<Tags.Builder>
    • mergeFrom

      public Tags.Builder mergeFrom(Tags other)
    • isInitialized

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

      public Tags.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<Tags.Builder>
      Throws:
      IOException
    • hasFingerprint

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

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

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

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

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

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

      public com.google.protobuf.ProtocolStringList getItemsList()
       An array of tags. Each tag must be 1-63 characters long, and comply
       with RFC1035.
       
      repeated string items = 100526016;
      Specified by:
      getItemsList in interface TagsOrBuilder
      Returns:
      A list containing the items.
    • getItemsCount

      public int getItemsCount()
       An array of tags. Each tag must be 1-63 characters long, and comply
       with RFC1035.
       
      repeated string items = 100526016;
      Specified by:
      getItemsCount in interface TagsOrBuilder
      Returns:
      The count of items.
    • getItems

      public String getItems(int index)
       An array of tags. Each tag must be 1-63 characters long, and comply
       with RFC1035.
       
      repeated string items = 100526016;
      Specified by:
      getItems in interface TagsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The items at the given index.
    • getItemsBytes

      public com.google.protobuf.ByteString getItemsBytes(int index)
       An array of tags. Each tag must be 1-63 characters long, and comply
       with RFC1035.
       
      repeated string items = 100526016;
      Specified by:
      getItemsBytes in interface TagsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the items at the given index.
    • setItems

      public Tags.Builder setItems(int index, String value)
       An array of tags. Each tag must be 1-63 characters long, and comply
       with RFC1035.
       
      repeated string items = 100526016;
      Parameters:
      index - The index to set the value at.
      value - The items to set.
      Returns:
      This builder for chaining.
    • addItems

      public Tags.Builder addItems(String value)
       An array of tags. Each tag must be 1-63 characters long, and comply
       with RFC1035.
       
      repeated string items = 100526016;
      Parameters:
      value - The items to add.
      Returns:
      This builder for chaining.
    • addAllItems

      public Tags.Builder addAllItems(Iterable<String> values)
       An array of tags. Each tag must be 1-63 characters long, and comply
       with RFC1035.
       
      repeated string items = 100526016;
      Parameters:
      values - The items to add.
      Returns:
      This builder for chaining.
    • clearItems

      public Tags.Builder clearItems()
       An array of tags. Each tag must be 1-63 characters long, and comply
       with RFC1035.
       
      repeated string items = 100526016;
      Returns:
      This builder for chaining.
    • addItemsBytes

      public Tags.Builder addItemsBytes(com.google.protobuf.ByteString value)
       An array of tags. Each tag must be 1-63 characters long, and comply
       with RFC1035.
       
      repeated string items = 100526016;
      Parameters:
      value - The bytes of the items to add.
      Returns:
      This builder for chaining.