public final class Period extends GeneratedMessageV3 implements PeriodOrBuilder
Represents period in days/months/years.
Protobuf type google.cloud.channel.v1.Period
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
DURATION_FIELD_NUMBER
public static final int DURATION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
PERIOD_TYPE_FIELD_NUMBER
public static final int PERIOD_TYPE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Period getDefaultInstance()
Returns |
Type |
Description |
Period |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Period.Builder newBuilder()
newBuilder(Period prototype)
public static Period.Builder newBuilder(Period prototype)
Parameter |
Name |
Description |
prototype |
Period
|
public static Period parseDelimitedFrom(InputStream input)
Returns |
Type |
Description |
Period |
|
public static Period parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Period |
|
parseFrom(byte[] data)
public static Period parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
Returns |
Type |
Description |
Period |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Period parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Period |
|
parseFrom(ByteString data)
public static Period parseFrom(ByteString data)
Returns |
Type |
Description |
Period |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Period parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Period |
|
public static Period parseFrom(CodedInputStream input)
Returns |
Type |
Description |
Period |
|
public static Period parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Period |
|
public static Period parseFrom(InputStream input)
Returns |
Type |
Description |
Period |
|
public static Period parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Period |
|
parseFrom(ByteBuffer data)
public static Period parseFrom(ByteBuffer data)
Returns |
Type |
Description |
Period |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Period parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Period |
|
parser()
public static Parser<Period> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public Period getDefaultInstanceForType()
Returns |
Type |
Description |
Period |
|
getDuration()
Total duration of Period Type defined.
int32 duration = 1;
Returns |
Type |
Description |
int |
The duration.
|
getParserForType()
public Parser<Period> getParserForType()
Overrides
getPeriodType()
public PeriodType getPeriodType()
Period Type.
.google.cloud.channel.v1.PeriodType period_type = 2;
Returns |
Type |
Description |
PeriodType |
The periodType.
|
getPeriodTypeValue()
public int getPeriodTypeValue()
Period Type.
.google.cloud.channel.v1.PeriodType period_type = 2;
Returns |
Type |
Description |
int |
The enum numeric value on the wire for periodType.
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Period.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Period.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public Period.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides