Class ReportRequest.Builder

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

    public static final class ReportRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ReportRequest.Builder>
    implements ReportRequestOrBuilder
     Request message for the Report method.
     
    Protobuf type google.api.servicecontrol.v1.ReportRequest
    • 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<ReportRequest.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public ReportRequest.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<ReportRequest.Builder>
        Throws:
        IOException
      • getServiceName

        public String getServiceName()
         The service name as specified in its service configuration. For example,
         `"pubsub.googleapis.com"`.
        
         See
         [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service)
         for the definition of a service name.
         
        string service_name = 1;
        Specified by:
        getServiceName in interface ReportRequestOrBuilder
        Returns:
        The serviceName.
      • getServiceNameBytes

        public com.google.protobuf.ByteString getServiceNameBytes()
         The service name as specified in its service configuration. For example,
         `"pubsub.googleapis.com"`.
        
         See
         [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service)
         for the definition of a service name.
         
        string service_name = 1;
        Specified by:
        getServiceNameBytes in interface ReportRequestOrBuilder
        Returns:
        The bytes for serviceName.
      • setServiceName

        public ReportRequest.Builder setServiceName​(String value)
         The service name as specified in its service configuration. For example,
         `"pubsub.googleapis.com"`.
        
         See
         [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service)
         for the definition of a service name.
         
        string service_name = 1;
        Parameters:
        value - The serviceName to set.
        Returns:
        This builder for chaining.
      • clearServiceName

        public ReportRequest.Builder clearServiceName()
         The service name as specified in its service configuration. For example,
         `"pubsub.googleapis.com"`.
        
         See
         [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service)
         for the definition of a service name.
         
        string service_name = 1;
        Returns:
        This builder for chaining.
      • setServiceNameBytes

        public ReportRequest.Builder setServiceNameBytes​(com.google.protobuf.ByteString value)
         The service name as specified in its service configuration. For example,
         `"pubsub.googleapis.com"`.
        
         See
         [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service)
         for the definition of a service name.
         
        string service_name = 1;
        Parameters:
        value - The bytes for serviceName to set.
        Returns:
        This builder for chaining.
      • getOperationsList

        public List<Operation> getOperationsList()
         Operations to be reported.
        
         Typically the service should report one operation per request.
         Putting multiple operations into a single request is allowed, but should
         be used only when multiple operations are natually available at the time
         of the report.
        
         There is no limit on the number of operations in the same ReportRequest,
         however the ReportRequest size should be no larger than 1MB. See
         [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors]
         for partial failure behavior.
         
        repeated .google.api.servicecontrol.v1.Operation operations = 2;
        Specified by:
        getOperationsList in interface ReportRequestOrBuilder
      • getOperationsCount

        public int getOperationsCount()
         Operations to be reported.
        
         Typically the service should report one operation per request.
         Putting multiple operations into a single request is allowed, but should
         be used only when multiple operations are natually available at the time
         of the report.
        
         There is no limit on the number of operations in the same ReportRequest,
         however the ReportRequest size should be no larger than 1MB. See
         [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors]
         for partial failure behavior.
         
        repeated .google.api.servicecontrol.v1.Operation operations = 2;
        Specified by:
        getOperationsCount in interface ReportRequestOrBuilder
      • getOperations

        public Operation getOperations​(int index)
         Operations to be reported.
        
         Typically the service should report one operation per request.
         Putting multiple operations into a single request is allowed, but should
         be used only when multiple operations are natually available at the time
         of the report.
        
         There is no limit on the number of operations in the same ReportRequest,
         however the ReportRequest size should be no larger than 1MB. See
         [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors]
         for partial failure behavior.
         
        repeated .google.api.servicecontrol.v1.Operation operations = 2;
        Specified by:
        getOperations in interface ReportRequestOrBuilder
      • setOperations

        public ReportRequest.Builder setOperations​(int index,
                                                   Operation value)
         Operations to be reported.
        
         Typically the service should report one operation per request.
         Putting multiple operations into a single request is allowed, but should
         be used only when multiple operations are natually available at the time
         of the report.
        
         There is no limit on the number of operations in the same ReportRequest,
         however the ReportRequest size should be no larger than 1MB. See
         [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors]
         for partial failure behavior.
         
        repeated .google.api.servicecontrol.v1.Operation operations = 2;
      • setOperations

        public ReportRequest.Builder setOperations​(int index,
                                                   Operation.Builder builderForValue)
         Operations to be reported.
        
         Typically the service should report one operation per request.
         Putting multiple operations into a single request is allowed, but should
         be used only when multiple operations are natually available at the time
         of the report.
        
         There is no limit on the number of operations in the same ReportRequest,
         however the ReportRequest size should be no larger than 1MB. See
         [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors]
         for partial failure behavior.
         
        repeated .google.api.servicecontrol.v1.Operation operations = 2;
      • addOperations

        public ReportRequest.Builder addOperations​(Operation value)
         Operations to be reported.
        
         Typically the service should report one operation per request.
         Putting multiple operations into a single request is allowed, but should
         be used only when multiple operations are natually available at the time
         of the report.
        
         There is no limit on the number of operations in the same ReportRequest,
         however the ReportRequest size should be no larger than 1MB. See
         [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors]
         for partial failure behavior.
         
        repeated .google.api.servicecontrol.v1.Operation operations = 2;
      • addOperations

        public ReportRequest.Builder addOperations​(int index,
                                                   Operation value)
         Operations to be reported.
        
         Typically the service should report one operation per request.
         Putting multiple operations into a single request is allowed, but should
         be used only when multiple operations are natually available at the time
         of the report.
        
         There is no limit on the number of operations in the same ReportRequest,
         however the ReportRequest size should be no larger than 1MB. See
         [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors]
         for partial failure behavior.
         
        repeated .google.api.servicecontrol.v1.Operation operations = 2;
      • addOperations

        public ReportRequest.Builder addOperations​(Operation.Builder builderForValue)
         Operations to be reported.
        
         Typically the service should report one operation per request.
         Putting multiple operations into a single request is allowed, but should
         be used only when multiple operations are natually available at the time
         of the report.
        
         There is no limit on the number of operations in the same ReportRequest,
         however the ReportRequest size should be no larger than 1MB. See
         [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors]
         for partial failure behavior.
         
        repeated .google.api.servicecontrol.v1.Operation operations = 2;
      • addOperations

        public ReportRequest.Builder addOperations​(int index,
                                                   Operation.Builder builderForValue)
         Operations to be reported.
        
         Typically the service should report one operation per request.
         Putting multiple operations into a single request is allowed, but should
         be used only when multiple operations are natually available at the time
         of the report.
        
         There is no limit on the number of operations in the same ReportRequest,
         however the ReportRequest size should be no larger than 1MB. See
         [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors]
         for partial failure behavior.
         
        repeated .google.api.servicecontrol.v1.Operation operations = 2;
      • addAllOperations

        public ReportRequest.Builder addAllOperations​(Iterable<? extends Operation> values)
         Operations to be reported.
        
         Typically the service should report one operation per request.
         Putting multiple operations into a single request is allowed, but should
         be used only when multiple operations are natually available at the time
         of the report.
        
         There is no limit on the number of operations in the same ReportRequest,
         however the ReportRequest size should be no larger than 1MB. See
         [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors]
         for partial failure behavior.
         
        repeated .google.api.servicecontrol.v1.Operation operations = 2;
      • clearOperations

        public ReportRequest.Builder clearOperations()
         Operations to be reported.
        
         Typically the service should report one operation per request.
         Putting multiple operations into a single request is allowed, but should
         be used only when multiple operations are natually available at the time
         of the report.
        
         There is no limit on the number of operations in the same ReportRequest,
         however the ReportRequest size should be no larger than 1MB. See
         [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors]
         for partial failure behavior.
         
        repeated .google.api.servicecontrol.v1.Operation operations = 2;
      • removeOperations

        public ReportRequest.Builder removeOperations​(int index)
         Operations to be reported.
        
         Typically the service should report one operation per request.
         Putting multiple operations into a single request is allowed, but should
         be used only when multiple operations are natually available at the time
         of the report.
        
         There is no limit on the number of operations in the same ReportRequest,
         however the ReportRequest size should be no larger than 1MB. See
         [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors]
         for partial failure behavior.
         
        repeated .google.api.servicecontrol.v1.Operation operations = 2;
      • getOperationsBuilder

        public Operation.Builder getOperationsBuilder​(int index)
         Operations to be reported.
        
         Typically the service should report one operation per request.
         Putting multiple operations into a single request is allowed, but should
         be used only when multiple operations are natually available at the time
         of the report.
        
         There is no limit on the number of operations in the same ReportRequest,
         however the ReportRequest size should be no larger than 1MB. See
         [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors]
         for partial failure behavior.
         
        repeated .google.api.servicecontrol.v1.Operation operations = 2;
      • getOperationsOrBuilder

        public OperationOrBuilder getOperationsOrBuilder​(int index)
         Operations to be reported.
        
         Typically the service should report one operation per request.
         Putting multiple operations into a single request is allowed, but should
         be used only when multiple operations are natually available at the time
         of the report.
        
         There is no limit on the number of operations in the same ReportRequest,
         however the ReportRequest size should be no larger than 1MB. See
         [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors]
         for partial failure behavior.
         
        repeated .google.api.servicecontrol.v1.Operation operations = 2;
        Specified by:
        getOperationsOrBuilder in interface ReportRequestOrBuilder
      • getOperationsOrBuilderList

        public List<? extends OperationOrBuilder> getOperationsOrBuilderList()
         Operations to be reported.
        
         Typically the service should report one operation per request.
         Putting multiple operations into a single request is allowed, but should
         be used only when multiple operations are natually available at the time
         of the report.
        
         There is no limit on the number of operations in the same ReportRequest,
         however the ReportRequest size should be no larger than 1MB. See
         [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors]
         for partial failure behavior.
         
        repeated .google.api.servicecontrol.v1.Operation operations = 2;
        Specified by:
        getOperationsOrBuilderList in interface ReportRequestOrBuilder
      • addOperationsBuilder

        public Operation.Builder addOperationsBuilder()
         Operations to be reported.
        
         Typically the service should report one operation per request.
         Putting multiple operations into a single request is allowed, but should
         be used only when multiple operations are natually available at the time
         of the report.
        
         There is no limit on the number of operations in the same ReportRequest,
         however the ReportRequest size should be no larger than 1MB. See
         [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors]
         for partial failure behavior.
         
        repeated .google.api.servicecontrol.v1.Operation operations = 2;
      • addOperationsBuilder

        public Operation.Builder addOperationsBuilder​(int index)
         Operations to be reported.
        
         Typically the service should report one operation per request.
         Putting multiple operations into a single request is allowed, but should
         be used only when multiple operations are natually available at the time
         of the report.
        
         There is no limit on the number of operations in the same ReportRequest,
         however the ReportRequest size should be no larger than 1MB. See
         [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors]
         for partial failure behavior.
         
        repeated .google.api.servicecontrol.v1.Operation operations = 2;
      • getOperationsBuilderList

        public List<Operation.Builder> getOperationsBuilderList()
         Operations to be reported.
        
         Typically the service should report one operation per request.
         Putting multiple operations into a single request is allowed, but should
         be used only when multiple operations are natually available at the time
         of the report.
        
         There is no limit on the number of operations in the same ReportRequest,
         however the ReportRequest size should be no larger than 1MB. See
         [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors]
         for partial failure behavior.
         
        repeated .google.api.servicecontrol.v1.Operation operations = 2;
      • getServiceConfigId

        public String getServiceConfigId()
         Specifies which version of service config should be used to process the
         request.
        
         If unspecified or no matching version can be found, the
         latest one will be used.
         
        string service_config_id = 3;
        Specified by:
        getServiceConfigId in interface ReportRequestOrBuilder
        Returns:
        The serviceConfigId.
      • getServiceConfigIdBytes

        public com.google.protobuf.ByteString getServiceConfigIdBytes()
         Specifies which version of service config should be used to process the
         request.
        
         If unspecified or no matching version can be found, the
         latest one will be used.
         
        string service_config_id = 3;
        Specified by:
        getServiceConfigIdBytes in interface ReportRequestOrBuilder
        Returns:
        The bytes for serviceConfigId.
      • setServiceConfigId

        public ReportRequest.Builder setServiceConfigId​(String value)
         Specifies which version of service config should be used to process the
         request.
        
         If unspecified or no matching version can be found, the
         latest one will be used.
         
        string service_config_id = 3;
        Parameters:
        value - The serviceConfigId to set.
        Returns:
        This builder for chaining.
      • clearServiceConfigId

        public ReportRequest.Builder clearServiceConfigId()
         Specifies which version of service config should be used to process the
         request.
        
         If unspecified or no matching version can be found, the
         latest one will be used.
         
        string service_config_id = 3;
        Returns:
        This builder for chaining.
      • setServiceConfigIdBytes

        public ReportRequest.Builder setServiceConfigIdBytes​(com.google.protobuf.ByteString value)
         Specifies which version of service config should be used to process the
         request.
        
         If unspecified or no matching version can be found, the
         latest one will be used.
         
        string service_config_id = 3;
        Parameters:
        value - The bytes for serviceConfigId to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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