Class TimeWindows (1.52.0)

public final class TimeWindows extends GeneratedMessageV3 implements TimeWindowsOrBuilder

Time windows within which actions are restricted. See the documentation for more information on how to configure dates/times.

Protobuf type google.cloud.deploy.v1.TimeWindows

Static Fields

ONE_TIME_WINDOWS_FIELD_NUMBER

public static final int ONE_TIME_WINDOWS_FIELD_NUMBER
Field Value
Type Description
int

TIME_ZONE_FIELD_NUMBER

public static final int TIME_ZONE_FIELD_NUMBER
Field Value
Type Description
int

WEEKLY_WINDOWS_FIELD_NUMBER

public static final int WEEKLY_WINDOWS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TimeWindows getDefaultInstance()
Returns
Type Description
TimeWindows

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static TimeWindows.Builder newBuilder()
Returns
Type Description
TimeWindows.Builder

newBuilder(TimeWindows prototype)

public static TimeWindows.Builder newBuilder(TimeWindows prototype)
Parameter
Name Description
prototype TimeWindows
Returns
Type Description
TimeWindows.Builder

parseDelimitedFrom(InputStream input)

public static TimeWindows parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TimeWindows
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TimeWindows parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TimeWindows
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static TimeWindows parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
TimeWindows
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TimeWindows parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TimeWindows
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TimeWindows parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
TimeWindows
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TimeWindows parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TimeWindows
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TimeWindows parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TimeWindows
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TimeWindows parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TimeWindows
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static TimeWindows parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TimeWindows
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TimeWindows parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TimeWindows
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static TimeWindows parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TimeWindows
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TimeWindows parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TimeWindows
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<TimeWindows> parser()
Returns
Type Description
Parser<TimeWindows>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public TimeWindows getDefaultInstanceForType()
Returns
Type Description
TimeWindows

getOneTimeWindows(int index)

public OneTimeWindow getOneTimeWindows(int index)

Optional. One-time windows within which actions are restricted.

repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
OneTimeWindow

getOneTimeWindowsCount()

public int getOneTimeWindowsCount()

Optional. One-time windows within which actions are restricted.

repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getOneTimeWindowsList()

public List<OneTimeWindow> getOneTimeWindowsList()

Optional. One-time windows within which actions are restricted.

repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<OneTimeWindow>

getOneTimeWindowsOrBuilder(int index)

public OneTimeWindowOrBuilder getOneTimeWindowsOrBuilder(int index)

Optional. One-time windows within which actions are restricted.

repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
OneTimeWindowOrBuilder

getOneTimeWindowsOrBuilderList()

public List<? extends OneTimeWindowOrBuilder> getOneTimeWindowsOrBuilderList()

Optional. One-time windows within which actions are restricted.

repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.deploy.v1.OneTimeWindowOrBuilder>

getParserForType()

public Parser<TimeWindows> getParserForType()
Returns
Type Description
Parser<TimeWindows>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTimeZone()

public String getTimeZone()

Required. The time zone in IANA format IANA Time Zone Database (e.g. America/New_York).

string time_zone = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The timeZone.

getTimeZoneBytes()

public ByteString getTimeZoneBytes()

Required. The time zone in IANA format IANA Time Zone Database (e.g. America/New_York).

string time_zone = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for timeZone.

getWeeklyWindows(int index)

public WeeklyWindow getWeeklyWindows(int index)

Optional. Recurring weekly windows within which actions are restricted.

repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
WeeklyWindow

getWeeklyWindowsCount()

public int getWeeklyWindowsCount()

Optional. Recurring weekly windows within which actions are restricted.

repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getWeeklyWindowsList()

public List<WeeklyWindow> getWeeklyWindowsList()

Optional. Recurring weekly windows within which actions are restricted.

repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<WeeklyWindow>

getWeeklyWindowsOrBuilder(int index)

public WeeklyWindowOrBuilder getWeeklyWindowsOrBuilder(int index)

Optional. Recurring weekly windows within which actions are restricted.

repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
WeeklyWindowOrBuilder

getWeeklyWindowsOrBuilderList()

public List<? extends WeeklyWindowOrBuilder> getWeeklyWindowsOrBuilderList()

Optional. Recurring weekly windows within which actions are restricted.

repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.deploy.v1.WeeklyWindowOrBuilder>

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public TimeWindows.Builder newBuilderForType()
Returns
Type Description
TimeWindows.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TimeWindows.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TimeWindows.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public TimeWindows.Builder toBuilder()
Returns
Type Description
TimeWindows.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException