Class Items.Builder

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

public static final class Items.Builder extends com.google.protobuf.GeneratedMessage.Builder<Items.Builder> implements ItemsOrBuilder
 Metadata
 
Protobuf type google.cloud.compute.v1.Items
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Key for the metadata entry.
    Value for the metadata entry.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    Key for the metadata entry.
    com.google.protobuf.ByteString
    Key for the metadata entry.
    Value for the metadata entry.
    com.google.protobuf.ByteString
    Value for the metadata entry.
    boolean
    Key for the metadata entry.
    boolean
    Value for the metadata entry.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setKey(String value)
    Key for the metadata entry.
    setKeyBytes(com.google.protobuf.ByteString value)
    Key for the metadata entry.
    Value for the metadata entry.
    setValueBytes(com.google.protobuf.ByteString value)
    Value for the metadata entry.

    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<Items.Builder>
    • clear

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

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

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

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

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

      public Items.Builder mergeFrom(Items other)
    • isInitialized

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

      public Items.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<Items.Builder>
      Throws:
      IOException
    • hasKey

      public boolean hasKey()
       Key for the metadata entry. Keys must conform to the following
       regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length.
       This is reflected as part of a URL in the metadata server. Additionally, to
       avoid ambiguity, keys must not conflict with any other metadata keys
       for the project.
       
      optional string key = 106079;
      Specified by:
      hasKey in interface ItemsOrBuilder
      Returns:
      Whether the key field is set.
    • getKey

      public String getKey()
       Key for the metadata entry. Keys must conform to the following
       regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length.
       This is reflected as part of a URL in the metadata server. Additionally, to
       avoid ambiguity, keys must not conflict with any other metadata keys
       for the project.
       
      optional string key = 106079;
      Specified by:
      getKey in interface ItemsOrBuilder
      Returns:
      The key.
    • getKeyBytes

      public com.google.protobuf.ByteString getKeyBytes()
       Key for the metadata entry. Keys must conform to the following
       regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length.
       This is reflected as part of a URL in the metadata server. Additionally, to
       avoid ambiguity, keys must not conflict with any other metadata keys
       for the project.
       
      optional string key = 106079;
      Specified by:
      getKeyBytes in interface ItemsOrBuilder
      Returns:
      The bytes for key.
    • setKey

      public Items.Builder setKey(String value)
       Key for the metadata entry. Keys must conform to the following
       regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length.
       This is reflected as part of a URL in the metadata server. Additionally, to
       avoid ambiguity, keys must not conflict with any other metadata keys
       for the project.
       
      optional string key = 106079;
      Parameters:
      value - The key to set.
      Returns:
      This builder for chaining.
    • clearKey

      public Items.Builder clearKey()
       Key for the metadata entry. Keys must conform to the following
       regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length.
       This is reflected as part of a URL in the metadata server. Additionally, to
       avoid ambiguity, keys must not conflict with any other metadata keys
       for the project.
       
      optional string key = 106079;
      Returns:
      This builder for chaining.
    • setKeyBytes

      public Items.Builder setKeyBytes(com.google.protobuf.ByteString value)
       Key for the metadata entry. Keys must conform to the following
       regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length.
       This is reflected as part of a URL in the metadata server. Additionally, to
       avoid ambiguity, keys must not conflict with any other metadata keys
       for the project.
       
      optional string key = 106079;
      Parameters:
      value - The bytes for key to set.
      Returns:
      This builder for chaining.
    • hasValue

      public boolean hasValue()
       Value for the metadata entry. These are free-form strings, and only
       have meaning as interpreted by the image running in the instance. The
       only restriction placed on values is that their size must be less than
       or equal to 262144 bytes (256 KiB).
       
      optional string value = 111972721;
      Specified by:
      hasValue in interface ItemsOrBuilder
      Returns:
      Whether the value field is set.
    • getValue

      public String getValue()
       Value for the metadata entry. These are free-form strings, and only
       have meaning as interpreted by the image running in the instance. The
       only restriction placed on values is that their size must be less than
       or equal to 262144 bytes (256 KiB).
       
      optional string value = 111972721;
      Specified by:
      getValue in interface ItemsOrBuilder
      Returns:
      The value.
    • getValueBytes

      public com.google.protobuf.ByteString getValueBytes()
       Value for the metadata entry. These are free-form strings, and only
       have meaning as interpreted by the image running in the instance. The
       only restriction placed on values is that their size must be less than
       or equal to 262144 bytes (256 KiB).
       
      optional string value = 111972721;
      Specified by:
      getValueBytes in interface ItemsOrBuilder
      Returns:
      The bytes for value.
    • setValue

      public Items.Builder setValue(String value)
       Value for the metadata entry. These are free-form strings, and only
       have meaning as interpreted by the image running in the instance. The
       only restriction placed on values is that their size must be less than
       or equal to 262144 bytes (256 KiB).
       
      optional string value = 111972721;
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

      public Items.Builder clearValue()
       Value for the metadata entry. These are free-form strings, and only
       have meaning as interpreted by the image running in the instance. The
       only restriction placed on values is that their size must be less than
       or equal to 262144 bytes (256 KiB).
       
      optional string value = 111972721;
      Returns:
      This builder for chaining.
    • setValueBytes

      public Items.Builder setValueBytes(com.google.protobuf.ByteString value)
       Value for the metadata entry. These are free-form strings, and only
       have meaning as interpreted by the image running in the instance. The
       only restriction placed on values is that their size must be less than
       or equal to 262144 bytes (256 KiB).
       
      optional string value = 111972721;
      Parameters:
      value - The bytes for value to set.
      Returns:
      This builder for chaining.