public static class ChoicePeriodDate.Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<ChoicePeriodDate> implements org.apache.avro.data.RecordBuilder<ChoicePeriodDate>
| Modifier and Type | Method and Description |
|---|---|
ChoicePeriodDate |
build() |
ChoicePeriodDate.Builder |
clearDate()
Clears the value of the 'date' field.
|
ChoicePeriodDate.Builder |
clearPeriod()
Clears the value of the 'period' field.
|
String |
getDate()
Gets the value of the 'date' field.
|
Period |
getPeriod()
Gets the value of the 'period' field.
|
Period.Builder |
getPeriodBuilder()
Gets the Builder instance for the 'period' field and creates one if it doesn't exist yet.
|
boolean |
hasDate()
Checks whether the 'date' field has been set.
|
boolean |
hasPeriod()
Checks whether the 'period' field has been set.
|
boolean |
hasPeriodBuilder()
Checks whether the 'period' field has an active Builder instance
Choice field
|
ChoicePeriodDate.Builder |
setDate(String value)
Sets the value of the 'date' field.
|
ChoicePeriodDate.Builder |
setPeriod(Period value)
Sets the value of the 'period' field.
|
ChoicePeriodDate.Builder |
setPeriodBuilder(Period.Builder value)
Sets the Builder instance for the 'period' field
Choice field
|
public String getDate()
public ChoicePeriodDate.Builder setDate(String value)
value - The value of 'date'.public boolean hasDate()
public ChoicePeriodDate.Builder clearDate()
public Period getPeriod()
public ChoicePeriodDate.Builder setPeriod(Period value)
value - The value of 'period'.public boolean hasPeriod()
public Period.Builder getPeriodBuilder()
public ChoicePeriodDate.Builder setPeriodBuilder(Period.Builder value)
value - The builder instance that must be set.public boolean hasPeriodBuilder()
public ChoicePeriodDate.Builder clearPeriod()
public ChoicePeriodDate build()
build in interface org.apache.avro.data.RecordBuilder<ChoicePeriodDate>Copyright © 2020. All rights reserved.