Class ResourceProfiles.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ResourceProfiles.Builder>
io.opentelemetry.proto.profiles.v1development.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.GeneratedMessage.Builder<ResourceProfiles.Builder> implements ResourceProfilesOrBuilder
 A collection of ScopeProfiles from a Resource.
 
Protobuf type opentelemetry.proto.profiles.v1development.ResourceProfiles
  • 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<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.GeneratedMessage.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.GeneratedMessage.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
    • 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.GeneratedMessage.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.v1development.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.v1development.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.v1development.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.v1development.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.v1development.ScopeProfiles scope_profiles = 2;
    • addScopeProfiles

      public ResourceProfiles.Builder addScopeProfiles(ScopeProfiles value)
       A list of ScopeProfiles that originate from a resource.
       
      repeated .opentelemetry.proto.profiles.v1development.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.v1development.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.v1development.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.v1development.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.v1development.ScopeProfiles scope_profiles = 2;
    • clearScopeProfiles

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

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

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

      public ScopeProfilesOrBuilder getScopeProfilesOrBuilder(int index)
       A list of ScopeProfiles that originate from a resource.
       
      repeated .opentelemetry.proto.profiles.v1development.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.v1development.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.v1development.ScopeProfiles scope_profiles = 2;
    • addScopeProfilesBuilder

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

      public List<ScopeProfiles.Builder> getScopeProfilesBuilderList()
       A list of ScopeProfiles that originate from a resource.
       
      repeated .opentelemetry.proto.profiles.v1development.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. Notably, the last part of the URL path is the version number of the
       schema: http[s]://server[:port]/path/<version>. 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. Notably, the last part of the URL path is the version number of the
       schema: http[s]://server[:port]/path/<version>. 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. Notably, the last part of the URL path is the version number of the
       schema: http[s]://server[:port]/path/<version>. 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. Notably, the last part of the URL path is the version number of the
       schema: http[s]://server[:port]/path/<version>. 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. Notably, the last part of the URL path is the version number of the
       schema: http[s]://server[:port]/path/<version>. 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.