Class QuotaStatusWarning.Builder

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

public static final class QuotaStatusWarning.Builder extends com.google.protobuf.GeneratedMessage.Builder<QuotaStatusWarning.Builder> implements QuotaStatusWarningOrBuilder
 Output only. [Output Only] Warning of fetching the `quotas` field for this region. This
 field is populated only if fetching of the `quotas` field fails.
 
Protobuf type google.cloud.compute.v1.QuotaStatusWarning
  • 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<QuotaStatusWarning.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<QuotaStatusWarning.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<QuotaStatusWarning.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public QuotaStatusWarning.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<QuotaStatusWarning.Builder>
      Throws:
      IOException
    • hasCode

      public boolean hasCode()
       [Output Only] A warning code, if applicable. For example, Compute
       Engine returns NO_RESULTS_ON_PAGE if there
       are no results in the response.
       Check the Code enum for the list of possible values.
       
      optional string code = 3059181;
      Specified by:
      hasCode in interface QuotaStatusWarningOrBuilder
      Returns:
      Whether the code field is set.
    • getCode

      public String getCode()
       [Output Only] A warning code, if applicable. For example, Compute
       Engine returns NO_RESULTS_ON_PAGE if there
       are no results in the response.
       Check the Code enum for the list of possible values.
       
      optional string code = 3059181;
      Specified by:
      getCode in interface QuotaStatusWarningOrBuilder
      Returns:
      The code.
    • getCodeBytes

      public com.google.protobuf.ByteString getCodeBytes()
       [Output Only] A warning code, if applicable. For example, Compute
       Engine returns NO_RESULTS_ON_PAGE if there
       are no results in the response.
       Check the Code enum for the list of possible values.
       
      optional string code = 3059181;
      Specified by:
      getCodeBytes in interface QuotaStatusWarningOrBuilder
      Returns:
      The bytes for code.
    • setCode

      public QuotaStatusWarning.Builder setCode(String value)
       [Output Only] A warning code, if applicable. For example, Compute
       Engine returns NO_RESULTS_ON_PAGE if there
       are no results in the response.
       Check the Code enum for the list of possible values.
       
      optional string code = 3059181;
      Parameters:
      value - The code to set.
      Returns:
      This builder for chaining.
    • clearCode

      public QuotaStatusWarning.Builder clearCode()
       [Output Only] A warning code, if applicable. For example, Compute
       Engine returns NO_RESULTS_ON_PAGE if there
       are no results in the response.
       Check the Code enum for the list of possible values.
       
      optional string code = 3059181;
      Returns:
      This builder for chaining.
    • setCodeBytes

      public QuotaStatusWarning.Builder setCodeBytes(com.google.protobuf.ByteString value)
       [Output Only] A warning code, if applicable. For example, Compute
       Engine returns NO_RESULTS_ON_PAGE if there
       are no results in the response.
       Check the Code enum for the list of possible values.
       
      optional string code = 3059181;
      Parameters:
      value - The bytes for code to set.
      Returns:
      This builder for chaining.
    • getDataList

      public List<Data> getDataList()
       [Output Only] Metadata about this warning in key:
       value format. For example:
      
       "data": [
       {
       "key": "scope",
       "value": "zones/us-east1-d"
       }
       
      repeated .google.cloud.compute.v1.Data data = 3076010;
      Specified by:
      getDataList in interface QuotaStatusWarningOrBuilder
    • getDataCount

      public int getDataCount()
       [Output Only] Metadata about this warning in key:
       value format. For example:
      
       "data": [
       {
       "key": "scope",
       "value": "zones/us-east1-d"
       }
       
      repeated .google.cloud.compute.v1.Data data = 3076010;
      Specified by:
      getDataCount in interface QuotaStatusWarningOrBuilder
    • getData

      public Data getData(int index)
       [Output Only] Metadata about this warning in key:
       value format. For example:
      
       "data": [
       {
       "key": "scope",
       "value": "zones/us-east1-d"
       }
       
      repeated .google.cloud.compute.v1.Data data = 3076010;
      Specified by:
      getData in interface QuotaStatusWarningOrBuilder
    • setData

      public QuotaStatusWarning.Builder setData(int index, Data value)
       [Output Only] Metadata about this warning in key:
       value format. For example:
      
       "data": [
       {
       "key": "scope",
       "value": "zones/us-east1-d"
       }
       
      repeated .google.cloud.compute.v1.Data data = 3076010;
    • setData

      public QuotaStatusWarning.Builder setData(int index, Data.Builder builderForValue)
       [Output Only] Metadata about this warning in key:
       value format. For example:
      
       "data": [
       {
       "key": "scope",
       "value": "zones/us-east1-d"
       }
       
      repeated .google.cloud.compute.v1.Data data = 3076010;
    • addData

      public QuotaStatusWarning.Builder addData(Data value)
       [Output Only] Metadata about this warning in key:
       value format. For example:
      
       "data": [
       {
       "key": "scope",
       "value": "zones/us-east1-d"
       }
       
      repeated .google.cloud.compute.v1.Data data = 3076010;
    • addData

      public QuotaStatusWarning.Builder addData(int index, Data value)
       [Output Only] Metadata about this warning in key:
       value format. For example:
      
       "data": [
       {
       "key": "scope",
       "value": "zones/us-east1-d"
       }
       
      repeated .google.cloud.compute.v1.Data data = 3076010;
    • addData

      public QuotaStatusWarning.Builder addData(Data.Builder builderForValue)
       [Output Only] Metadata about this warning in key:
       value format. For example:
      
       "data": [
       {
       "key": "scope",
       "value": "zones/us-east1-d"
       }
       
      repeated .google.cloud.compute.v1.Data data = 3076010;
    • addData

      public QuotaStatusWarning.Builder addData(int index, Data.Builder builderForValue)
       [Output Only] Metadata about this warning in key:
       value format. For example:
      
       "data": [
       {
       "key": "scope",
       "value": "zones/us-east1-d"
       }
       
      repeated .google.cloud.compute.v1.Data data = 3076010;
    • addAllData

      public QuotaStatusWarning.Builder addAllData(Iterable<? extends Data> values)
       [Output Only] Metadata about this warning in key:
       value format. For example:
      
       "data": [
       {
       "key": "scope",
       "value": "zones/us-east1-d"
       }
       
      repeated .google.cloud.compute.v1.Data data = 3076010;
    • clearData

      public QuotaStatusWarning.Builder clearData()
       [Output Only] Metadata about this warning in key:
       value format. For example:
      
       "data": [
       {
       "key": "scope",
       "value": "zones/us-east1-d"
       }
       
      repeated .google.cloud.compute.v1.Data data = 3076010;
    • removeData

      public QuotaStatusWarning.Builder removeData(int index)
       [Output Only] Metadata about this warning in key:
       value format. For example:
      
       "data": [
       {
       "key": "scope",
       "value": "zones/us-east1-d"
       }
       
      repeated .google.cloud.compute.v1.Data data = 3076010;
    • getDataBuilder

      public Data.Builder getDataBuilder(int index)
       [Output Only] Metadata about this warning in key:
       value format. For example:
      
       "data": [
       {
       "key": "scope",
       "value": "zones/us-east1-d"
       }
       
      repeated .google.cloud.compute.v1.Data data = 3076010;
    • getDataOrBuilder

      public DataOrBuilder getDataOrBuilder(int index)
       [Output Only] Metadata about this warning in key:
       value format. For example:
      
       "data": [
       {
       "key": "scope",
       "value": "zones/us-east1-d"
       }
       
      repeated .google.cloud.compute.v1.Data data = 3076010;
      Specified by:
      getDataOrBuilder in interface QuotaStatusWarningOrBuilder
    • getDataOrBuilderList

      public List<? extends DataOrBuilder> getDataOrBuilderList()
       [Output Only] Metadata about this warning in key:
       value format. For example:
      
       "data": [
       {
       "key": "scope",
       "value": "zones/us-east1-d"
       }
       
      repeated .google.cloud.compute.v1.Data data = 3076010;
      Specified by:
      getDataOrBuilderList in interface QuotaStatusWarningOrBuilder
    • addDataBuilder

      public Data.Builder addDataBuilder()
       [Output Only] Metadata about this warning in key:
       value format. For example:
      
       "data": [
       {
       "key": "scope",
       "value": "zones/us-east1-d"
       }
       
      repeated .google.cloud.compute.v1.Data data = 3076010;
    • addDataBuilder

      public Data.Builder addDataBuilder(int index)
       [Output Only] Metadata about this warning in key:
       value format. For example:
      
       "data": [
       {
       "key": "scope",
       "value": "zones/us-east1-d"
       }
       
      repeated .google.cloud.compute.v1.Data data = 3076010;
    • getDataBuilderList

      public List<Data.Builder> getDataBuilderList()
       [Output Only] Metadata about this warning in key:
       value format. For example:
      
       "data": [
       {
       "key": "scope",
       "value": "zones/us-east1-d"
       }
       
      repeated .google.cloud.compute.v1.Data data = 3076010;
    • hasMessage

      public boolean hasMessage()
       [Output Only] A human-readable description of the warning code.
       
      optional string message = 418054151;
      Specified by:
      hasMessage in interface QuotaStatusWarningOrBuilder
      Returns:
      Whether the message field is set.
    • getMessage

      public String getMessage()
       [Output Only] A human-readable description of the warning code.
       
      optional string message = 418054151;
      Specified by:
      getMessage in interface QuotaStatusWarningOrBuilder
      Returns:
      The message.
    • getMessageBytes

      public com.google.protobuf.ByteString getMessageBytes()
       [Output Only] A human-readable description of the warning code.
       
      optional string message = 418054151;
      Specified by:
      getMessageBytes in interface QuotaStatusWarningOrBuilder
      Returns:
      The bytes for message.
    • setMessage

      public QuotaStatusWarning.Builder setMessage(String value)
       [Output Only] A human-readable description of the warning code.
       
      optional string message = 418054151;
      Parameters:
      value - The message to set.
      Returns:
      This builder for chaining.
    • clearMessage

      public QuotaStatusWarning.Builder clearMessage()
       [Output Only] A human-readable description of the warning code.
       
      optional string message = 418054151;
      Returns:
      This builder for chaining.
    • setMessageBytes

      public QuotaStatusWarning.Builder setMessageBytes(com.google.protobuf.ByteString value)
       [Output Only] A human-readable description of the warning code.
       
      optional string message = 418054151;
      Parameters:
      value - The bytes for message to set.
      Returns:
      This builder for chaining.