public final class Period extends GeneratedMessageV3 implements PeriodOrBuilder
Represents period in days/months/years.
Protobuf type google.cloud.channel.v1.Period
Fields
DURATION_FIELD_NUMBER
public static final int DURATION_FIELD_NUMBER
Field Value
PERIOD_TYPE_FIELD_NUMBER
public static final int PERIOD_TYPE_FIELD_NUMBER
Field Value
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstance()
public static Period getDefaultInstance()
Returns
getDefaultInstanceForType()
public Period getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDuration()
Total duration of Period Type defined.
int32 duration = 1;
Returns
Type | Description |
int | The duration.
|
getParserForType()
public Parser<Period> getParserForType()
Returns
Overrides
getPeriodType()
public PeriodType getPeriodType()
Period Type.
.google.cloud.channel.v1.PeriodType period_type = 2;
Returns
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
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static Period.Builder newBuilder()
Returns
newBuilder(Period prototype)
public static Period.Builder newBuilder(Period prototype)
Parameter
Name | Description |
prototype | Period
|
Returns
newBuilderForType()
public Period.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Period.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static Period parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Period parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Period parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Period parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Period parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Period parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Period parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Period parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Period parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Period parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Period parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Period parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Period> parser()
Returns
toBuilder()
public Period.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions