Class 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.GeneratedMessageV3.Builder<Errors.Builder>
    implements ErrorsOrBuilder
     
    Protobuf type google.cloud.compute.v1.Errors
    • 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<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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

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

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

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

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • setUnknownFields

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

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