Class ResourceErrorDetail.Builder

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

    public static final class ResourceErrorDetail.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ResourceErrorDetail.Builder>
    implements ResourceErrorDetailOrBuilder
     Provides details for errors and the corresponding resources.
     
    Protobuf type google.cloud.bigquery.migration.v2.ResourceErrorDetail
    • 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<ResourceErrorDetail.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public ResourceErrorDetail.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<ResourceErrorDetail.Builder>
        Throws:
        IOException
      • hasResourceInfo

        public boolean hasResourceInfo()
         Required. Information about the resource where the error is located.
         
        .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasResourceInfo in interface ResourceErrorDetailOrBuilder
        Returns:
        Whether the resourceInfo field is set.
      • getResourceInfo

        public com.google.rpc.ResourceInfo getResourceInfo()
         Required. Information about the resource where the error is located.
         
        .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getResourceInfo in interface ResourceErrorDetailOrBuilder
        Returns:
        The resourceInfo.
      • setResourceInfo

        public ResourceErrorDetail.Builder setResourceInfo​(com.google.rpc.ResourceInfo value)
         Required. Information about the resource where the error is located.
         
        .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED];
      • setResourceInfo

        public ResourceErrorDetail.Builder setResourceInfo​(com.google.rpc.ResourceInfo.Builder builderForValue)
         Required. Information about the resource where the error is located.
         
        .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED];
      • mergeResourceInfo

        public ResourceErrorDetail.Builder mergeResourceInfo​(com.google.rpc.ResourceInfo value)
         Required. Information about the resource where the error is located.
         
        .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED];
      • clearResourceInfo

        public ResourceErrorDetail.Builder clearResourceInfo()
         Required. Information about the resource where the error is located.
         
        .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED];
      • getResourceInfoBuilder

        public com.google.rpc.ResourceInfo.Builder getResourceInfoBuilder()
         Required. Information about the resource where the error is located.
         
        .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED];
      • getResourceInfoOrBuilder

        public com.google.rpc.ResourceInfoOrBuilder getResourceInfoOrBuilder()
         Required. Information about the resource where the error is located.
         
        .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getResourceInfoOrBuilder in interface ResourceErrorDetailOrBuilder
      • getErrorDetailsList

        public List<ErrorDetail> getErrorDetailsList()
         Required. The error details for the resource.
         
        repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getErrorDetailsList in interface ResourceErrorDetailOrBuilder
      • getErrorDetailsCount

        public int getErrorDetailsCount()
         Required. The error details for the resource.
         
        repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getErrorDetailsCount in interface ResourceErrorDetailOrBuilder
      • getErrorDetails

        public ErrorDetail getErrorDetails​(int index)
         Required. The error details for the resource.
         
        repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getErrorDetails in interface ResourceErrorDetailOrBuilder
      • setErrorDetails

        public ResourceErrorDetail.Builder setErrorDetails​(int index,
                                                           ErrorDetail value)
         Required. The error details for the resource.
         
        repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
      • setErrorDetails

        public ResourceErrorDetail.Builder setErrorDetails​(int index,
                                                           ErrorDetail.Builder builderForValue)
         Required. The error details for the resource.
         
        repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
      • addErrorDetails

        public ResourceErrorDetail.Builder addErrorDetails​(ErrorDetail value)
         Required. The error details for the resource.
         
        repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
      • addErrorDetails

        public ResourceErrorDetail.Builder addErrorDetails​(int index,
                                                           ErrorDetail value)
         Required. The error details for the resource.
         
        repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
      • addErrorDetails

        public ResourceErrorDetail.Builder addErrorDetails​(ErrorDetail.Builder builderForValue)
         Required. The error details for the resource.
         
        repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
      • addErrorDetails

        public ResourceErrorDetail.Builder addErrorDetails​(int index,
                                                           ErrorDetail.Builder builderForValue)
         Required. The error details for the resource.
         
        repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
      • addAllErrorDetails

        public ResourceErrorDetail.Builder addAllErrorDetails​(Iterable<? extends ErrorDetail> values)
         Required. The error details for the resource.
         
        repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearErrorDetails

        public ResourceErrorDetail.Builder clearErrorDetails()
         Required. The error details for the resource.
         
        repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
      • removeErrorDetails

        public ResourceErrorDetail.Builder removeErrorDetails​(int index)
         Required. The error details for the resource.
         
        repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
      • getErrorDetailsBuilder

        public ErrorDetail.Builder getErrorDetailsBuilder​(int index)
         Required. The error details for the resource.
         
        repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
      • addErrorDetailsBuilder

        public ErrorDetail.Builder addErrorDetailsBuilder()
         Required. The error details for the resource.
         
        repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
      • addErrorDetailsBuilder

        public ErrorDetail.Builder addErrorDetailsBuilder​(int index)
         Required. The error details for the resource.
         
        repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
      • getErrorDetailsBuilderList

        public List<ErrorDetail.Builder> getErrorDetailsBuilderList()
         Required. The error details for the resource.
         
        repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
      • getErrorCount

        public int getErrorCount()
         Required. How many errors there are in total for the resource. Truncation
         can be indicated by having an `error_count` that is higher than the size of
         `error_details`.
         
        int32 error_count = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getErrorCount in interface ResourceErrorDetailOrBuilder
        Returns:
        The errorCount.
      • setErrorCount

        public ResourceErrorDetail.Builder setErrorCount​(int value)
         Required. How many errors there are in total for the resource. Truncation
         can be indicated by having an `error_count` that is higher than the size of
         `error_details`.
         
        int32 error_count = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The errorCount to set.
        Returns:
        This builder for chaining.
      • clearErrorCount

        public ResourceErrorDetail.Builder clearErrorCount()
         Required. How many errors there are in total for the resource. Truncation
         can be indicated by having an `error_count` that is higher than the size of
         `error_details`.
         
        int32 error_count = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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