Class AutoMlForecastingInputs.Granularity.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AutoMlForecastingInputs.Granularity.Builder>
-
- com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Granularity.Builder
-
- All Implemented Interfaces:
AutoMlForecastingInputs.GranularityOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- AutoMlForecastingInputs.Granularity
public static final class AutoMlForecastingInputs.Granularity.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AutoMlForecastingInputs.Granularity.Builder> implements AutoMlForecastingInputs.GranularityOrBuilder
A duration of time expressed in time granularity units.
Protobuf typegoogle.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Granularity
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AutoMlForecastingInputs.Granularity.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AutoMlForecastingInputs.Granularity
build()
AutoMlForecastingInputs.Granularity
buildPartial()
AutoMlForecastingInputs.Granularity.Builder
clear()
AutoMlForecastingInputs.Granularity.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
AutoMlForecastingInputs.Granularity.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
AutoMlForecastingInputs.Granularity.Builder
clearQuantity()
The number of granularity_units between data points in the training data.AutoMlForecastingInputs.Granularity.Builder
clearUnit()
The time granularity unit of this time period.AutoMlForecastingInputs.Granularity.Builder
clone()
AutoMlForecastingInputs.Granularity
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
long
getQuantity()
The number of granularity_units between data points in the training data.String
getUnit()
The time granularity unit of this time period.com.google.protobuf.ByteString
getUnitBytes()
The time granularity unit of this time period.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
AutoMlForecastingInputs.Granularity.Builder
mergeFrom(AutoMlForecastingInputs.Granularity other)
AutoMlForecastingInputs.Granularity.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AutoMlForecastingInputs.Granularity.Builder
mergeFrom(com.google.protobuf.Message other)
AutoMlForecastingInputs.Granularity.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
AutoMlForecastingInputs.Granularity.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AutoMlForecastingInputs.Granularity.Builder
setQuantity(long value)
The number of granularity_units between data points in the training data.AutoMlForecastingInputs.Granularity.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
AutoMlForecastingInputs.Granularity.Builder
setUnit(String value)
The time granularity unit of this time period.AutoMlForecastingInputs.Granularity.Builder
setUnitBytes(com.google.protobuf.ByteString value)
The time granularity unit of this time period.AutoMlForecastingInputs.Granularity.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutoMlForecastingInputs.Granularity.Builder>
-
clear
public AutoMlForecastingInputs.Granularity.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutoMlForecastingInputs.Granularity.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutoMlForecastingInputs.Granularity.Builder>
-
getDefaultInstanceForType
public AutoMlForecastingInputs.Granularity getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AutoMlForecastingInputs.Granularity build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AutoMlForecastingInputs.Granularity buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AutoMlForecastingInputs.Granularity.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutoMlForecastingInputs.Granularity.Builder>
-
setField
public AutoMlForecastingInputs.Granularity.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutoMlForecastingInputs.Granularity.Builder>
-
clearField
public AutoMlForecastingInputs.Granularity.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutoMlForecastingInputs.Granularity.Builder>
-
clearOneof
public AutoMlForecastingInputs.Granularity.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutoMlForecastingInputs.Granularity.Builder>
-
setRepeatedField
public AutoMlForecastingInputs.Granularity.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutoMlForecastingInputs.Granularity.Builder>
-
addRepeatedField
public AutoMlForecastingInputs.Granularity.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutoMlForecastingInputs.Granularity.Builder>
-
mergeFrom
public AutoMlForecastingInputs.Granularity.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AutoMlForecastingInputs.Granularity.Builder>
-
mergeFrom
public AutoMlForecastingInputs.Granularity.Builder mergeFrom(AutoMlForecastingInputs.Granularity other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutoMlForecastingInputs.Granularity.Builder>
-
mergeFrom
public AutoMlForecastingInputs.Granularity.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AutoMlForecastingInputs.Granularity.Builder>
- Throws:
IOException
-
getUnit
public String getUnit()
The time granularity unit of this time period. The supported units are: * "minute" * "hour" * "day" * "week" * "month" * "year"
string unit = 1;
- Specified by:
getUnit
in interfaceAutoMlForecastingInputs.GranularityOrBuilder
- Returns:
- The unit.
-
getUnitBytes
public com.google.protobuf.ByteString getUnitBytes()
The time granularity unit of this time period. The supported units are: * "minute" * "hour" * "day" * "week" * "month" * "year"
string unit = 1;
- Specified by:
getUnitBytes
in interfaceAutoMlForecastingInputs.GranularityOrBuilder
- Returns:
- The bytes for unit.
-
setUnit
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;
- Parameters:
value
- The unit to set.- Returns:
- This builder for chaining.
-
clearUnit
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:
- This builder for chaining.
-
setUnitBytes
public AutoMlForecastingInputs.Granularity.Builder setUnitBytes(com.google.protobuf.ByteString value)
The time granularity unit of this time period. The supported units are: * "minute" * "hour" * "day" * "week" * "month" * "year"
string unit = 1;
- Parameters:
value
- The bytes for unit to set.- Returns:
- This builder for chaining.
-
getQuantity
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;
- Specified by:
getQuantity
in interfaceAutoMlForecastingInputs.GranularityOrBuilder
- Returns:
- The quantity.
-
setQuantity
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;
- Parameters:
value
- The quantity to set.- Returns:
- This builder for chaining.
-
clearQuantity
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:
- This builder for chaining.
-
setUnknownFields
public final AutoMlForecastingInputs.Granularity.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutoMlForecastingInputs.Granularity.Builder>
-
mergeUnknownFields
public final AutoMlForecastingInputs.Granularity.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutoMlForecastingInputs.Granularity.Builder>
-
-