public final class

VersionProto.VersionInfo.Builder

extends <any>

implements VersionProto.VersionInfoOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.protolayout.expression.proto.VersionProto.VersionInfo.Builder

Overview

 Version information. This is used to encode the schema version of a payload
 (e.g. inside of a layout).
 
Protobuf type androidx.wear.protolayout.expression.proto.VersionInfo

Summary

Methods
public VersionProto.VersionInfo.BuilderclearMajor()

 Major version.

public VersionProto.VersionInfo.BuilderclearMinor()

 Minor version.

public intgetMajor()

 Major version.

public intgetMinor()

 Minor version.

public VersionProto.VersionInfo.BuildersetMajor(int value)

 Major version.

public VersionProto.VersionInfo.BuildersetMinor(int value)

 Minor version.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods

public int getMajor()

 Major version. Incremented on breaking changes (i.e. compatibility is not
 guaranteed across major versions).
 
uint32 major = 1;

Returns:

The major.

public VersionProto.VersionInfo.Builder setMajor(int value)

 Major version. Incremented on breaking changes (i.e. compatibility is not
 guaranteed across major versions).
 
uint32 major = 1;

Parameters:

value: The major to set.

Returns:

This builder for chaining.

 Major version. Incremented on breaking changes (i.e. compatibility is not
 guaranteed across major versions).
 
uint32 major = 1;

Returns:

This builder for chaining.

public int getMinor()

 Minor version. Incremented on non-breaking changes (e.g. schema additions).
 Anything consuming a payload can safely consume anything with a lower
 minor version.
 
uint32 minor = 2;

Returns:

The minor.

public VersionProto.VersionInfo.Builder setMinor(int value)

 Minor version. Incremented on non-breaking changes (e.g. schema additions).
 Anything consuming a payload can safely consume anything with a lower
 minor version.
 
uint32 minor = 2;

Parameters:

value: The minor to set.

Returns:

This builder for chaining.

 Minor version. Incremented on non-breaking changes (e.g. schema additions).
 Anything consuming a payload can safely consume anything with a lower
 minor version.
 
uint32 minor = 2;

Returns:

This builder for chaining.