Package com.buildless.telemetry
Class OSInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<OSInfo.Builder>
com.buildless.telemetry.OSInfo.Builder
- All Implemented Interfaces:
OSInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
OSInfo
public static final class OSInfo.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<OSInfo.Builder>
implements OSInfoOrBuilder
## OS Info Specifies operating system information associated with an event. OS info carries a name, a family, and a version payload (if known). Many times, this is derived from other input information (for instance, the User Agent header).Protobuf type
buildless.telemetry.OSInfo-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Specifies the architecture which the source operating system is running, if known.Specifies the OS family that relates to the operating system info being expressed.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Specifies a shortname for the operating system.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Specifies version info for the source operating system, if known.clone()getArch()Specifies the architecture which the source operating system is running, if known.intSpecifies the architecture which the source operating system is running, if known.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorSpecifies the OS family that relates to the operating system info being expressed.intSpecifies the OS family that relates to the operating system info being expressed.getName()Specifies a shortname for the operating system.com.google.protobuf.ByteStringSpecifies a shortname for the operating system.Specifies version info for the source operating system, if known.Specifies version info for the source operating system, if known.Specifies version info for the source operating system, if known.booleanSpecifies version info for the source operating system, if known.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final OSInfo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) mergeVersion(VersionInfo value) Specifies version info for the source operating system, if known.setArch(ProcessorArch value) Specifies the architecture which the source operating system is running, if known.setArchValue(int value) Specifies the architecture which the source operating system is running, if known.Specifies the OS family that relates to the operating system info being expressed.setFamilyValue(int value) Specifies the OS family that relates to the operating system info being expressed.Specifies a shortname for the operating system.setNameBytes(com.google.protobuf.ByteString value) Specifies a shortname for the operating system.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final OSInfo.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setVersion(VersionInfo value) Specifies version info for the source operating system, if known.setVersion(VersionInfo.Builder builderForValue) Specifies version info for the source operating system, if known.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<OSInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<OSInfo.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.GeneratedMessageV3.Builder<OSInfo.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<OSInfo.Builder>
-
setField
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OSInfo.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OSInfo.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<OSInfo.Builder>
-
setRepeatedField
public OSInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OSInfo.Builder>
-
addRepeatedField
public OSInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OSInfo.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OSInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<OSInfo.Builder>
-
mergeFrom
public OSInfo.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<OSInfo.Builder>- Throws:
IOException
-
getName
Specifies a shortname for the operating system. For example, for macOS, this would be "macOS".
string name = 1 [json_name = "name", (.google.api.field_behavior) = REQUIRED];- Specified by:
getNamein interfaceOSInfoOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Specifies a shortname for the operating system. For example, for macOS, this would be "macOS".
string name = 1 [json_name = "name", (.google.api.field_behavior) = REQUIRED];- Specified by:
getNameBytesin interfaceOSInfoOrBuilder- Returns:
- The bytes for name.
-
setName
Specifies a shortname for the operating system. For example, for macOS, this would be "macOS".
string name = 1 [json_name = "name", (.google.api.field_behavior) = REQUIRED];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Specifies a shortname for the operating system. For example, for macOS, this would be "macOS".
string name = 1 [json_name = "name", (.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setNameBytes
Specifies a shortname for the operating system. For example, for macOS, this would be "macOS".
string name = 1 [json_name = "name", (.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getFamilyValue
public int getFamilyValue()Specifies the OS family that relates to the operating system info being expressed.
.buildless.telemetry.OSFamily family = 2 [json_name = "family", (.google.api.field_behavior) = REQUIRED];- Specified by:
getFamilyValuein interfaceOSInfoOrBuilder- Returns:
- The enum numeric value on the wire for family.
-
setFamilyValue
Specifies the OS family that relates to the operating system info being expressed.
.buildless.telemetry.OSFamily family = 2 [json_name = "family", (.google.api.field_behavior) = REQUIRED];- Parameters:
value- The enum numeric value on the wire for family to set.- Returns:
- This builder for chaining.
-
getFamily
Specifies the OS family that relates to the operating system info being expressed.
.buildless.telemetry.OSFamily family = 2 [json_name = "family", (.google.api.field_behavior) = REQUIRED];- Specified by:
getFamilyin interfaceOSInfoOrBuilder- Returns:
- The family.
-
setFamily
Specifies the OS family that relates to the operating system info being expressed.
.buildless.telemetry.OSFamily family = 2 [json_name = "family", (.google.api.field_behavior) = REQUIRED];- Parameters:
value- The family to set.- Returns:
- This builder for chaining.
-
clearFamily
Specifies the OS family that relates to the operating system info being expressed.
.buildless.telemetry.OSFamily family = 2 [json_name = "family", (.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
getArchValue
public int getArchValue()Specifies the architecture which the source operating system is running, if known.
.buildless.telemetry.ProcessorArch arch = 3 [json_name = "arch", (.google.api.field_behavior) = REQUIRED];- Specified by:
getArchValuein interfaceOSInfoOrBuilder- Returns:
- The enum numeric value on the wire for arch.
-
setArchValue
Specifies the architecture which the source operating system is running, if known.
.buildless.telemetry.ProcessorArch arch = 3 [json_name = "arch", (.google.api.field_behavior) = REQUIRED];- Parameters:
value- The enum numeric value on the wire for arch to set.- Returns:
- This builder for chaining.
-
getArch
Specifies the architecture which the source operating system is running, if known.
.buildless.telemetry.ProcessorArch arch = 3 [json_name = "arch", (.google.api.field_behavior) = REQUIRED];- Specified by:
getArchin interfaceOSInfoOrBuilder- Returns:
- The arch.
-
setArch
Specifies the architecture which the source operating system is running, if known.
.buildless.telemetry.ProcessorArch arch = 3 [json_name = "arch", (.google.api.field_behavior) = REQUIRED];- Parameters:
value- The arch to set.- Returns:
- This builder for chaining.
-
clearArch
Specifies the architecture which the source operating system is running, if known.
.buildless.telemetry.ProcessorArch arch = 3 [json_name = "arch", (.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
hasVersion
public boolean hasVersion()Specifies version info for the source operating system, if known.
.buildless.telemetry.VersionInfo version = 4 [json_name = "version", (.google.api.field_behavior) = REQUIRED];- Specified by:
hasVersionin interfaceOSInfoOrBuilder- Returns:
- Whether the version field is set.
-
getVersion
Specifies version info for the source operating system, if known.
.buildless.telemetry.VersionInfo version = 4 [json_name = "version", (.google.api.field_behavior) = REQUIRED];- Specified by:
getVersionin interfaceOSInfoOrBuilder- Returns:
- The version.
-
setVersion
Specifies version info for the source operating system, if known.
.buildless.telemetry.VersionInfo version = 4 [json_name = "version", (.google.api.field_behavior) = REQUIRED]; -
setVersion
Specifies version info for the source operating system, if known.
.buildless.telemetry.VersionInfo version = 4 [json_name = "version", (.google.api.field_behavior) = REQUIRED]; -
mergeVersion
Specifies version info for the source operating system, if known.
.buildless.telemetry.VersionInfo version = 4 [json_name = "version", (.google.api.field_behavior) = REQUIRED]; -
clearVersion
Specifies version info for the source operating system, if known.
.buildless.telemetry.VersionInfo version = 4 [json_name = "version", (.google.api.field_behavior) = REQUIRED]; -
getVersionBuilder
Specifies version info for the source operating system, if known.
.buildless.telemetry.VersionInfo version = 4 [json_name = "version", (.google.api.field_behavior) = REQUIRED]; -
getVersionOrBuilder
Specifies version info for the source operating system, if known.
.buildless.telemetry.VersionInfo version = 4 [json_name = "version", (.google.api.field_behavior) = REQUIRED];- Specified by:
getVersionOrBuilderin interfaceOSInfoOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OSInfo.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OSInfo.Builder>
-