Class ResourceProfiles.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ResourceProfiles.Builder>
io.opentelemetry.proto.profiles.v1experimental.ResourceProfiles.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ResourceProfilesOrBuilder, Cloneable
Enclosing class:
ResourceProfiles

public static final class ResourceProfiles.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ResourceProfiles.Builder> implements ResourceProfilesOrBuilder
 A collection of ScopeProfiles from a Resource.
 
Protobuf type opentelemetry.proto.profiles.v1experimental.ResourceProfiles
  • 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<ResourceProfiles.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public ResourceProfiles.Builder mergeFrom(ResourceProfiles other)
    • isInitialized

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

      public ResourceProfiles.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<ResourceProfiles.Builder>
      Throws:
      IOException
    • hasResource

      public boolean hasResource()
       The resource for the profiles in this message.
       If this field is not set then no resource info is known.
       
      .opentelemetry.proto.resource.v1.Resource resource = 1;
      Specified by:
      hasResource in interface ResourceProfilesOrBuilder
      Returns:
      Whether the resource field is set.
    • getResource

      public Resource getResource()
       The resource for the profiles in this message.
       If this field is not set then no resource info is known.
       
      .opentelemetry.proto.resource.v1.Resource resource = 1;
      Specified by:
      getResource in interface ResourceProfilesOrBuilder
      Returns:
      The resource.
    • setResource

      public ResourceProfiles.Builder setResource(Resource value)
       The resource for the profiles in this message.
       If this field is not set then no resource info is known.
       
      .opentelemetry.proto.resource.v1.Resource resource = 1;
    • setResource

      public ResourceProfiles.Builder setResource(Resource.Builder builderForValue)
       The resource for the profiles in this message.
       If this field is not set then no resource info is known.
       
      .opentelemetry.proto.resource.v1.Resource resource = 1;
    • mergeResource

      public ResourceProfiles.Builder mergeResource(Resource value)
       The resource for the profiles in this message.
       If this field is not set then no resource info is known.
       
      .opentelemetry.proto.resource.v1.Resource resource = 1;
    • clearResource

      public ResourceProfiles.Builder clearResource()
       The resource for the profiles in this message.
       If this field is not set then no resource info is known.
       
      .opentelemetry.proto.resource.v1.Resource resource = 1;
    • getResourceBuilder

      public Resource.Builder getResourceBuilder()
       The resource for the profiles in this message.
       If this field is not set then no resource info is known.
       
      .opentelemetry.proto.resource.v1.Resource resource = 1;
    • getResourceOrBuilder

      public ResourceOrBuilder getResourceOrBuilder()
       The resource for the profiles in this message.
       If this field is not set then no resource info is known.
       
      .opentelemetry.proto.resource.v1.Resource resource = 1;
      Specified by:
      getResourceOrBuilder in interface ResourceProfilesOrBuilder
    • getScopeProfilesList

      public List<ScopeProfiles> getScopeProfilesList()
       A list of ScopeProfiles that originate from a resource.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ScopeProfiles scope_profiles = 2;
      Specified by:
      getScopeProfilesList in interface ResourceProfilesOrBuilder
    • getScopeProfilesCount

      public int getScopeProfilesCount()
       A list of ScopeProfiles that originate from a resource.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ScopeProfiles scope_profiles = 2;
      Specified by:
      getScopeProfilesCount in interface ResourceProfilesOrBuilder
    • getScopeProfiles

      public ScopeProfiles getScopeProfiles(int index)
       A list of ScopeProfiles that originate from a resource.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ScopeProfiles scope_profiles = 2;
      Specified by:
      getScopeProfiles in interface ResourceProfilesOrBuilder
    • setScopeProfiles

      public ResourceProfiles.Builder setScopeProfiles(int index, ScopeProfiles value)
       A list of ScopeProfiles that originate from a resource.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ScopeProfiles scope_profiles = 2;
    • setScopeProfiles

      public ResourceProfiles.Builder setScopeProfiles(int index, ScopeProfiles.Builder builderForValue)
       A list of ScopeProfiles that originate from a resource.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ScopeProfiles scope_profiles = 2;
    • addScopeProfiles

      public ResourceProfiles.Builder addScopeProfiles(ScopeProfiles value)
       A list of ScopeProfiles that originate from a resource.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ScopeProfiles scope_profiles = 2;
    • addScopeProfiles

      public ResourceProfiles.Builder addScopeProfiles(int index, ScopeProfiles value)
       A list of ScopeProfiles that originate from a resource.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ScopeProfiles scope_profiles = 2;
    • addScopeProfiles

      public ResourceProfiles.Builder addScopeProfiles(ScopeProfiles.Builder builderForValue)
       A list of ScopeProfiles that originate from a resource.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ScopeProfiles scope_profiles = 2;
    • addScopeProfiles

      public ResourceProfiles.Builder addScopeProfiles(int index, ScopeProfiles.Builder builderForValue)
       A list of ScopeProfiles that originate from a resource.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ScopeProfiles scope_profiles = 2;
    • addAllScopeProfiles

      public ResourceProfiles.Builder addAllScopeProfiles(Iterable<? extends ScopeProfiles> values)
       A list of ScopeProfiles that originate from a resource.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ScopeProfiles scope_profiles = 2;
    • clearScopeProfiles

      public ResourceProfiles.Builder clearScopeProfiles()
       A list of ScopeProfiles that originate from a resource.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ScopeProfiles scope_profiles = 2;
    • removeScopeProfiles

      public ResourceProfiles.Builder removeScopeProfiles(int index)
       A list of ScopeProfiles that originate from a resource.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ScopeProfiles scope_profiles = 2;
    • getScopeProfilesBuilder

      public ScopeProfiles.Builder getScopeProfilesBuilder(int index)
       A list of ScopeProfiles that originate from a resource.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ScopeProfiles scope_profiles = 2;
    • getScopeProfilesOrBuilder

      public ScopeProfilesOrBuilder getScopeProfilesOrBuilder(int index)
       A list of ScopeProfiles that originate from a resource.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ScopeProfiles scope_profiles = 2;
      Specified by:
      getScopeProfilesOrBuilder in interface ResourceProfilesOrBuilder
    • getScopeProfilesOrBuilderList

      public List<? extends ScopeProfilesOrBuilder> getScopeProfilesOrBuilderList()
       A list of ScopeProfiles that originate from a resource.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ScopeProfiles scope_profiles = 2;
      Specified by:
      getScopeProfilesOrBuilderList in interface ResourceProfilesOrBuilder
    • addScopeProfilesBuilder

      public ScopeProfiles.Builder addScopeProfilesBuilder()
       A list of ScopeProfiles that originate from a resource.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ScopeProfiles scope_profiles = 2;
    • addScopeProfilesBuilder

      public ScopeProfiles.Builder addScopeProfilesBuilder(int index)
       A list of ScopeProfiles that originate from a resource.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ScopeProfiles scope_profiles = 2;
    • getScopeProfilesBuilderList

      public List<ScopeProfiles.Builder> getScopeProfilesBuilderList()
       A list of ScopeProfiles that originate from a resource.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ScopeProfiles scope_profiles = 2;
    • getSchemaUrl

      public String getSchemaUrl()
       The Schema URL, if known. This is the identifier of the Schema that the resource data
       is recorded in. To learn more about Schema URL see
       https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
       This schema_url applies to the data in the "resource" field. It does not apply
       to the data in the "scope_profiles" field which have their own schema_url field.
       
      string schema_url = 3;
      Specified by:
      getSchemaUrl in interface ResourceProfilesOrBuilder
      Returns:
      The schemaUrl.
    • getSchemaUrlBytes

      public com.google.protobuf.ByteString getSchemaUrlBytes()
       The Schema URL, if known. This is the identifier of the Schema that the resource data
       is recorded in. To learn more about Schema URL see
       https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
       This schema_url applies to the data in the "resource" field. It does not apply
       to the data in the "scope_profiles" field which have their own schema_url field.
       
      string schema_url = 3;
      Specified by:
      getSchemaUrlBytes in interface ResourceProfilesOrBuilder
      Returns:
      The bytes for schemaUrl.
    • setSchemaUrl

      public ResourceProfiles.Builder setSchemaUrl(String value)
       The Schema URL, if known. This is the identifier of the Schema that the resource data
       is recorded in. To learn more about Schema URL see
       https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
       This schema_url applies to the data in the "resource" field. It does not apply
       to the data in the "scope_profiles" field which have their own schema_url field.
       
      string schema_url = 3;
      Parameters:
      value - The schemaUrl to set.
      Returns:
      This builder for chaining.
    • clearSchemaUrl

      public ResourceProfiles.Builder clearSchemaUrl()
       The Schema URL, if known. This is the identifier of the Schema that the resource data
       is recorded in. To learn more about Schema URL see
       https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
       This schema_url applies to the data in the "resource" field. It does not apply
       to the data in the "scope_profiles" field which have their own schema_url field.
       
      string schema_url = 3;
      Returns:
      This builder for chaining.
    • setSchemaUrlBytes

      public ResourceProfiles.Builder setSchemaUrlBytes(com.google.protobuf.ByteString value)
       The Schema URL, if known. This is the identifier of the Schema that the resource data
       is recorded in. To learn more about Schema URL see
       https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
       This schema_url applies to the data in the "resource" field. It does not apply
       to the data in the "scope_profiles" field which have their own schema_url field.
       
      string schema_url = 3;
      Parameters:
      value - The bytes for schemaUrl to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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