Class ResourcePolicyWeeklyCycle (1.45.0)

public final class ResourcePolicyWeeklyCycle extends GeneratedMessageV3 implements ResourcePolicyWeeklyCycleOrBuilder

Time window specified for weekly operations.

Protobuf type google.cloud.compute.v1.ResourcePolicyWeeklyCycle

Static Fields

DAY_OF_WEEKS_FIELD_NUMBER

public static final int DAY_OF_WEEKS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ResourcePolicyWeeklyCycle getDefaultInstance()
Returns
TypeDescription
ResourcePolicyWeeklyCycle

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ResourcePolicyWeeklyCycle.Builder newBuilder()
Returns
TypeDescription
ResourcePolicyWeeklyCycle.Builder

newBuilder(ResourcePolicyWeeklyCycle prototype)

public static ResourcePolicyWeeklyCycle.Builder newBuilder(ResourcePolicyWeeklyCycle prototype)
Parameter
NameDescription
prototypeResourcePolicyWeeklyCycle
Returns
TypeDescription
ResourcePolicyWeeklyCycle.Builder

parseDelimitedFrom(InputStream input)

public static ResourcePolicyWeeklyCycle parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ResourcePolicyWeeklyCycle
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourcePolicyWeeklyCycle parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourcePolicyWeeklyCycle
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ResourcePolicyWeeklyCycle parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ResourcePolicyWeeklyCycle
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ResourcePolicyWeeklyCycle parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourcePolicyWeeklyCycle
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ResourcePolicyWeeklyCycle parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ResourcePolicyWeeklyCycle
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ResourcePolicyWeeklyCycle parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourcePolicyWeeklyCycle
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ResourcePolicyWeeklyCycle parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ResourcePolicyWeeklyCycle
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourcePolicyWeeklyCycle parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourcePolicyWeeklyCycle
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ResourcePolicyWeeklyCycle parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ResourcePolicyWeeklyCycle
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourcePolicyWeeklyCycle parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourcePolicyWeeklyCycle
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ResourcePolicyWeeklyCycle parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ResourcePolicyWeeklyCycle
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ResourcePolicyWeeklyCycle parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourcePolicyWeeklyCycle
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ResourcePolicyWeeklyCycle> parser()
Returns
TypeDescription
Parser<ResourcePolicyWeeklyCycle>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDayOfWeeks(int index)

public ResourcePolicyWeeklyCycleDayOfWeek getDayOfWeeks(int index)

Up to 7 intervals/windows, one for each day of the week.

repeated .google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek day_of_weeks = 257871834;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResourcePolicyWeeklyCycleDayOfWeek

getDayOfWeeksCount()

public int getDayOfWeeksCount()

Up to 7 intervals/windows, one for each day of the week.

repeated .google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek day_of_weeks = 257871834;

Returns
TypeDescription
int

getDayOfWeeksList()

public List<ResourcePolicyWeeklyCycleDayOfWeek> getDayOfWeeksList()

Up to 7 intervals/windows, one for each day of the week.

repeated .google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek day_of_weeks = 257871834;

Returns
TypeDescription
List<ResourcePolicyWeeklyCycleDayOfWeek>

getDayOfWeeksOrBuilder(int index)

public ResourcePolicyWeeklyCycleDayOfWeekOrBuilder getDayOfWeeksOrBuilder(int index)

Up to 7 intervals/windows, one for each day of the week.

repeated .google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek day_of_weeks = 257871834;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResourcePolicyWeeklyCycleDayOfWeekOrBuilder

getDayOfWeeksOrBuilderList()

public List<? extends ResourcePolicyWeeklyCycleDayOfWeekOrBuilder> getDayOfWeeksOrBuilderList()

Up to 7 intervals/windows, one for each day of the week.

repeated .google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek day_of_weeks = 257871834;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeekOrBuilder>

getDefaultInstanceForType()

public ResourcePolicyWeeklyCycle getDefaultInstanceForType()
Returns
TypeDescription
ResourcePolicyWeeklyCycle

getParserForType()

public Parser<ResourcePolicyWeeklyCycle> getParserForType()
Returns
TypeDescription
Parser<ResourcePolicyWeeklyCycle>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ResourcePolicyWeeklyCycle.Builder newBuilderForType()
Returns
TypeDescription
ResourcePolicyWeeklyCycle.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ResourcePolicyWeeklyCycle.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ResourcePolicyWeeklyCycle.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ResourcePolicyWeeklyCycle.Builder toBuilder()
Returns
TypeDescription
ResourcePolicyWeeklyCycle.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException