public final class ResourcePolicy extends com.google.protobuf.GeneratedMessageV3 implements ResourcePolicyOrBuilder
Represents a Resource Policy resource. You can use resource policies to schedule actions for some Compute Engine resources. For example, you can use them to schedule persistent disk snapshots.Protobuf type
google.cloud.compute.v1.ResourcePolicy| Modifier and Type | Class and Description |
|---|---|
static class |
ResourcePolicy.Builder
Represents a Resource Policy resource.
|
static class |
ResourcePolicy.Status
[Output Only] The status of resource policy creation.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CREATION_TIMESTAMP_FIELD_NUMBER |
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
GROUP_PLACEMENT_POLICY_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
INSTANCE_SCHEDULE_POLICY_FIELD_NUMBER |
static int |
KIND_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
REGION_FIELD_NUMBER |
static int |
RESOURCE_STATUS_FIELD_NUMBER |
static int |
SELF_LINK_FIELD_NUMBER |
static int |
SNAPSHOT_SCHEDULE_POLICY_FIELD_NUMBER |
static int |
STATUS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
com.google.protobuf.ByteString |
getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
|
static ResourcePolicy |
getDefaultInstance() |
ResourcePolicy |
getDefaultInstanceForType() |
String |
getDescription()
optional string description = 422937596; |
com.google.protobuf.ByteString |
getDescriptionBytes()
optional string description = 422937596; |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
ResourcePolicyGroupPlacementPolicy |
getGroupPlacementPolicy()
Resource policy for instances for placement configuration.
|
ResourcePolicyGroupPlacementPolicyOrBuilder |
getGroupPlacementPolicyOrBuilder()
Resource policy for instances for placement configuration.
|
long |
getId()
[Output Only] The unique identifier for the resource.
|
ResourcePolicyInstanceSchedulePolicy |
getInstanceSchedulePolicy()
Resource policy for scheduling instance operations.
|
ResourcePolicyInstanceSchedulePolicyOrBuilder |
getInstanceSchedulePolicyOrBuilder()
Resource policy for scheduling instance operations.
|
String |
getKind()
[Output Only] Type of the resource.
|
com.google.protobuf.ByteString |
getKindBytes()
[Output Only] Type of the resource.
|
String |
getName()
The name of the resource, provided by the client when initially creating the resource.
|
com.google.protobuf.ByteString |
getNameBytes()
The name of the resource, provided by the client when initially creating the resource.
|
com.google.protobuf.Parser<ResourcePolicy> |
getParserForType() |
String |
getRegion()
optional string region = 138946292; |
com.google.protobuf.ByteString |
getRegionBytes()
optional string region = 138946292; |
ResourcePolicyResourceStatus |
getResourceStatus()
[Output Only] The system status of the resource policy.
|
ResourcePolicyResourceStatusOrBuilder |
getResourceStatusOrBuilder()
[Output Only] The system status of the resource policy.
|
String |
getSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
|
com.google.protobuf.ByteString |
getSelfLinkBytes()
[Output Only] Server-defined fully-qualified URL for this resource.
|
int |
getSerializedSize() |
ResourcePolicySnapshotSchedulePolicy |
getSnapshotSchedulePolicy()
Resource policy for persistent disks for creating snapshots.
|
ResourcePolicySnapshotSchedulePolicyOrBuilder |
getSnapshotSchedulePolicyOrBuilder()
Resource policy for persistent disks for creating snapshots.
|
String |
getStatus()
[Output Only] The status of resource policy creation.
|
com.google.protobuf.ByteString |
getStatusBytes()
[Output Only] The status of resource policy creation.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
boolean |
hasDescription()
optional string description = 422937596; |
boolean |
hasGroupPlacementPolicy()
Resource policy for instances for placement configuration.
|
int |
hashCode() |
boolean |
hasId()
[Output Only] The unique identifier for the resource.
|
boolean |
hasInstanceSchedulePolicy()
Resource policy for scheduling instance operations.
|
boolean |
hasKind()
[Output Only] Type of the resource.
|
boolean |
hasName()
The name of the resource, provided by the client when initially creating the resource.
|
boolean |
hasRegion()
optional string region = 138946292; |
boolean |
hasResourceStatus()
[Output Only] The system status of the resource policy.
|
boolean |
hasSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
|
boolean |
hasSnapshotSchedulePolicy()
Resource policy for persistent disks for creating snapshots.
|
boolean |
hasStatus()
[Output Only] The status of resource policy creation.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ResourcePolicy.Builder |
newBuilder() |
static ResourcePolicy.Builder |
newBuilder(ResourcePolicy prototype) |
ResourcePolicy.Builder |
newBuilderForType() |
protected ResourcePolicy.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ResourcePolicy |
parseDelimitedFrom(InputStream input) |
static ResourcePolicy |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourcePolicy |
parseFrom(byte[] data) |
static ResourcePolicy |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourcePolicy |
parseFrom(ByteBuffer data) |
static ResourcePolicy |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourcePolicy |
parseFrom(com.google.protobuf.ByteString data) |
static ResourcePolicy |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourcePolicy |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ResourcePolicy |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourcePolicy |
parseFrom(InputStream input) |
static ResourcePolicy |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ResourcePolicy> |
parser() |
ResourcePolicy.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int CREATION_TIMESTAMP_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int GROUP_PLACEMENT_POLICY_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
public static final int INSTANCE_SCHEDULE_POLICY_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int REGION_FIELD_NUMBER
public static final int RESOURCE_STATUS_FIELD_NUMBER
public static final int SELF_LINK_FIELD_NUMBER
public static final int SNAPSHOT_SCHEDULE_POLICY_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;hasCreationTimestamp in interface ResourcePolicyOrBuilderpublic String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;getCreationTimestamp in interface ResourcePolicyOrBuilderpublic com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;getCreationTimestampBytes in interface ResourcePolicyOrBuilderpublic boolean hasDescription()
optional string description = 422937596;hasDescription in interface ResourcePolicyOrBuilderpublic String getDescription()
optional string description = 422937596;getDescription in interface ResourcePolicyOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
optional string description = 422937596;getDescriptionBytes in interface ResourcePolicyOrBuilderpublic boolean hasGroupPlacementPolicy()
Resource policy for instances for placement configuration.
optional .google.cloud.compute.v1.ResourcePolicyGroupPlacementPolicy group_placement_policy = 10931596;
hasGroupPlacementPolicy in interface ResourcePolicyOrBuilderpublic ResourcePolicyGroupPlacementPolicy getGroupPlacementPolicy()
Resource policy for instances for placement configuration.
optional .google.cloud.compute.v1.ResourcePolicyGroupPlacementPolicy group_placement_policy = 10931596;
getGroupPlacementPolicy in interface ResourcePolicyOrBuilderpublic ResourcePolicyGroupPlacementPolicyOrBuilder getGroupPlacementPolicyOrBuilder()
Resource policy for instances for placement configuration.
optional .google.cloud.compute.v1.ResourcePolicyGroupPlacementPolicy group_placement_policy = 10931596;
getGroupPlacementPolicyOrBuilder in interface ResourcePolicyOrBuilderpublic boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;hasId in interface ResourcePolicyOrBuilderpublic long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;getId in interface ResourcePolicyOrBuilderpublic boolean hasInstanceSchedulePolicy()
Resource policy for scheduling instance operations.
optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicy instance_schedule_policy = 344877104;
hasInstanceSchedulePolicy in interface ResourcePolicyOrBuilderpublic ResourcePolicyInstanceSchedulePolicy getInstanceSchedulePolicy()
Resource policy for scheduling instance operations.
optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicy instance_schedule_policy = 344877104;
getInstanceSchedulePolicy in interface ResourcePolicyOrBuilderpublic ResourcePolicyInstanceSchedulePolicyOrBuilder getInstanceSchedulePolicyOrBuilder()
Resource policy for scheduling instance operations.
optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicy instance_schedule_policy = 344877104;
getInstanceSchedulePolicyOrBuilder in interface ResourcePolicyOrBuilderpublic boolean hasKind()
[Output Only] Type of the resource. Always compute#resource_policies for resource policies.
optional string kind = 3292052;hasKind in interface ResourcePolicyOrBuilderpublic String getKind()
[Output Only] Type of the resource. Always compute#resource_policies for resource policies.
optional string kind = 3292052;getKind in interface ResourcePolicyOrBuilderpublic com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#resource_policies for resource policies.
optional string kind = 3292052;getKindBytes in interface ResourcePolicyOrBuilderpublic boolean hasName()
The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;hasName in interface ResourcePolicyOrBuilderpublic String getName()
The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;getName in interface ResourcePolicyOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;getNameBytes in interface ResourcePolicyOrBuilderpublic boolean hasRegion()
optional string region = 138946292;hasRegion in interface ResourcePolicyOrBuilderpublic String getRegion()
optional string region = 138946292;getRegion in interface ResourcePolicyOrBuilderpublic com.google.protobuf.ByteString getRegionBytes()
optional string region = 138946292;getRegionBytes in interface ResourcePolicyOrBuilderpublic boolean hasResourceStatus()
[Output Only] The system status of the resource policy.
optional .google.cloud.compute.v1.ResourcePolicyResourceStatus resource_status = 249429315;
hasResourceStatus in interface ResourcePolicyOrBuilderpublic ResourcePolicyResourceStatus getResourceStatus()
[Output Only] The system status of the resource policy.
optional .google.cloud.compute.v1.ResourcePolicyResourceStatus resource_status = 249429315;
getResourceStatus in interface ResourcePolicyOrBuilderpublic ResourcePolicyResourceStatusOrBuilder getResourceStatusOrBuilder()
[Output Only] The system status of the resource policy.
optional .google.cloud.compute.v1.ResourcePolicyResourceStatus resource_status = 249429315;
getResourceStatusOrBuilder in interface ResourcePolicyOrBuilderpublic boolean hasSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;hasSelfLink in interface ResourcePolicyOrBuilderpublic String getSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;getSelfLink in interface ResourcePolicyOrBuilderpublic com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;getSelfLinkBytes in interface ResourcePolicyOrBuilderpublic boolean hasSnapshotSchedulePolicy()
Resource policy for persistent disks for creating snapshots.
optional .google.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicy snapshot_schedule_policy = 218131295;
hasSnapshotSchedulePolicy in interface ResourcePolicyOrBuilderpublic ResourcePolicySnapshotSchedulePolicy getSnapshotSchedulePolicy()
Resource policy for persistent disks for creating snapshots.
optional .google.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicy snapshot_schedule_policy = 218131295;
getSnapshotSchedulePolicy in interface ResourcePolicyOrBuilderpublic ResourcePolicySnapshotSchedulePolicyOrBuilder getSnapshotSchedulePolicyOrBuilder()
Resource policy for persistent disks for creating snapshots.
optional .google.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicy snapshot_schedule_policy = 218131295;
getSnapshotSchedulePolicyOrBuilder in interface ResourcePolicyOrBuilderpublic boolean hasStatus()
[Output Only] The status of resource policy creation. Check the Status enum for the list of possible values.
optional string status = 181260274;hasStatus in interface ResourcePolicyOrBuilderpublic String getStatus()
[Output Only] The status of resource policy creation. Check the Status enum for the list of possible values.
optional string status = 181260274;getStatus in interface ResourcePolicyOrBuilderpublic com.google.protobuf.ByteString getStatusBytes()
[Output Only] The status of resource policy creation. Check the Status enum for the list of possible values.
optional string status = 181260274;getStatusBytes in interface ResourcePolicyOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ResourcePolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourcePolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourcePolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourcePolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourcePolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourcePolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourcePolicy parseFrom(InputStream input) throws IOException
IOExceptionpublic static ResourcePolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ResourcePolicy parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ResourcePolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ResourcePolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ResourcePolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ResourcePolicy.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ResourcePolicy.Builder newBuilder()
public static ResourcePolicy.Builder newBuilder(ResourcePolicy prototype)
public ResourcePolicy.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ResourcePolicy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ResourcePolicy getDefaultInstance()
public static com.google.protobuf.Parser<ResourcePolicy> parser()
public com.google.protobuf.Parser<ResourcePolicy> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ResourcePolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.