public final class

ColorProto.ColorStop

extends <any>

implements ColorProto.ColorStopOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.protolayout.proto.ColorProto.ColorStop

Overview

 A color and an offset, determining a color position in a gradient.
 
Protobuf type androidx.wear.protolayout.proto.ColorStop

Summary

Fields
public static final intCOLOR_FIELD_NUMBER

public static final intOFFSET_FIELD_NUMBER

Methods
protected final java.lang.ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)

public ColorProto.ColorPropgetColor()

 The color for this stop.

public static ColorProto.ColorStopgetDefaultInstance()

public TypesProto.FloatPropgetOffset()

 The relative offset for this color, between 0 and 1.

public ColorProto.ColorStop.OptionalOffsetCasegetOptionalOffsetCase()

public booleanhasColor()

 The color for this stop.

public booleanhasOffset()

 The relative offset for this color, between 0 and 1.

public static ColorProto.ColorStop.BuildernewBuilder()

public static ColorProto.ColorStop.BuildernewBuilder(ColorProto.ColorStop prototype)

public static ColorProto.ColorStopparseDelimitedFrom(java.io.InputStream input)

public static ColorProto.ColorStopparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ColorProto.ColorStopparseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ColorProto.ColorStopparseFrom(java.nio.ByteBuffer data)

public static ColorProto.ColorStopparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ColorProto.ColorStopparseFrom(com.google.protobuf.ByteString data)

public static ColorProto.ColorStopparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ColorProto.ColorStopparseFrom(com.google.protobuf.CodedInputStream input)

public static ColorProto.ColorStopparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ColorProto.ColorStopparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static <any>parser()

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

Fields

public static final int COLOR_FIELD_NUMBER

public static final int OFFSET_FIELD_NUMBER

Methods

public ColorProto.ColorStop.OptionalOffsetCase getOptionalOffsetCase()

public boolean hasColor()

 The color for this stop. Only opaque colors are supported. Any transparent
 colors will have their alpha component set to 0xFF (opaque).
 
.androidx.wear.protolayout.proto.ColorProp color = 1;

public ColorProto.ColorProp getColor()

 The color for this stop. Only opaque colors are supported. Any transparent
 colors will have their alpha component set to 0xFF (opaque).
 
.androidx.wear.protolayout.proto.ColorProp color = 1;

public boolean hasOffset()

 The relative offset for this color, between 0 and 1. This determines
 where the color is positioned relative to a gradient space.
 
.androidx.wear.protolayout.proto.FloatProp offset = 2;

public TypesProto.FloatProp getOffset()

 The relative offset for this color, between 0 and 1. This determines
 where the color is positioned relative to a gradient space.
 
.androidx.wear.protolayout.proto.FloatProp offset = 2;

public static ColorProto.ColorStop parseFrom(java.nio.ByteBuffer data)

public static ColorProto.ColorStop parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ColorProto.ColorStop parseFrom(com.google.protobuf.ByteString data)

public static ColorProto.ColorStop parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ColorProto.ColorStop parseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ColorProto.ColorStop parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ColorProto.ColorStop parseDelimitedFrom(java.io.InputStream input)

public static ColorProto.ColorStop parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ColorProto.ColorStop parseFrom(com.google.protobuf.CodedInputStream input)

public static ColorProto.ColorStop parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static ColorProto.ColorStop.Builder newBuilder()

public static ColorProto.ColorStop.Builder newBuilder(ColorProto.ColorStop prototype)

protected final java.lang.Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)

public static ColorProto.ColorStop getDefaultInstance()

public static <any> parser()