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>)
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()
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)
public static Period parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Period parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Period parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Period parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Period parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Period parseFrom(CodedInputStream input)
public static Period parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Period parseFrom(InputStream input)
public static Period parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Period parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Period parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
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()
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;
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)
Overrides
toBuilder()
public Period.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides