Class Data.Builder

  • All Implemented Interfaces:
    DataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Data

    public static final class Data.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Data.Builder>
    implements DataOrBuilder
     
    Protobuf type google.cloud.compute.v1.Data
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Data.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)  
      Data build()  
      Data buildPartial()  
      Data.Builder clear()  
      Data.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)  
      Data.Builder clearKey()
      [Output Only] A key that provides more detail on the warning being returned.
      Data.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)  
      Data.Builder clearValue()
      [Output Only] A warning data value corresponding to the key.
      Data.Builder clone()  
      Data getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      com.google.protobuf.Descriptors.Descriptor getDescriptorForType()  
      String getKey()
      [Output Only] A key that provides more detail on the warning being returned.
      com.google.protobuf.ByteString getKeyBytes()
      [Output Only] A key that provides more detail on the warning being returned.
      String getValue()
      [Output Only] A warning data value corresponding to the key.
      com.google.protobuf.ByteString getValueBytes()
      [Output Only] A warning data value corresponding to the key.
      boolean hasKey()
      [Output Only] A key that provides more detail on the warning being returned.
      boolean hasValue()
      [Output Only] A warning data value corresponding to the key.
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      Data.Builder mergeFrom​(Data other)  
      Data.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      Data.Builder mergeFrom​(com.google.protobuf.Message other)  
      Data.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)  
      Data.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)  
      Data.Builder setKey​(String value)
      [Output Only] A key that provides more detail on the warning being returned.
      Data.Builder setKeyBytes​(com.google.protobuf.ByteString value)
      [Output Only] A key that provides more detail on the warning being returned.
      Data.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)  
      Data.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)  
      Data.Builder setValue​(String value)
      [Output Only] A warning data value corresponding to the key.
      Data.Builder setValueBytes​(com.google.protobuf.ByteString value)
      [Output Only] A warning data value corresponding to the key.
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder

        getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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 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 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<Data.Builder>
      • clear

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

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

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

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

        public Data.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<Data.Builder>
      • setField

        public Data.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<Data.Builder>
      • clearField

        public Data.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<Data.Builder>
      • clearOneof

        public Data.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<Data.Builder>
      • setRepeatedField

        public Data.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<Data.Builder>
      • addRepeatedField

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

        public Data.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<Data.Builder>
      • isInitialized

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

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

        public boolean hasKey()
         [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
         
        optional string key = 106079;
        Specified by:
        hasKey in interface DataOrBuilder
        Returns:
        Whether the key field is set.
      • getKey

        public String getKey()
         [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
         
        optional string key = 106079;
        Specified by:
        getKey in interface DataOrBuilder
        Returns:
        The key.
      • getKeyBytes

        public com.google.protobuf.ByteString getKeyBytes()
         [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
         
        optional string key = 106079;
        Specified by:
        getKeyBytes in interface DataOrBuilder
        Returns:
        The bytes for key.
      • setKey

        public Data.Builder setKey​(String value)
         [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
         
        optional string key = 106079;
        Parameters:
        value - The key to set.
        Returns:
        This builder for chaining.
      • clearKey

        public Data.Builder clearKey()
         [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
         
        optional string key = 106079;
        Returns:
        This builder for chaining.
      • setKeyBytes

        public Data.Builder setKeyBytes​(com.google.protobuf.ByteString value)
         [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
         
        optional string key = 106079;
        Parameters:
        value - The bytes for key to set.
        Returns:
        This builder for chaining.
      • hasValue

        public boolean hasValue()
         [Output Only] A warning data value corresponding to the key.
         
        optional string value = 111972721;
        Specified by:
        hasValue in interface DataOrBuilder
        Returns:
        Whether the value field is set.
      • getValue

        public String getValue()
         [Output Only] A warning data value corresponding to the key.
         
        optional string value = 111972721;
        Specified by:
        getValue in interface DataOrBuilder
        Returns:
        The value.
      • getValueBytes

        public com.google.protobuf.ByteString getValueBytes()
         [Output Only] A warning data value corresponding to the key.
         
        optional string value = 111972721;
        Specified by:
        getValueBytes in interface DataOrBuilder
        Returns:
        The bytes for value.
      • setValue

        public Data.Builder setValue​(String value)
         [Output Only] A warning data value corresponding to the key.
         
        optional string value = 111972721;
        Parameters:
        value - The value to set.
        Returns:
        This builder for chaining.
      • clearValue

        public Data.Builder clearValue()
         [Output Only] A warning data value corresponding to the key.
         
        optional string value = 111972721;
        Returns:
        This builder for chaining.
      • setValueBytes

        public Data.Builder setValueBytes​(com.google.protobuf.ByteString value)
         [Output Only] A warning data value corresponding to the key.
         
        optional string value = 111972721;
        Parameters:
        value - The bytes for value to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Data.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<Data.Builder>
      • mergeUnknownFields

        public final Data.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<Data.Builder>