Class ReportRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ReportRequest.Builder>
com.google.api.servicecontrol.v2.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.GeneratedMessage.Builder<ReportRequest.Builder> implements ReportRequestOrBuilder
 Request message for the Report method.
 
Protobuf type google.api.servicecontrol.v2.ReportRequest
  • 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<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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public ReportRequest.Builder mergeFrom(ReportRequest other)
    • isInitialized

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

      public String getServiceConfigId()
       Specifies the version of the service configuration that should be used to
       process the request. Must not be empty. Set this field to 'latest' to
       specify using the latest configuration.
       
      string service_config_id = 2;
      Specified by:
      getServiceConfigId in interface ReportRequestOrBuilder
      Returns:
      The serviceConfigId.
    • getServiceConfigIdBytes

      public com.google.protobuf.ByteString getServiceConfigIdBytes()
       Specifies the version of the service configuration that should be used to
       process the request. Must not be empty. Set this field to 'latest' to
       specify using the latest configuration.
       
      string service_config_id = 2;
      Specified by:
      getServiceConfigIdBytes in interface ReportRequestOrBuilder
      Returns:
      The bytes for serviceConfigId.
    • setServiceConfigId

      public ReportRequest.Builder setServiceConfigId(String value)
       Specifies the version of the service configuration that should be used to
       process the request. Must not be empty. Set this field to 'latest' to
       specify using the latest configuration.
       
      string service_config_id = 2;
      Parameters:
      value - The serviceConfigId to set.
      Returns:
      This builder for chaining.
    • clearServiceConfigId

      public ReportRequest.Builder clearServiceConfigId()
       Specifies the version of the service configuration that should be used to
       process the request. Must not be empty. Set this field to 'latest' to
       specify using the latest configuration.
       
      string service_config_id = 2;
      Returns:
      This builder for chaining.
    • setServiceConfigIdBytes

      public ReportRequest.Builder setServiceConfigIdBytes(com.google.protobuf.ByteString value)
       Specifies the version of the service configuration that should be used to
       process the request. Must not be empty. Set this field to 'latest' to
       specify using the latest configuration.
       
      string service_config_id = 2;
      Parameters:
      value - The bytes for serviceConfigId to set.
      Returns:
      This builder for chaining.
    • getOperationsList

      public List<AttributeContext> getOperationsList()
       Describes the list of operations to be reported. Each operation is
       represented as an AttributeContext, and contains all attributes around an
       API access.
       
      repeated .google.rpc.context.AttributeContext operations = 3;
      Specified by:
      getOperationsList in interface ReportRequestOrBuilder
    • getOperationsCount

      public int getOperationsCount()
       Describes the list of operations to be reported. Each operation is
       represented as an AttributeContext, and contains all attributes around an
       API access.
       
      repeated .google.rpc.context.AttributeContext operations = 3;
      Specified by:
      getOperationsCount in interface ReportRequestOrBuilder
    • getOperations

      public AttributeContext getOperations(int index)
       Describes the list of operations to be reported. Each operation is
       represented as an AttributeContext, and contains all attributes around an
       API access.
       
      repeated .google.rpc.context.AttributeContext operations = 3;
      Specified by:
      getOperations in interface ReportRequestOrBuilder
    • setOperations

      public ReportRequest.Builder setOperations(int index, AttributeContext value)
       Describes the list of operations to be reported. Each operation is
       represented as an AttributeContext, and contains all attributes around an
       API access.
       
      repeated .google.rpc.context.AttributeContext operations = 3;
    • setOperations

      public ReportRequest.Builder setOperations(int index, AttributeContext.Builder builderForValue)
       Describes the list of operations to be reported. Each operation is
       represented as an AttributeContext, and contains all attributes around an
       API access.
       
      repeated .google.rpc.context.AttributeContext operations = 3;
    • addOperations

      public ReportRequest.Builder addOperations(AttributeContext value)
       Describes the list of operations to be reported. Each operation is
       represented as an AttributeContext, and contains all attributes around an
       API access.
       
      repeated .google.rpc.context.AttributeContext operations = 3;
    • addOperations

      public ReportRequest.Builder addOperations(int index, AttributeContext value)
       Describes the list of operations to be reported. Each operation is
       represented as an AttributeContext, and contains all attributes around an
       API access.
       
      repeated .google.rpc.context.AttributeContext operations = 3;
    • addOperations

      public ReportRequest.Builder addOperations(AttributeContext.Builder builderForValue)
       Describes the list of operations to be reported. Each operation is
       represented as an AttributeContext, and contains all attributes around an
       API access.
       
      repeated .google.rpc.context.AttributeContext operations = 3;
    • addOperations

      public ReportRequest.Builder addOperations(int index, AttributeContext.Builder builderForValue)
       Describes the list of operations to be reported. Each operation is
       represented as an AttributeContext, and contains all attributes around an
       API access.
       
      repeated .google.rpc.context.AttributeContext operations = 3;
    • addAllOperations

      public ReportRequest.Builder addAllOperations(Iterable<? extends AttributeContext> values)
       Describes the list of operations to be reported. Each operation is
       represented as an AttributeContext, and contains all attributes around an
       API access.
       
      repeated .google.rpc.context.AttributeContext operations = 3;
    • clearOperations

      public ReportRequest.Builder clearOperations()
       Describes the list of operations to be reported. Each operation is
       represented as an AttributeContext, and contains all attributes around an
       API access.
       
      repeated .google.rpc.context.AttributeContext operations = 3;
    • removeOperations

      public ReportRequest.Builder removeOperations(int index)
       Describes the list of operations to be reported. Each operation is
       represented as an AttributeContext, and contains all attributes around an
       API access.
       
      repeated .google.rpc.context.AttributeContext operations = 3;
    • getOperationsBuilder

      public AttributeContext.Builder getOperationsBuilder(int index)
       Describes the list of operations to be reported. Each operation is
       represented as an AttributeContext, and contains all attributes around an
       API access.
       
      repeated .google.rpc.context.AttributeContext operations = 3;
    • getOperationsOrBuilder

      public AttributeContextOrBuilder getOperationsOrBuilder(int index)
       Describes the list of operations to be reported. Each operation is
       represented as an AttributeContext, and contains all attributes around an
       API access.
       
      repeated .google.rpc.context.AttributeContext operations = 3;
      Specified by:
      getOperationsOrBuilder in interface ReportRequestOrBuilder
    • getOperationsOrBuilderList

      public List<? extends AttributeContextOrBuilder> getOperationsOrBuilderList()
       Describes the list of operations to be reported. Each operation is
       represented as an AttributeContext, and contains all attributes around an
       API access.
       
      repeated .google.rpc.context.AttributeContext operations = 3;
      Specified by:
      getOperationsOrBuilderList in interface ReportRequestOrBuilder
    • addOperationsBuilder

      public AttributeContext.Builder addOperationsBuilder()
       Describes the list of operations to be reported. Each operation is
       represented as an AttributeContext, and contains all attributes around an
       API access.
       
      repeated .google.rpc.context.AttributeContext operations = 3;
    • addOperationsBuilder

      public AttributeContext.Builder addOperationsBuilder(int index)
       Describes the list of operations to be reported. Each operation is
       represented as an AttributeContext, and contains all attributes around an
       API access.
       
      repeated .google.rpc.context.AttributeContext operations = 3;
    • getOperationsBuilderList

      public List<AttributeContext.Builder> getOperationsBuilderList()
       Describes the list of operations to be reported. Each operation is
       represented as an AttributeContext, and contains all attributes around an
       API access.
       
      repeated .google.rpc.context.AttributeContext operations = 3;