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 Summary
Modifier and TypeMethodDescriptionaddAllScopeProfiles(Iterable<? extends ScopeProfiles> values) A list of ScopeProfiles that originate from a resource.addScopeProfiles(int index, ScopeProfiles value) A list of ScopeProfiles that originate from a resource.addScopeProfiles(int index, ScopeProfiles.Builder builderForValue) A list of ScopeProfiles that originate from a resource.addScopeProfiles(ScopeProfiles value) A list of ScopeProfiles that originate from a resource.addScopeProfiles(ScopeProfiles.Builder builderForValue) A list of ScopeProfiles that originate from a resource.A list of ScopeProfiles that originate from a resource.addScopeProfilesBuilder(int index) A list of ScopeProfiles that originate from a resource.build()clear()The resource for the profiles in this message.The Schema URL, if known.A list of ScopeProfiles that originate from a resource.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe resource for the profiles in this message.The resource for the profiles in this message.The resource for the profiles in this message.The Schema URL, if known.com.google.protobuf.ByteStringThe Schema URL, if known.getScopeProfiles(int index) A list of ScopeProfiles that originate from a resource.getScopeProfilesBuilder(int index) A list of ScopeProfiles that originate from a resource.A list of ScopeProfiles that originate from a resource.intA list of ScopeProfiles that originate from a resource.A list of ScopeProfiles that originate from a resource.getScopeProfilesOrBuilder(int index) A list of ScopeProfiles that originate from a resource.List<? extends ScopeProfilesOrBuilder>A list of ScopeProfiles that originate from a resource.booleanThe resource for the profiles in this message.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ResourceProfiles other) mergeResource(Resource value) The resource for the profiles in this message.removeScopeProfiles(int index) A list of ScopeProfiles that originate from a resource.setResource(Resource value) The resource for the profiles in this message.setResource(Resource.Builder builderForValue) The resource for the profiles in this message.setSchemaUrl(String value) The Schema URL, if known.setSchemaUrlBytes(com.google.protobuf.ByteString value) The Schema URL, if known.setScopeProfiles(int index, ScopeProfiles value) A list of ScopeProfiles that originate from a resource.setScopeProfiles(int index, ScopeProfiles.Builder builderForValue) A list of ScopeProfiles that originate from a resource.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ResourceProfiles.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ResourceProfiles.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ResourceProfiles.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ResourceProfiles.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasResourcein interfaceResourceProfilesOrBuilder- Returns:
- Whether the resource field is set.
-
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:
getResourcein interfaceResourceProfilesOrBuilder- Returns:
- The resource.
-
setResource
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
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
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
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
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
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:
getResourceOrBuilderin interfaceResourceProfilesOrBuilder
-
getScopeProfilesList
A list of ScopeProfiles that originate from a resource.
repeated .opentelemetry.proto.profiles.v1development.ScopeProfiles scope_profiles = 2;- Specified by:
getScopeProfilesListin interfaceResourceProfilesOrBuilder
-
getScopeProfilesCount
public int getScopeProfilesCount()A list of ScopeProfiles that originate from a resource.
repeated .opentelemetry.proto.profiles.v1development.ScopeProfiles scope_profiles = 2;- Specified by:
getScopeProfilesCountin interfaceResourceProfilesOrBuilder
-
getScopeProfiles
A list of ScopeProfiles that originate from a resource.
repeated .opentelemetry.proto.profiles.v1development.ScopeProfiles scope_profiles = 2;- Specified by:
getScopeProfilesin interfaceResourceProfilesOrBuilder
-
setScopeProfiles
A list of ScopeProfiles that originate from a resource.
repeated .opentelemetry.proto.profiles.v1development.ScopeProfiles scope_profiles = 2; -
setScopeProfiles
A list of ScopeProfiles that originate from a resource.
repeated .opentelemetry.proto.profiles.v1development.ScopeProfiles scope_profiles = 2; -
addScopeProfiles
A list of ScopeProfiles that originate from a resource.
repeated .opentelemetry.proto.profiles.v1development.ScopeProfiles scope_profiles = 2; -
addScopeProfiles
A list of ScopeProfiles that originate from a resource.
repeated .opentelemetry.proto.profiles.v1development.ScopeProfiles scope_profiles = 2; -
addScopeProfiles
A list of ScopeProfiles that originate from a resource.
repeated .opentelemetry.proto.profiles.v1development.ScopeProfiles scope_profiles = 2; -
addScopeProfiles
A list of ScopeProfiles that originate from a resource.
repeated .opentelemetry.proto.profiles.v1development.ScopeProfiles scope_profiles = 2; -
addAllScopeProfiles
A list of ScopeProfiles that originate from a resource.
repeated .opentelemetry.proto.profiles.v1development.ScopeProfiles scope_profiles = 2; -
clearScopeProfiles
A list of ScopeProfiles that originate from a resource.
repeated .opentelemetry.proto.profiles.v1development.ScopeProfiles scope_profiles = 2; -
removeScopeProfiles
A list of ScopeProfiles that originate from a resource.
repeated .opentelemetry.proto.profiles.v1development.ScopeProfiles scope_profiles = 2; -
getScopeProfilesBuilder
A list of ScopeProfiles that originate from a resource.
repeated .opentelemetry.proto.profiles.v1development.ScopeProfiles scope_profiles = 2; -
getScopeProfilesOrBuilder
A list of ScopeProfiles that originate from a resource.
repeated .opentelemetry.proto.profiles.v1development.ScopeProfiles scope_profiles = 2;- Specified by:
getScopeProfilesOrBuilderin interfaceResourceProfilesOrBuilder
-
getScopeProfilesOrBuilderList
A list of ScopeProfiles that originate from a resource.
repeated .opentelemetry.proto.profiles.v1development.ScopeProfiles scope_profiles = 2;- Specified by:
getScopeProfilesOrBuilderListin interfaceResourceProfilesOrBuilder
-
addScopeProfilesBuilder
A list of ScopeProfiles that originate from a resource.
repeated .opentelemetry.proto.profiles.v1development.ScopeProfiles scope_profiles = 2; -
addScopeProfilesBuilder
A list of ScopeProfiles that originate from a resource.
repeated .opentelemetry.proto.profiles.v1development.ScopeProfiles scope_profiles = 2; -
getScopeProfilesBuilderList
A list of ScopeProfiles that originate from a resource.
repeated .opentelemetry.proto.profiles.v1development.ScopeProfiles scope_profiles = 2; -
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:
getSchemaUrlin interfaceResourceProfilesOrBuilder- 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:
getSchemaUrlBytesin interfaceResourceProfilesOrBuilder- Returns:
- The bytes for schemaUrl.
-
setSchemaUrl
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
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
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.
-