Class ExportMetricsServiceResponse

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ExportMetricsServiceResponseOrBuilder, Serializable

public final class ExportMetricsServiceResponse extends com.google.protobuf.GeneratedMessage implements ExportMetricsServiceResponseOrBuilder
Protobuf type opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse
See Also:
  • Field Details

    • PARTIAL_SUCCESS_FIELD_NUMBER

      public static final int PARTIAL_SUCCESS_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ExportMetricsServiceResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ExportMetricsServiceResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ExportMetricsServiceResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ExportMetricsServiceResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ExportMetricsServiceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ExportMetricsServiceResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ExportMetricsServiceResponse parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ExportMetricsServiceResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ExportMetricsServiceResponse parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ExportMetricsServiceResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ExportMetricsServiceResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ExportMetricsServiceResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ExportMetricsServiceResponse.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ExportMetricsServiceResponse.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ExportMetricsServiceResponse.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ExportMetricsServiceResponse getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ExportMetricsServiceResponse> parser()
    • getParserForType

      public com.google.protobuf.Parser<ExportMetricsServiceResponse> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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