Class Errors.Builder

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

public static final class Errors.Builder extends com.google.protobuf.GeneratedMessage.Builder<Errors.Builder> implements ErrorsOrBuilder
 
Protobuf type google.cloud.compute.v1.Errors
  • 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<Errors.Builder>
    • clear

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

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

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

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

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

      public Errors.Builder mergeFrom(Errors other)
    • isInitialized

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

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

      public boolean hasCode()
       [Output Only] The error type identifier for this error.
       
      optional string code = 3059181;
      Specified by:
      hasCode in interface ErrorsOrBuilder
      Returns:
      Whether the code field is set.
    • getCode

      public String getCode()
       [Output Only] The error type identifier for this error.
       
      optional string code = 3059181;
      Specified by:
      getCode in interface ErrorsOrBuilder
      Returns:
      The code.
    • getCodeBytes

      public com.google.protobuf.ByteString getCodeBytes()
       [Output Only] The error type identifier for this error.
       
      optional string code = 3059181;
      Specified by:
      getCodeBytes in interface ErrorsOrBuilder
      Returns:
      The bytes for code.
    • setCode

      public Errors.Builder setCode(String value)
       [Output Only] The error type identifier for this error.
       
      optional string code = 3059181;
      Parameters:
      value - The code to set.
      Returns:
      This builder for chaining.
    • clearCode

      public Errors.Builder clearCode()
       [Output Only] The error type identifier for this error.
       
      optional string code = 3059181;
      Returns:
      This builder for chaining.
    • setCodeBytes

      public Errors.Builder setCodeBytes(com.google.protobuf.ByteString value)
       [Output Only] The error type identifier for this error.
       
      optional string code = 3059181;
      Parameters:
      value - The bytes for code to set.
      Returns:
      This builder for chaining.
    • getErrorDetailsList

      public List<ErrorDetails> getErrorDetailsList()
       [Output Only] An optional list of messages that contain the error
       details. There is a set of defined message types to use for providing
       details.The syntax depends on the error code. For example,
       QuotaExceededInfo will have details when the error code is
       QUOTA_EXCEEDED.
       
      repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
      Specified by:
      getErrorDetailsList in interface ErrorsOrBuilder
    • getErrorDetailsCount

      public int getErrorDetailsCount()
       [Output Only] An optional list of messages that contain the error
       details. There is a set of defined message types to use for providing
       details.The syntax depends on the error code. For example,
       QuotaExceededInfo will have details when the error code is
       QUOTA_EXCEEDED.
       
      repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
      Specified by:
      getErrorDetailsCount in interface ErrorsOrBuilder
    • getErrorDetails

      public ErrorDetails getErrorDetails(int index)
       [Output Only] An optional list of messages that contain the error
       details. There is a set of defined message types to use for providing
       details.The syntax depends on the error code. For example,
       QuotaExceededInfo will have details when the error code is
       QUOTA_EXCEEDED.
       
      repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
      Specified by:
      getErrorDetails in interface ErrorsOrBuilder
    • setErrorDetails

      public Errors.Builder setErrorDetails(int index, ErrorDetails value)
       [Output Only] An optional list of messages that contain the error
       details. There is a set of defined message types to use for providing
       details.The syntax depends on the error code. For example,
       QuotaExceededInfo will have details when the error code is
       QUOTA_EXCEEDED.
       
      repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
    • setErrorDetails

      public Errors.Builder setErrorDetails(int index, ErrorDetails.Builder builderForValue)
       [Output Only] An optional list of messages that contain the error
       details. There is a set of defined message types to use for providing
       details.The syntax depends on the error code. For example,
       QuotaExceededInfo will have details when the error code is
       QUOTA_EXCEEDED.
       
      repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
    • addErrorDetails

      public Errors.Builder addErrorDetails(ErrorDetails value)
       [Output Only] An optional list of messages that contain the error
       details. There is a set of defined message types to use for providing
       details.The syntax depends on the error code. For example,
       QuotaExceededInfo will have details when the error code is
       QUOTA_EXCEEDED.
       
      repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
    • addErrorDetails

      public Errors.Builder addErrorDetails(int index, ErrorDetails value)
       [Output Only] An optional list of messages that contain the error
       details. There is a set of defined message types to use for providing
       details.The syntax depends on the error code. For example,
       QuotaExceededInfo will have details when the error code is
       QUOTA_EXCEEDED.
       
      repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
    • addErrorDetails

      public Errors.Builder addErrorDetails(ErrorDetails.Builder builderForValue)
       [Output Only] An optional list of messages that contain the error
       details. There is a set of defined message types to use for providing
       details.The syntax depends on the error code. For example,
       QuotaExceededInfo will have details when the error code is
       QUOTA_EXCEEDED.
       
      repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
    • addErrorDetails

      public Errors.Builder addErrorDetails(int index, ErrorDetails.Builder builderForValue)
       [Output Only] An optional list of messages that contain the error
       details. There is a set of defined message types to use for providing
       details.The syntax depends on the error code. For example,
       QuotaExceededInfo will have details when the error code is
       QUOTA_EXCEEDED.
       
      repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
    • addAllErrorDetails

      public Errors.Builder addAllErrorDetails(Iterable<? extends ErrorDetails> values)
       [Output Only] An optional list of messages that contain the error
       details. There is a set of defined message types to use for providing
       details.The syntax depends on the error code. For example,
       QuotaExceededInfo will have details when the error code is
       QUOTA_EXCEEDED.
       
      repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
    • clearErrorDetails

      public Errors.Builder clearErrorDetails()
       [Output Only] An optional list of messages that contain the error
       details. There is a set of defined message types to use for providing
       details.The syntax depends on the error code. For example,
       QuotaExceededInfo will have details when the error code is
       QUOTA_EXCEEDED.
       
      repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
    • removeErrorDetails

      public Errors.Builder removeErrorDetails(int index)
       [Output Only] An optional list of messages that contain the error
       details. There is a set of defined message types to use for providing
       details.The syntax depends on the error code. For example,
       QuotaExceededInfo will have details when the error code is
       QUOTA_EXCEEDED.
       
      repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
    • getErrorDetailsBuilder

      public ErrorDetails.Builder getErrorDetailsBuilder(int index)
       [Output Only] An optional list of messages that contain the error
       details. There is a set of defined message types to use for providing
       details.The syntax depends on the error code. For example,
       QuotaExceededInfo will have details when the error code is
       QUOTA_EXCEEDED.
       
      repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
    • getErrorDetailsOrBuilder

      public ErrorDetailsOrBuilder getErrorDetailsOrBuilder(int index)
       [Output Only] An optional list of messages that contain the error
       details. There is a set of defined message types to use for providing
       details.The syntax depends on the error code. For example,
       QuotaExceededInfo will have details when the error code is
       QUOTA_EXCEEDED.
       
      repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
      Specified by:
      getErrorDetailsOrBuilder in interface ErrorsOrBuilder
    • getErrorDetailsOrBuilderList

      public List<? extends ErrorDetailsOrBuilder> getErrorDetailsOrBuilderList()
       [Output Only] An optional list of messages that contain the error
       details. There is a set of defined message types to use for providing
       details.The syntax depends on the error code. For example,
       QuotaExceededInfo will have details when the error code is
       QUOTA_EXCEEDED.
       
      repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
      Specified by:
      getErrorDetailsOrBuilderList in interface ErrorsOrBuilder
    • addErrorDetailsBuilder

      public ErrorDetails.Builder addErrorDetailsBuilder()
       [Output Only] An optional list of messages that contain the error
       details. There is a set of defined message types to use for providing
       details.The syntax depends on the error code. For example,
       QuotaExceededInfo will have details when the error code is
       QUOTA_EXCEEDED.
       
      repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
    • addErrorDetailsBuilder

      public ErrorDetails.Builder addErrorDetailsBuilder(int index)
       [Output Only] An optional list of messages that contain the error
       details. There is a set of defined message types to use for providing
       details.The syntax depends on the error code. For example,
       QuotaExceededInfo will have details when the error code is
       QUOTA_EXCEEDED.
       
      repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
    • getErrorDetailsBuilderList

      public List<ErrorDetails.Builder> getErrorDetailsBuilderList()
       [Output Only] An optional list of messages that contain the error
       details. There is a set of defined message types to use for providing
       details.The syntax depends on the error code. For example,
       QuotaExceededInfo will have details when the error code is
       QUOTA_EXCEEDED.
       
      repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
    • hasLocation

      public boolean hasLocation()
       [Output Only] Indicates the field in the request that caused the error.
       This property is optional.
       
      optional string location = 290430901;
      Specified by:
      hasLocation in interface ErrorsOrBuilder
      Returns:
      Whether the location field is set.
    • getLocation

      public String getLocation()
       [Output Only] Indicates the field in the request that caused the error.
       This property is optional.
       
      optional string location = 290430901;
      Specified by:
      getLocation in interface ErrorsOrBuilder
      Returns:
      The location.
    • getLocationBytes

      public com.google.protobuf.ByteString getLocationBytes()
       [Output Only] Indicates the field in the request that caused the error.
       This property is optional.
       
      optional string location = 290430901;
      Specified by:
      getLocationBytes in interface ErrorsOrBuilder
      Returns:
      The bytes for location.
    • setLocation

      public Errors.Builder setLocation(String value)
       [Output Only] Indicates the field in the request that caused the error.
       This property is optional.
       
      optional string location = 290430901;
      Parameters:
      value - The location to set.
      Returns:
      This builder for chaining.
    • clearLocation

      public Errors.Builder clearLocation()
       [Output Only] Indicates the field in the request that caused the error.
       This property is optional.
       
      optional string location = 290430901;
      Returns:
      This builder for chaining.
    • setLocationBytes

      public Errors.Builder setLocationBytes(com.google.protobuf.ByteString value)
       [Output Only] Indicates the field in the request that caused the error.
       This property is optional.
       
      optional string location = 290430901;
      Parameters:
      value - The bytes for location to set.
      Returns:
      This builder for chaining.
    • hasMessage

      public boolean hasMessage()
       [Output Only] An optional, human-readable error message.
       
      optional string message = 418054151;
      Specified by:
      hasMessage in interface ErrorsOrBuilder
      Returns:
      Whether the message field is set.
    • getMessage

      public String getMessage()
       [Output Only] An optional, human-readable error message.
       
      optional string message = 418054151;
      Specified by:
      getMessage in interface ErrorsOrBuilder
      Returns:
      The message.
    • getMessageBytes

      public com.google.protobuf.ByteString getMessageBytes()
       [Output Only] An optional, human-readable error message.
       
      optional string message = 418054151;
      Specified by:
      getMessageBytes in interface ErrorsOrBuilder
      Returns:
      The bytes for message.
    • setMessage

      public Errors.Builder setMessage(String value)
       [Output Only] An optional, human-readable error message.
       
      optional string message = 418054151;
      Parameters:
      value - The message to set.
      Returns:
      This builder for chaining.
    • clearMessage

      public Errors.Builder clearMessage()
       [Output Only] An optional, human-readable error message.
       
      optional string message = 418054151;
      Returns:
      This builder for chaining.
    • setMessageBytes

      public Errors.Builder setMessageBytes(com.google.protobuf.ByteString value)
       [Output Only] An optional, human-readable error message.
       
      optional string message = 418054151;
      Parameters:
      value - The bytes for message to set.
      Returns:
      This builder for chaining.