Class VersionInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<VersionInfo.Builder>
com.buildless.telemetry.VersionInfo.Builder
All Implemented Interfaces:
VersionInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
VersionInfo

public static final class VersionInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<VersionInfo.Builder> implements VersionInfoOrBuilder
 ## Versioning Info

 Specifies generic versioning information for a given tool, OS, or other fragment of information. Versioning info is
 structured in generic form; based on context, a tool or OS may use a subset of the available versioning properties,
 so long as such usage is consistent across event delivery.
 
Protobuf type buildless.telemetry.VersionInfo
  • 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<VersionInfo.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public VersionInfo.Builder mergeFrom(VersionInfo other)
    • isInitialized

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

      public VersionInfo.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<VersionInfo.Builder>
      Throws:
      IOException
    • getMajor

      public int getMajor()
       Major version number. In the example `1.2.3`, this value would be `1`.
       
      uint32 major = 1 [json_name = "major", (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMajor in interface VersionInfoOrBuilder
      Returns:
      The major.
    • setMajor

      public VersionInfo.Builder setMajor(int value)
       Major version number. In the example `1.2.3`, this value would be `1`.
       
      uint32 major = 1 [json_name = "major", (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The major to set.
      Returns:
      This builder for chaining.
    • clearMajor

      public VersionInfo.Builder clearMajor()
       Major version number. In the example `1.2.3`, this value would be `1`.
       
      uint32 major = 1 [json_name = "major", (.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getMinor

      public int getMinor()
       Minor version number. In the example `1.2.3`, this value would be `2`.
       
      uint32 minor = 2 [json_name = "minor", (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMinor in interface VersionInfoOrBuilder
      Returns:
      The minor.
    • setMinor

      public VersionInfo.Builder setMinor(int value)
       Minor version number. In the example `1.2.3`, this value would be `2`.
       
      uint32 minor = 2 [json_name = "minor", (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The minor to set.
      Returns:
      This builder for chaining.
    • clearMinor

      public VersionInfo.Builder clearMinor()
       Minor version number. In the example `1.2.3`, this value would be `2`.
       
      uint32 minor = 2 [json_name = "minor", (.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getMicro

      public int getMicro()
       Micro version number. In the example `1.2.3`, this value would be `3`.
       
      uint32 micro = 3 [json_name = "micro", (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMicro in interface VersionInfoOrBuilder
      Returns:
      The micro.
    • setMicro

      public VersionInfo.Builder setMicro(int value)
       Micro version number. In the example `1.2.3`, this value would be `3`.
       
      uint32 micro = 3 [json_name = "micro", (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The micro to set.
      Returns:
      This builder for chaining.
    • clearMicro

      public VersionInfo.Builder clearMicro()
       Micro version number. In the example `1.2.3`, this value would be `3`.
       
      uint32 micro = 3 [json_name = "micro", (.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getBuild

      public String getBuild()
       If there is a build number or tag value, it should be supplied here.
       
      string build = 4 [json_name = "build", (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBuild in interface VersionInfoOrBuilder
      Returns:
      The build.
    • getBuildBytes

      public com.google.protobuf.ByteString getBuildBytes()
       If there is a build number or tag value, it should be supplied here.
       
      string build = 4 [json_name = "build", (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBuildBytes in interface VersionInfoOrBuilder
      Returns:
      The bytes for build.
    • setBuild

      public VersionInfo.Builder setBuild(String value)
       If there is a build number or tag value, it should be supplied here.
       
      string build = 4 [json_name = "build", (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The build to set.
      Returns:
      This builder for chaining.
    • clearBuild

      public VersionInfo.Builder clearBuild()
       If there is a build number or tag value, it should be supplied here.
       
      string build = 4 [json_name = "build", (.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setBuildBytes

      public VersionInfo.Builder setBuildBytes(com.google.protobuf.ByteString value)
       If there is a build number or tag value, it should be supplied here.
       
      string build = 4 [json_name = "build", (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for build to set.
      Returns:
      This builder for chaining.
    • getRc

      public String getRc()
       If there is a release candidate number or string, it should be supplied here.
       
      string rc = 5 [json_name = "rc", (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRc in interface VersionInfoOrBuilder
      Returns:
      The rc.
    • getRcBytes

      public com.google.protobuf.ByteString getRcBytes()
       If there is a release candidate number or string, it should be supplied here.
       
      string rc = 5 [json_name = "rc", (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRcBytes in interface VersionInfoOrBuilder
      Returns:
      The bytes for rc.
    • setRc

      public VersionInfo.Builder setRc(String value)
       If there is a release candidate number or string, it should be supplied here.
       
      string rc = 5 [json_name = "rc", (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The rc to set.
      Returns:
      This builder for chaining.
    • clearRc

      public VersionInfo.Builder clearRc()
       If there is a release candidate number or string, it should be supplied here.
       
      string rc = 5 [json_name = "rc", (.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setRcBytes

      public VersionInfo.Builder setRcBytes(com.google.protobuf.ByteString value)
       If there is a release candidate number or string, it should be supplied here.
       
      string rc = 5 [json_name = "rc", (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for rc to set.
      Returns:
      This builder for chaining.
    • getCommit

      public String getCommit()
       If there is a known commit to which a version relates, it should be supplied here.
       
      string commit = 6 [json_name = "commit", (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCommit in interface VersionInfoOrBuilder
      Returns:
      The commit.
    • getCommitBytes

      public com.google.protobuf.ByteString getCommitBytes()
       If there is a known commit to which a version relates, it should be supplied here.
       
      string commit = 6 [json_name = "commit", (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCommitBytes in interface VersionInfoOrBuilder
      Returns:
      The bytes for commit.
    • setCommit

      public VersionInfo.Builder setCommit(String value)
       If there is a known commit to which a version relates, it should be supplied here.
       
      string commit = 6 [json_name = "commit", (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The commit to set.
      Returns:
      This builder for chaining.
    • clearCommit

      public VersionInfo.Builder clearCommit()
       If there is a known commit to which a version relates, it should be supplied here.
       
      string commit = 6 [json_name = "commit", (.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setCommitBytes

      public VersionInfo.Builder setCommitBytes(com.google.protobuf.ByteString value)
       If there is a known commit to which a version relates, it should be supplied here.
       
      string commit = 6 [json_name = "commit", (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for commit to set.
      Returns:
      This builder for chaining.
    • getTag

      public String getTag()
       If there is a known source control tag to which a version relates, it should be supplied here.
       
      string tag = 7 [json_name = "tag", (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTag in interface VersionInfoOrBuilder
      Returns:
      The tag.
    • getTagBytes

      public com.google.protobuf.ByteString getTagBytes()
       If there is a known source control tag to which a version relates, it should be supplied here.
       
      string tag = 7 [json_name = "tag", (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTagBytes in interface VersionInfoOrBuilder
      Returns:
      The bytes for tag.
    • setTag

      public VersionInfo.Builder setTag(String value)
       If there is a known source control tag to which a version relates, it should be supplied here.
       
      string tag = 7 [json_name = "tag", (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The tag to set.
      Returns:
      This builder for chaining.
    • clearTag

      public VersionInfo.Builder clearTag()
       If there is a known source control tag to which a version relates, it should be supplied here.
       
      string tag = 7 [json_name = "tag", (.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setTagBytes

      public VersionInfo.Builder setTagBytes(com.google.protobuf.ByteString value)
       If there is a known source control tag to which a version relates, it should be supplied here.
       
      string tag = 7 [json_name = "tag", (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for tag to set.
      Returns:
      This builder for chaining.
    • getSpec

      public String getSpec()
       If there is a formatted representation of this version info, it should be expressed here.
       
      string spec = 8 [json_name = "spec", (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSpec in interface VersionInfoOrBuilder
      Returns:
      The spec.
    • getSpecBytes

      public com.google.protobuf.ByteString getSpecBytes()
       If there is a formatted representation of this version info, it should be expressed here.
       
      string spec = 8 [json_name = "spec", (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSpecBytes in interface VersionInfoOrBuilder
      Returns:
      The bytes for spec.
    • setSpec

      public VersionInfo.Builder setSpec(String value)
       If there is a formatted representation of this version info, it should be expressed here.
       
      string spec = 8 [json_name = "spec", (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The spec to set.
      Returns:
      This builder for chaining.
    • clearSpec

      public VersionInfo.Builder clearSpec()
       If there is a formatted representation of this version info, it should be expressed here.
       
      string spec = 8 [json_name = "spec", (.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setSpecBytes

      public VersionInfo.Builder setSpecBytes(com.google.protobuf.ByteString value)
       If there is a formatted representation of this version info, it should be expressed here.
       
      string spec = 8 [json_name = "spec", (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for spec to set.
      Returns:
      This builder for chaining.
    • getRelease

      public long getRelease()
       If there is a release number associated with this version info, it should be expressed here. In some cases, the
       release number may be a timestamp.
       
      uint64 release = 9 [json_name = "release", (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRelease in interface VersionInfoOrBuilder
      Returns:
      The release.
    • setRelease

      public VersionInfo.Builder setRelease(long value)
       If there is a release number associated with this version info, it should be expressed here. In some cases, the
       release number may be a timestamp.
       
      uint64 release = 9 [json_name = "release", (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The release to set.
      Returns:
      This builder for chaining.
    • clearRelease

      public VersionInfo.Builder clearRelease()
       If there is a release number associated with this version info, it should be expressed here. In some cases, the
       release number may be a timestamp.
       
      uint64 release = 9 [json_name = "release", (.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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