Class ExportMetricsServiceRequest.Builder

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

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

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

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

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

        public ExportMetricsServiceRequest.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<ExportMetricsServiceRequest.Builder>
        Throws:
        IOException
      • hasNode

        public boolean hasNode()
         This is required only in the first message on the stream or if the
         previous sent ExportMetricsServiceRequest message has a different Node (e.g.
         when the same RPC is used to send Metrics from multiple Applications).
         
        .opencensus.proto.agent.common.v1.Node node = 1;
        Specified by:
        hasNode in interface ExportMetricsServiceRequestOrBuilder
        Returns:
        Whether the node field is set.
      • getNode

        public Node getNode()
         This is required only in the first message on the stream or if the
         previous sent ExportMetricsServiceRequest message has a different Node (e.g.
         when the same RPC is used to send Metrics from multiple Applications).
         
        .opencensus.proto.agent.common.v1.Node node = 1;
        Specified by:
        getNode in interface ExportMetricsServiceRequestOrBuilder
        Returns:
        The node.
      • setNode

        public ExportMetricsServiceRequest.Builder setNode​(Node value)
         This is required only in the first message on the stream or if the
         previous sent ExportMetricsServiceRequest message has a different Node (e.g.
         when the same RPC is used to send Metrics from multiple Applications).
         
        .opencensus.proto.agent.common.v1.Node node = 1;
      • setNode

        public ExportMetricsServiceRequest.Builder setNode​(Node.Builder builderForValue)
         This is required only in the first message on the stream or if the
         previous sent ExportMetricsServiceRequest message has a different Node (e.g.
         when the same RPC is used to send Metrics from multiple Applications).
         
        .opencensus.proto.agent.common.v1.Node node = 1;
      • mergeNode

        public ExportMetricsServiceRequest.Builder mergeNode​(Node value)
         This is required only in the first message on the stream or if the
         previous sent ExportMetricsServiceRequest message has a different Node (e.g.
         when the same RPC is used to send Metrics from multiple Applications).
         
        .opencensus.proto.agent.common.v1.Node node = 1;
      • clearNode

        public ExportMetricsServiceRequest.Builder clearNode()
         This is required only in the first message on the stream or if the
         previous sent ExportMetricsServiceRequest message has a different Node (e.g.
         when the same RPC is used to send Metrics from multiple Applications).
         
        .opencensus.proto.agent.common.v1.Node node = 1;
      • getNodeBuilder

        public Node.Builder getNodeBuilder()
         This is required only in the first message on the stream or if the
         previous sent ExportMetricsServiceRequest message has a different Node (e.g.
         when the same RPC is used to send Metrics from multiple Applications).
         
        .opencensus.proto.agent.common.v1.Node node = 1;
      • getNodeOrBuilder

        public NodeOrBuilder getNodeOrBuilder()
         This is required only in the first message on the stream or if the
         previous sent ExportMetricsServiceRequest message has a different Node (e.g.
         when the same RPC is used to send Metrics from multiple Applications).
         
        .opencensus.proto.agent.common.v1.Node node = 1;
        Specified by:
        getNodeOrBuilder in interface ExportMetricsServiceRequestOrBuilder
      • setMetrics

        public ExportMetricsServiceRequest.Builder setMetrics​(int index,
                                                              Metric value)
         A list of metrics that belong to the last received Node.
         
        repeated .opencensus.proto.metrics.v1.Metric metrics = 2;
      • addMetrics

        public ExportMetricsServiceRequest.Builder addMetrics​(int index,
                                                              Metric value)
         A list of metrics that belong to the last received Node.
         
        repeated .opencensus.proto.metrics.v1.Metric metrics = 2;
      • clearMetrics

        public ExportMetricsServiceRequest.Builder clearMetrics()
         A list of metrics that belong to the last received Node.
         
        repeated .opencensus.proto.metrics.v1.Metric metrics = 2;
      • removeMetrics

        public ExportMetricsServiceRequest.Builder removeMetrics​(int index)
         A list of metrics that belong to the last received Node.
         
        repeated .opencensus.proto.metrics.v1.Metric metrics = 2;
      • getMetricsBuilder

        public Metric.Builder getMetricsBuilder​(int index)
         A list of metrics that belong to the last received Node.
         
        repeated .opencensus.proto.metrics.v1.Metric metrics = 2;
      • addMetricsBuilder

        public Metric.Builder addMetricsBuilder()
         A list of metrics that belong to the last received Node.
         
        repeated .opencensus.proto.metrics.v1.Metric metrics = 2;
      • addMetricsBuilder

        public Metric.Builder addMetricsBuilder​(int index)
         A list of metrics that belong to the last received Node.
         
        repeated .opencensus.proto.metrics.v1.Metric metrics = 2;
      • getMetricsBuilderList

        public List<Metric.Builder> getMetricsBuilderList()
         A list of metrics that belong to the last received Node.
         
        repeated .opencensus.proto.metrics.v1.Metric metrics = 2;
      • hasResource

        public boolean hasResource()
         The resource for the metrics in this message that do not have an explicit
         resource set.
         If unset, the most recently set resource in the RPC stream applies. It is
         valid to never be set within a stream, e.g. when no resource info is known
         at all or when all sent metrics have an explicit resource set.
         
        .opencensus.proto.resource.v1.Resource resource = 3;
        Specified by:
        hasResource in interface ExportMetricsServiceRequestOrBuilder
        Returns:
        Whether the resource field is set.
      • getResource

        public Resource getResource()
         The resource for the metrics in this message that do not have an explicit
         resource set.
         If unset, the most recently set resource in the RPC stream applies. It is
         valid to never be set within a stream, e.g. when no resource info is known
         at all or when all sent metrics have an explicit resource set.
         
        .opencensus.proto.resource.v1.Resource resource = 3;
        Specified by:
        getResource in interface ExportMetricsServiceRequestOrBuilder
        Returns:
        The resource.
      • setResource

        public ExportMetricsServiceRequest.Builder setResource​(Resource value)
         The resource for the metrics in this message that do not have an explicit
         resource set.
         If unset, the most recently set resource in the RPC stream applies. It is
         valid to never be set within a stream, e.g. when no resource info is known
         at all or when all sent metrics have an explicit resource set.
         
        .opencensus.proto.resource.v1.Resource resource = 3;
      • setResource

        public ExportMetricsServiceRequest.Builder setResource​(Resource.Builder builderForValue)
         The resource for the metrics in this message that do not have an explicit
         resource set.
         If unset, the most recently set resource in the RPC stream applies. It is
         valid to never be set within a stream, e.g. when no resource info is known
         at all or when all sent metrics have an explicit resource set.
         
        .opencensus.proto.resource.v1.Resource resource = 3;
      • mergeResource

        public ExportMetricsServiceRequest.Builder mergeResource​(Resource value)
         The resource for the metrics in this message that do not have an explicit
         resource set.
         If unset, the most recently set resource in the RPC stream applies. It is
         valid to never be set within a stream, e.g. when no resource info is known
         at all or when all sent metrics have an explicit resource set.
         
        .opencensus.proto.resource.v1.Resource resource = 3;
      • clearResource

        public ExportMetricsServiceRequest.Builder clearResource()
         The resource for the metrics in this message that do not have an explicit
         resource set.
         If unset, the most recently set resource in the RPC stream applies. It is
         valid to never be set within a stream, e.g. when no resource info is known
         at all or when all sent metrics have an explicit resource set.
         
        .opencensus.proto.resource.v1.Resource resource = 3;
      • getResourceBuilder

        public Resource.Builder getResourceBuilder()
         The resource for the metrics in this message that do not have an explicit
         resource set.
         If unset, the most recently set resource in the RPC stream applies. It is
         valid to never be set within a stream, e.g. when no resource info is known
         at all or when all sent metrics have an explicit resource set.
         
        .opencensus.proto.resource.v1.Resource resource = 3;
      • getResourceOrBuilder

        public ResourceOrBuilder getResourceOrBuilder()
         The resource for the metrics in this message that do not have an explicit
         resource set.
         If unset, the most recently set resource in the RPC stream applies. It is
         valid to never be set within a stream, e.g. when no resource info is known
         at all or when all sent metrics have an explicit resource set.
         
        .opencensus.proto.resource.v1.Resource resource = 3;
        Specified by:
        getResourceOrBuilder in interface ExportMetricsServiceRequestOrBuilder
      • mergeUnknownFields

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