Send feedback
Class OneTimeWindow (1.54.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
public final class OneTimeWindow extends GeneratedMessageV3 implements OneTimeWindowOrBuilder
One-time window within which actions are restricted. For example, blocking
actions over New Year's Eve from December 31st at 5pm to January 1st at 9am.
Protobuf type google.cloud.deploy.v1.OneTimeWindow
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
END_DATE_FIELD_NUMBER
public static final int END_DATE_FIELD_NUMBER
Field Value
Type
Description
int
END_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER
Field Value
Type
Description
int
START_DATE_FIELD_NUMBER
public static final int START_DATE_FIELD_NUMBER
Field Value
Type
Description
int
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static OneTimeWindow getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static OneTimeWindow . Builder newBuilder ()
newBuilder(OneTimeWindow prototype)
public static OneTimeWindow . Builder newBuilder ( OneTimeWindow prototype )
public static OneTimeWindow parseDelimitedFrom ( InputStream input )
public static OneTimeWindow parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static OneTimeWindow parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static OneTimeWindow parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static OneTimeWindow parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static OneTimeWindow parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static OneTimeWindow parseFrom ( CodedInputStream input )
public static OneTimeWindow parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static OneTimeWindow parseFrom ( InputStream input )
public static OneTimeWindow parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static OneTimeWindow parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static OneTimeWindow parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<OneTimeWindow> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getDefaultInstanceForType()
public OneTimeWindow getDefaultInstanceForType ()
getEndDate()
Required. End date.
.google.type.Date end_date = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
com.google.type.Date
The endDate.
getEndDateOrBuilder()
public DateOrBuilder getEndDateOrBuilder ()
Required. End date.
.google.type.Date end_date = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
com.google.type.DateOrBuilder
getEndTime()
public TimeOfDay getEndTime ()
Required. End time (exclusive). You may use 24:00 for the end of the day.
.google.type.TimeOfDay end_time = 4 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
com.google.type.TimeOfDay
The endTime.
getEndTimeOrBuilder()
public TimeOfDayOrBuilder getEndTimeOrBuilder ()
Required. End time (exclusive). You may use 24:00 for the end of the day.
.google.type.TimeOfDay end_time = 4 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
com.google.type.TimeOfDayOrBuilder
getParserForType()
public Parser<OneTimeWindow> getParserForType ()
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
getStartDate()
public Date getStartDate ()
Required. Start date.
.google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
com.google.type.Date
The startDate.
getStartDateOrBuilder()
public DateOrBuilder getStartDateOrBuilder ()
Required. Start date.
.google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
com.google.type.DateOrBuilder
getStartTime()
public TimeOfDay getStartTime ()
Required. Start time (inclusive). Use 00:00 for the beginning of the day.
.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
com.google.type.TimeOfDay
The startTime.
getStartTimeOrBuilder()
public TimeOfDayOrBuilder getStartTimeOrBuilder ()
Required. Start time (inclusive). Use 00:00 for the beginning of the day.
.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
com.google.type.TimeOfDayOrBuilder
hasEndDate()
public boolean hasEndDate ()
Required. End date.
.google.type.Date end_date = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
boolean
Whether the endDate field is set.
hasEndTime()
public boolean hasEndTime ()
Required. End time (exclusive). You may use 24:00 for the end of the day.
.google.type.TimeOfDay end_time = 4 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
boolean
Whether the endTime field is set.
hasStartDate()
public boolean hasStartDate ()
Required. Start date.
.google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
boolean
Whether the startDate field is set.
hasStartTime()
public boolean hasStartTime ()
Required. Start time (inclusive). Use 00:00 for the beginning of the day.
.google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
boolean
Whether the startTime field is set.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public OneTimeWindow . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected OneTimeWindow . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public OneTimeWindow . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
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-02-03 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-02-03 UTC."],[],[]]