Class ExportMetricsServiceResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ExportMetricsServiceResponse.Builder>
io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ExportMetricsServiceResponseOrBuilder, Cloneable
Enclosing class:
ExportMetricsServiceResponse

public static final class ExportMetricsServiceResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ExportMetricsServiceResponse.Builder> implements ExportMetricsServiceResponseOrBuilder
Protobuf type opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse
  • Method Details

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

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ExportMetricsServiceResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<ExportMetricsServiceResponse.Builder>
    • setField

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

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

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

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

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

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

    • isInitialized

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

      public ExportMetricsServiceResponse.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<ExportMetricsServiceResponse.Builder>
      Throws:
      IOException
    • hasPartialSuccess

      public boolean hasPartialSuccess()
       The details of a partially successful export request.
      
       If the request is only partially accepted
       (i.e. when the server accepts only parts of the data and rejects the rest)
       the server MUST initialize the `partial_success` field and MUST
       set the `rejected_<signal>` with the number of items it rejected.
      
       Servers MAY also make use of the `partial_success` field to convey
       warnings/suggestions to senders even when the request was fully accepted.
       In such cases, the `rejected_<signal>` MUST have a value of `0` and
       the `error_message` MUST be non-empty.
      
       A `partial_success` message with an empty value (rejected_<signal> = 0 and
       `error_message` = "") is equivalent to it not being set/present. Senders
       SHOULD interpret it the same way as in the full success case.
       
      .opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess partial_success = 1;
      Specified by:
      hasPartialSuccess in interface ExportMetricsServiceResponseOrBuilder
      Returns:
      Whether the partialSuccess field is set.
    • getPartialSuccess

      public ExportMetricsPartialSuccess getPartialSuccess()
       The details of a partially successful export request.
      
       If the request is only partially accepted
       (i.e. when the server accepts only parts of the data and rejects the rest)
       the server MUST initialize the `partial_success` field and MUST
       set the `rejected_<signal>` with the number of items it rejected.
      
       Servers MAY also make use of the `partial_success` field to convey
       warnings/suggestions to senders even when the request was fully accepted.
       In such cases, the `rejected_<signal>` MUST have a value of `0` and
       the `error_message` MUST be non-empty.
      
       A `partial_success` message with an empty value (rejected_<signal> = 0 and
       `error_message` = "") is equivalent to it not being set/present. Senders
       SHOULD interpret it the same way as in the full success case.
       
      .opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess partial_success = 1;
      Specified by:
      getPartialSuccess in interface ExportMetricsServiceResponseOrBuilder
      Returns:
      The partialSuccess.
    • setPartialSuccess

       The details of a partially successful export request.
      
       If the request is only partially accepted
       (i.e. when the server accepts only parts of the data and rejects the rest)
       the server MUST initialize the `partial_success` field and MUST
       set the `rejected_<signal>` with the number of items it rejected.
      
       Servers MAY also make use of the `partial_success` field to convey
       warnings/suggestions to senders even when the request was fully accepted.
       In such cases, the `rejected_<signal>` MUST have a value of `0` and
       the `error_message` MUST be non-empty.
      
       A `partial_success` message with an empty value (rejected_<signal> = 0 and
       `error_message` = "") is equivalent to it not being set/present. Senders
       SHOULD interpret it the same way as in the full success case.
       
      .opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess partial_success = 1;
    • setPartialSuccess

       The details of a partially successful export request.
      
       If the request is only partially accepted
       (i.e. when the server accepts only parts of the data and rejects the rest)
       the server MUST initialize the `partial_success` field and MUST
       set the `rejected_<signal>` with the number of items it rejected.
      
       Servers MAY also make use of the `partial_success` field to convey
       warnings/suggestions to senders even when the request was fully accepted.
       In such cases, the `rejected_<signal>` MUST have a value of `0` and
       the `error_message` MUST be non-empty.
      
       A `partial_success` message with an empty value (rejected_<signal> = 0 and
       `error_message` = "") is equivalent to it not being set/present. Senders
       SHOULD interpret it the same way as in the full success case.
       
      .opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess partial_success = 1;
    • mergePartialSuccess

       The details of a partially successful export request.
      
       If the request is only partially accepted
       (i.e. when the server accepts only parts of the data and rejects the rest)
       the server MUST initialize the `partial_success` field and MUST
       set the `rejected_<signal>` with the number of items it rejected.
      
       Servers MAY also make use of the `partial_success` field to convey
       warnings/suggestions to senders even when the request was fully accepted.
       In such cases, the `rejected_<signal>` MUST have a value of `0` and
       the `error_message` MUST be non-empty.
      
       A `partial_success` message with an empty value (rejected_<signal> = 0 and
       `error_message` = "") is equivalent to it not being set/present. Senders
       SHOULD interpret it the same way as in the full success case.
       
      .opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess partial_success = 1;
    • clearPartialSuccess

      public ExportMetricsServiceResponse.Builder clearPartialSuccess()
       The details of a partially successful export request.
      
       If the request is only partially accepted
       (i.e. when the server accepts only parts of the data and rejects the rest)
       the server MUST initialize the `partial_success` field and MUST
       set the `rejected_<signal>` with the number of items it rejected.
      
       Servers MAY also make use of the `partial_success` field to convey
       warnings/suggestions to senders even when the request was fully accepted.
       In such cases, the `rejected_<signal>` MUST have a value of `0` and
       the `error_message` MUST be non-empty.
      
       A `partial_success` message with an empty value (rejected_<signal> = 0 and
       `error_message` = "") is equivalent to it not being set/present. Senders
       SHOULD interpret it the same way as in the full success case.
       
      .opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess partial_success = 1;
    • getPartialSuccessBuilder

      public ExportMetricsPartialSuccess.Builder getPartialSuccessBuilder()
       The details of a partially successful export request.
      
       If the request is only partially accepted
       (i.e. when the server accepts only parts of the data and rejects the rest)
       the server MUST initialize the `partial_success` field and MUST
       set the `rejected_<signal>` with the number of items it rejected.
      
       Servers MAY also make use of the `partial_success` field to convey
       warnings/suggestions to senders even when the request was fully accepted.
       In such cases, the `rejected_<signal>` MUST have a value of `0` and
       the `error_message` MUST be non-empty.
      
       A `partial_success` message with an empty value (rejected_<signal> = 0 and
       `error_message` = "") is equivalent to it not being set/present. Senders
       SHOULD interpret it the same way as in the full success case.
       
      .opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess partial_success = 1;
    • getPartialSuccessOrBuilder

      public ExportMetricsPartialSuccessOrBuilder getPartialSuccessOrBuilder()
       The details of a partially successful export request.
      
       If the request is only partially accepted
       (i.e. when the server accepts only parts of the data and rejects the rest)
       the server MUST initialize the `partial_success` field and MUST
       set the `rejected_<signal>` with the number of items it rejected.
      
       Servers MAY also make use of the `partial_success` field to convey
       warnings/suggestions to senders even when the request was fully accepted.
       In such cases, the `rejected_<signal>` MUST have a value of `0` and
       the `error_message` MUST be non-empty.
      
       A `partial_success` message with an empty value (rejected_<signal> = 0 and
       `error_message` = "") is equivalent to it not being set/present. Senders
       SHOULD interpret it the same way as in the full success case.
       
      .opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess partial_success = 1;
      Specified by:
      getPartialSuccessOrBuilder in interface ExportMetricsServiceResponseOrBuilder
    • setUnknownFields

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

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