public final class FlexibleTimeRange extends GeneratedMessage implements FlexibleTimeRangeOrBuilder
A flexible specification of a time range that has 3 points of
flexibility: (1) a flexible start time, (2) a flexible end time, (3) a
flexible duration.
It is possible to specify a contradictory time range that cannot be matched
by any Interval. This causes a validation error.
Protobuf type google.cloud.compute.v1.FlexibleTimeRange
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
MAX_DURATION_FIELD_NUMBER
public static final int MAX_DURATION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
MIN_DURATION_FIELD_NUMBER
public static final int MIN_DURATION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
START_TIME_NOT_EARLIER_THAN_FIELD_NUMBER
public static final int START_TIME_NOT_EARLIER_THAN_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
START_TIME_NOT_LATER_THAN_FIELD_NUMBER
public static final int START_TIME_NOT_LATER_THAN_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static FlexibleTimeRange getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static FlexibleTimeRange.Builder newBuilder()
newBuilder(FlexibleTimeRange prototype)
public static FlexibleTimeRange.Builder newBuilder(FlexibleTimeRange prototype)
public static FlexibleTimeRange parseDelimitedFrom(InputStream input)
public static FlexibleTimeRange parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static FlexibleTimeRange parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static FlexibleTimeRange parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static FlexibleTimeRange parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static FlexibleTimeRange parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static FlexibleTimeRange parseFrom(CodedInputStream input)
public static FlexibleTimeRange parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static FlexibleTimeRange parseFrom(InputStream input)
public static FlexibleTimeRange parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static FlexibleTimeRange parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static FlexibleTimeRange parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<FlexibleTimeRange> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public FlexibleTimeRange getDefaultInstanceForType()
getMaxDuration()
public String getMaxDuration()
optional string max_duration = 39954959;
| Returns |
| Type |
Description |
String |
The maxDuration.
|
getMaxDurationBytes()
public ByteString getMaxDurationBytes()
optional string max_duration = 39954959;
| Returns |
| Type |
Description |
ByteString |
The bytes for maxDuration.
|
getMinDuration()
public String getMinDuration()
optional string min_duration = 514381025;
| Returns |
| Type |
Description |
String |
The minDuration.
|
getMinDurationBytes()
public ByteString getMinDurationBytes()
optional string min_duration = 514381025;
| Returns |
| Type |
Description |
ByteString |
The bytes for minDuration.
|
getParserForType()
public Parser<FlexibleTimeRange> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getStartTimeNotEarlierThan()
public String getStartTimeNotEarlierThan()
optional string start_time_not_earlier_than = 490386497;
| Returns |
| Type |
Description |
String |
The startTimeNotEarlierThan.
|
getStartTimeNotEarlierThanBytes()
public ByteString getStartTimeNotEarlierThanBytes()
optional string start_time_not_earlier_than = 490386497;
| Returns |
| Type |
Description |
ByteString |
The bytes for startTimeNotEarlierThan.
|
getStartTimeNotLaterThan()
public String getStartTimeNotLaterThan()
optional string start_time_not_later_than = 212764853;
| Returns |
| Type |
Description |
String |
The startTimeNotLaterThan.
|
getStartTimeNotLaterThanBytes()
public ByteString getStartTimeNotLaterThanBytes()
optional string start_time_not_later_than = 212764853;
| Returns |
| Type |
Description |
ByteString |
The bytes for startTimeNotLaterThan.
|
hasMaxDuration()
public boolean hasMaxDuration()
optional string max_duration = 39954959;
| Returns |
| Type |
Description |
boolean |
Whether the maxDuration field is set.
|
hasMinDuration()
public boolean hasMinDuration()
optional string min_duration = 514381025;
| Returns |
| Type |
Description |
boolean |
Whether the minDuration field is set.
|
hasStartTimeNotEarlierThan()
public boolean hasStartTimeNotEarlierThan()
optional string start_time_not_earlier_than = 490386497;
| Returns |
| Type |
Description |
boolean |
Whether the startTimeNotEarlierThan field is set.
|
hasStartTimeNotLaterThan()
public boolean hasStartTimeNotLaterThan()
optional string start_time_not_later_than = 212764853;
| Returns |
| Type |
Description |
boolean |
Whether the startTimeNotLaterThan field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public FlexibleTimeRange.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected FlexibleTimeRange.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public FlexibleTimeRange.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides