public static final class AutoMlForecastingInputs.Granularity.Builder extends GeneratedMessageV3.Builder<AutoMlForecastingInputs.Granularity.Builder> implements AutoMlForecastingInputs.GranularityOrBuilder
A duration of time expressed in time granularity units.
Protobuf type
google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Granularity
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public AutoMlForecastingInputs.Granularity.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public AutoMlForecastingInputs.Granularity build()
Returns
public AutoMlForecastingInputs.Granularity buildPartial()
Returns
public AutoMlForecastingInputs.Granularity.Builder clear()
Returns
Overrides
public AutoMlForecastingInputs.Granularity.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public AutoMlForecastingInputs.Granularity.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public AutoMlForecastingInputs.Granularity.Builder clearQuantity()
The number of granularity_units between data points in the training
data. If granularity_unit
is minute
,
can be 1, 5, 10, 15, or 30. For all other values of granularity_unit
,
must be 1.
int64 quantity = 2;
Returns
public AutoMlForecastingInputs.Granularity.Builder clearUnit()
The time granularity unit of this time period.
The supported units are:
- "minute"
- "hour"
- "day"
- "week"
- "month"
- "year"
string unit = 1;
Returns
public AutoMlForecastingInputs.Granularity.Builder clone()
Returns
Overrides
public AutoMlForecastingInputs.Granularity getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public long getQuantity()
The number of granularity_units between data points in the training
data. If granularity_unit
is minute
,
can be 1, 5, 10, 15, or 30. For all other values of granularity_unit
,
must be 1.
int64 quantity = 2;
Returns
Type | Description |
long | The quantity.
|
The time granularity unit of this time period.
The supported units are:
- "minute"
- "hour"
- "day"
- "week"
- "month"
- "year"
string unit = 1;
Returns
Type | Description |
String | The unit.
|
public ByteString getUnitBytes()
The time granularity unit of this time period.
The supported units are:
- "minute"
- "hour"
- "day"
- "week"
- "month"
- "year"
string unit = 1;
Returns
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public AutoMlForecastingInputs.Granularity.Builder mergeFrom(AutoMlForecastingInputs.Granularity other)
Parameter
Returns
public AutoMlForecastingInputs.Granularity.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public AutoMlForecastingInputs.Granularity.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final AutoMlForecastingInputs.Granularity.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public AutoMlForecastingInputs.Granularity.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public AutoMlForecastingInputs.Granularity.Builder setQuantity(long value)
The number of granularity_units between data points in the training
data. If granularity_unit
is minute
,
can be 1, 5, 10, 15, or 30. For all other values of granularity_unit
,
must be 1.
int64 quantity = 2;
Parameter
Name | Description |
value | long
The quantity to set.
|
Returns
public AutoMlForecastingInputs.Granularity.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public AutoMlForecastingInputs.Granularity.Builder setUnit(String value)
The time granularity unit of this time period.
The supported units are:
- "minute"
- "hour"
- "day"
- "week"
- "month"
- "year"
string unit = 1;
Parameter
Name | Description |
value | String
The unit to set.
|
Returns
public AutoMlForecastingInputs.Granularity.Builder setUnitBytes(ByteString value)
The time granularity unit of this time period.
The supported units are:
- "minute"
- "hour"
- "day"
- "week"
- "month"
- "year"
string unit = 1;
Parameter
Name | Description |
value | ByteString
The bytes for unit to set.
|
Returns
public final AutoMlForecastingInputs.Granularity.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides