Send feedback
Class Period.Builder (3.15.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.15.0 keyboard_arrow_down
public static final class Period . Builder extends GeneratedMessageV3 . Builder<Period . Builder > implements PeriodOrBuilder
Represents period in days/months/years.
Protobuf type google.cloud.channel.v1.Period
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Period . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public Period buildPartial ()
Returns
clear()
public Period . Builder clear ()
Returns
Overrides
clearDuration()
public Period . Builder clearDuration ()
Total duration of Period Type defined.
int32 duration = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public Period . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Period . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearPeriodType()
public Period . Builder clearPeriodType ()
Period Type.
.google.cloud.channel.v1.PeriodType period_type = 2;
Returns
clone()
public Period . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public Period getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getDuration()
Total duration of Period Type defined.
int32 duration = 1;
Returns
Type Description int
The duration.
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.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(Period other)
public Period . Builder mergeFrom ( Period other )
Parameter
Returns
public Period . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Period . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Period . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setDuration(int value)
public Period . Builder setDuration ( int value )
Total duration of Period Type defined.
int32 duration = 1;
Parameter
Name Description value
int
The duration to set.
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Period . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setPeriodType(PeriodType value)
public Period . Builder setPeriodType ( PeriodType value )
Period Type.
.google.cloud.channel.v1.PeriodType period_type = 2;
Parameter
Name Description value
PeriodType
The periodType to set.
Returns
setPeriodTypeValue(int value)
public Period . Builder setPeriodTypeValue ( int value )
Period Type.
.google.cloud.channel.v1.PeriodType period_type = 2;
Parameter
Name Description value
int
The enum numeric value on the wire for periodType to set.
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Period . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Period . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]