Package com.google.cloud.compute.v1
Class VmExtensionPolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VmExtensionPolicy.Builder>
com.google.cloud.compute.v1.VmExtensionPolicy.Builder
- All Implemented Interfaces:
VmExtensionPolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- VmExtensionPolicy
public static final class VmExtensionPolicy.Builder
extends com.google.protobuf.GeneratedMessage.Builder<VmExtensionPolicy.Builder>
implements VmExtensionPolicyOrBuilder
Represents a VM extension policy.Protobuf type
google.cloud.compute.v1.VmExtensionPolicy-
Method Summary
Modifier and TypeMethodDescriptionaddAllInstanceSelectors(Iterable<? extends VmExtensionPolicyInstanceSelector> values) Optional.addInstanceSelectors(int index, VmExtensionPolicyInstanceSelector value) Optional.addInstanceSelectors(int index, VmExtensionPolicyInstanceSelector.Builder builderForValue) Optional.Optional.addInstanceSelectors(VmExtensionPolicyInstanceSelector.Builder builderForValue) Optional.Optional.addInstanceSelectorsBuilder(int index) Optional.build()clear()Output only.An optional description of this resource.Optional.clearId()Output only.Optional.Output only.Optional.Name of the resource.Optional.Output only.Output only.Optional.Output only.booleanRequired.Output only.com.google.protobuf.ByteStringOutput only.An optional description of this resource.com.google.protobuf.ByteStringAn optional description of this resource.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.intRequired.Required.getExtensionPoliciesOrDefault(String key, VmExtensionPolicyExtensionPolicy defaultValue) Required.Required.Optional.com.google.protobuf.ByteStringOptional.longgetId()Output only.getInstanceSelectors(int index) Optional.getInstanceSelectorsBuilder(int index) Optional.Optional.intOptional.Optional.getInstanceSelectorsOrBuilder(int index) Optional.List<? extends VmExtensionPolicyInstanceSelectorOrBuilder>Optional.getKind()Output only.com.google.protobuf.ByteStringOutput only.booleanOptional.Deprecated.getName()Name of the resource.com.google.protobuf.ByteStringName of the resource.intOptional.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.getState()Optional.com.google.protobuf.ByteStringOptional.Output only.com.google.protobuf.ByteStringOutput only.booleanOutput only.booleanAn optional description of this resource.booleanOptional.booleanhasId()Output only.booleanhasKind()Output only.booleanOptional.booleanhasName()Name of the resource.booleanOptional.booleanOutput only.booleanOutput only.booleanhasState()Optional.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(VmExtensionPolicy other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Required.Required.Required.Required.removeInstanceSelectors(int index) Optional.setCreationTimestamp(String value) Output only.setCreationTimestampBytes(com.google.protobuf.ByteString value) Output only.setDescription(String value) An optional description of this resource.setDescriptionBytes(com.google.protobuf.ByteString value) An optional description of this resource.setGlobalResourceLink(String value) Optional.setGlobalResourceLinkBytes(com.google.protobuf.ByteString value) Optional.setId(long value) Output only.setInstanceSelectors(int index, VmExtensionPolicyInstanceSelector value) Optional.setInstanceSelectors(int index, VmExtensionPolicyInstanceSelector.Builder builderForValue) Optional.Output only.setKindBytes(com.google.protobuf.ByteString value) Output only.setManagedByGlobal(boolean value) Optional.Name of the resource.setNameBytes(com.google.protobuf.ByteString value) Name of the resource.setPriority(int value) Optional.setSelfLink(String value) Output only.setSelfLinkBytes(com.google.protobuf.ByteString value) Output only.setSelfLinkWithId(String value) Output only.setSelfLinkWithIdBytes(com.google.protobuf.ByteString value) Output only.Optional.setStateBytes(com.google.protobuf.ByteString value) Optional.setUpdateTimestamp(String value) Output only.setUpdateTimestampBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<VmExtensionPolicy.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<VmExtensionPolicy.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<VmExtensionPolicy.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<VmExtensionPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<VmExtensionPolicy.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VmExtensionPolicy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<VmExtensionPolicy.Builder>
-
mergeFrom
public VmExtensionPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VmExtensionPolicy.Builder>- Throws:
IOException
-
hasCreationTimestamp
public boolean hasCreationTimestamp()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
hasCreationTimestampin interfaceVmExtensionPolicyOrBuilder- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampin interfaceVmExtensionPolicyOrBuilder- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampBytesin interfaceVmExtensionPolicyOrBuilder- Returns:
- The bytes for creationTimestamp.
-
setCreationTimestamp
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Parameters:
value- The creationTimestamp to set.- Returns:
- This builder for chaining.
-
clearCreationTimestamp
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Returns:
- This builder for chaining.
-
setCreationTimestampBytes
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Parameters:
value- The bytes for creationTimestamp to set.- Returns:
- This builder for chaining.
-
hasDescription
public boolean hasDescription()An optional description of this resource.
optional string description = 422937596;- Specified by:
hasDescriptionin interfaceVmExtensionPolicyOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
An optional description of this resource.
optional string description = 422937596;- Specified by:
getDescriptionin interfaceVmExtensionPolicyOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()An optional description of this resource.
optional string description = 422937596;- Specified by:
getDescriptionBytesin interfaceVmExtensionPolicyOrBuilder- Returns:
- The bytes for description.
-
setDescription
An optional description of this resource.
optional string description = 422937596;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
An optional description of this resource.
optional string description = 422937596;- Returns:
- This builder for chaining.
-
setDescriptionBytes
An optional description of this resource.
optional string description = 422937596;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getExtensionPoliciesCount
public int getExtensionPoliciesCount()Description copied from interface:VmExtensionPolicyOrBuilderRequired. A map of extension names (for example, "ops-agent") to their corresponding policy configurations.
map<string, .google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> extension_policies = 227761488;- Specified by:
getExtensionPoliciesCountin interfaceVmExtensionPolicyOrBuilder
-
containsExtensionPolicies
Required. A map of extension names (for example, "ops-agent") to their corresponding policy configurations.
map<string, .google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> extension_policies = 227761488;- Specified by:
containsExtensionPoliciesin interfaceVmExtensionPolicyOrBuilder
-
getExtensionPolicies
Deprecated.UsegetExtensionPoliciesMap()instead.- Specified by:
getExtensionPoliciesin interfaceVmExtensionPolicyOrBuilder
-
getExtensionPoliciesMap
Required. A map of extension names (for example, "ops-agent") to their corresponding policy configurations.
map<string, .google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> extension_policies = 227761488;- Specified by:
getExtensionPoliciesMapin interfaceVmExtensionPolicyOrBuilder
-
getExtensionPoliciesOrDefault
public VmExtensionPolicyExtensionPolicy getExtensionPoliciesOrDefault(String key, VmExtensionPolicyExtensionPolicy defaultValue) Required. A map of extension names (for example, "ops-agent") to their corresponding policy configurations.
map<string, .google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> extension_policies = 227761488;- Specified by:
getExtensionPoliciesOrDefaultin interfaceVmExtensionPolicyOrBuilder
-
getExtensionPoliciesOrThrow
Required. A map of extension names (for example, "ops-agent") to their corresponding policy configurations.
map<string, .google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> extension_policies = 227761488;- Specified by:
getExtensionPoliciesOrThrowin interfaceVmExtensionPolicyOrBuilder
-
clearExtensionPolicies
-
removeExtensionPolicies
Required. A map of extension names (for example, "ops-agent") to their corresponding policy configurations.
map<string, .google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> extension_policies = 227761488; -
getMutableExtensionPolicies
Deprecated.Use alternate mutation accessors instead. -
putExtensionPolicies
public VmExtensionPolicy.Builder putExtensionPolicies(String key, VmExtensionPolicyExtensionPolicy value) Required. A map of extension names (for example, "ops-agent") to their corresponding policy configurations.
map<string, .google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> extension_policies = 227761488; -
putAllExtensionPolicies
public VmExtensionPolicy.Builder putAllExtensionPolicies(Map<String, VmExtensionPolicyExtensionPolicy> values) Required. A map of extension names (for example, "ops-agent") to their corresponding policy configurations.
map<string, .google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> extension_policies = 227761488; -
putExtensionPoliciesBuilderIfAbsent
Required. A map of extension names (for example, "ops-agent") to their corresponding policy configurations.
map<string, .google.cloud.compute.v1.VmExtensionPolicyExtensionPolicy> extension_policies = 227761488; -
hasGlobalResourceLink
public boolean hasGlobalResourceLink()Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if applicable.
optional string global_resource_link = 516569583;- Specified by:
hasGlobalResourceLinkin interfaceVmExtensionPolicyOrBuilder- Returns:
- Whether the globalResourceLink field is set.
-
getGlobalResourceLink
Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if applicable.
optional string global_resource_link = 516569583;- Specified by:
getGlobalResourceLinkin interfaceVmExtensionPolicyOrBuilder- Returns:
- The globalResourceLink.
-
getGlobalResourceLinkBytes
public com.google.protobuf.ByteString getGlobalResourceLinkBytes()Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if applicable.
optional string global_resource_link = 516569583;- Specified by:
getGlobalResourceLinkBytesin interfaceVmExtensionPolicyOrBuilder- Returns:
- The bytes for globalResourceLink.
-
setGlobalResourceLink
Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if applicable.
optional string global_resource_link = 516569583;- Parameters:
value- The globalResourceLink to set.- Returns:
- This builder for chaining.
-
clearGlobalResourceLink
Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if applicable.
optional string global_resource_link = 516569583;- Returns:
- This builder for chaining.
-
setGlobalResourceLinkBytes
Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if applicable.
optional string global_resource_link = 516569583;- Parameters:
value- The bytes for globalResourceLink to set.- Returns:
- This builder for chaining.
-
hasId
public boolean hasId()Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Specified by:
hasIdin interfaceVmExtensionPolicyOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Specified by:
getIdin interfaceVmExtensionPolicyOrBuilder- Returns:
- The id.
-
setId
Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Returns:
- This builder for chaining.
-
getInstanceSelectorsList
Optional. Selectors to target VMs for this policy. VMs are selected if they match *any* of the provided selectors (logical OR). If this list is empty, the policy applies to all VMs.
repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826;- Specified by:
getInstanceSelectorsListin interfaceVmExtensionPolicyOrBuilder
-
getInstanceSelectorsCount
public int getInstanceSelectorsCount()Optional. Selectors to target VMs for this policy. VMs are selected if they match *any* of the provided selectors (logical OR). If this list is empty, the policy applies to all VMs.
repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826;- Specified by:
getInstanceSelectorsCountin interfaceVmExtensionPolicyOrBuilder
-
getInstanceSelectors
Optional. Selectors to target VMs for this policy. VMs are selected if they match *any* of the provided selectors (logical OR). If this list is empty, the policy applies to all VMs.
repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826;- Specified by:
getInstanceSelectorsin interfaceVmExtensionPolicyOrBuilder
-
setInstanceSelectors
public VmExtensionPolicy.Builder setInstanceSelectors(int index, VmExtensionPolicyInstanceSelector value) Optional. Selectors to target VMs for this policy. VMs are selected if they match *any* of the provided selectors (logical OR). If this list is empty, the policy applies to all VMs.
repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; -
setInstanceSelectors
public VmExtensionPolicy.Builder setInstanceSelectors(int index, VmExtensionPolicyInstanceSelector.Builder builderForValue) Optional. Selectors to target VMs for this policy. VMs are selected if they match *any* of the provided selectors (logical OR). If this list is empty, the policy applies to all VMs.
repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; -
addInstanceSelectors
Optional. Selectors to target VMs for this policy. VMs are selected if they match *any* of the provided selectors (logical OR). If this list is empty, the policy applies to all VMs.
repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; -
addInstanceSelectors
public VmExtensionPolicy.Builder addInstanceSelectors(int index, VmExtensionPolicyInstanceSelector value) Optional. Selectors to target VMs for this policy. VMs are selected if they match *any* of the provided selectors (logical OR). If this list is empty, the policy applies to all VMs.
repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; -
addInstanceSelectors
public VmExtensionPolicy.Builder addInstanceSelectors(VmExtensionPolicyInstanceSelector.Builder builderForValue) Optional. Selectors to target VMs for this policy. VMs are selected if they match *any* of the provided selectors (logical OR). If this list is empty, the policy applies to all VMs.
repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; -
addInstanceSelectors
public VmExtensionPolicy.Builder addInstanceSelectors(int index, VmExtensionPolicyInstanceSelector.Builder builderForValue) Optional. Selectors to target VMs for this policy. VMs are selected if they match *any* of the provided selectors (logical OR). If this list is empty, the policy applies to all VMs.
repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; -
addAllInstanceSelectors
public VmExtensionPolicy.Builder addAllInstanceSelectors(Iterable<? extends VmExtensionPolicyInstanceSelector> values) Optional. Selectors to target VMs for this policy. VMs are selected if they match *any* of the provided selectors (logical OR). If this list is empty, the policy applies to all VMs.
repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; -
clearInstanceSelectors
Optional. Selectors to target VMs for this policy. VMs are selected if they match *any* of the provided selectors (logical OR). If this list is empty, the policy applies to all VMs.
repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; -
removeInstanceSelectors
Optional. Selectors to target VMs for this policy. VMs are selected if they match *any* of the provided selectors (logical OR). If this list is empty, the policy applies to all VMs.
repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; -
getInstanceSelectorsBuilder
Optional. Selectors to target VMs for this policy. VMs are selected if they match *any* of the provided selectors (logical OR). If this list is empty, the policy applies to all VMs.
repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; -
getInstanceSelectorsOrBuilder
Optional. Selectors to target VMs for this policy. VMs are selected if they match *any* of the provided selectors (logical OR). If this list is empty, the policy applies to all VMs.
repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826;- Specified by:
getInstanceSelectorsOrBuilderin interfaceVmExtensionPolicyOrBuilder
-
getInstanceSelectorsOrBuilderList
public List<? extends VmExtensionPolicyInstanceSelectorOrBuilder> getInstanceSelectorsOrBuilderList()Optional. Selectors to target VMs for this policy. VMs are selected if they match *any* of the provided selectors (logical OR). If this list is empty, the policy applies to all VMs.
repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826;- Specified by:
getInstanceSelectorsOrBuilderListin interfaceVmExtensionPolicyOrBuilder
-
addInstanceSelectorsBuilder
Optional. Selectors to target VMs for this policy. VMs are selected if they match *any* of the provided selectors (logical OR). If this list is empty, the policy applies to all VMs.
repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; -
addInstanceSelectorsBuilder
Optional. Selectors to target VMs for this policy. VMs are selected if they match *any* of the provided selectors (logical OR). If this list is empty, the policy applies to all VMs.
repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; -
getInstanceSelectorsBuilderList
Optional. Selectors to target VMs for this policy. VMs are selected if they match *any* of the provided selectors (logical OR). If this list is empty, the policy applies to all VMs.
repeated .google.cloud.compute.v1.VmExtensionPolicyInstanceSelector instance_selectors = 520298826; -
hasKind
public boolean hasKind()Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy.
optional string kind = 3292052;- Specified by:
hasKindin interfaceVmExtensionPolicyOrBuilder- Returns:
- Whether the kind field is set.
-
getKind
Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy.
optional string kind = 3292052;- Specified by:
getKindin interfaceVmExtensionPolicyOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy.
optional string kind = 3292052;- Specified by:
getKindBytesin interfaceVmExtensionPolicyOrBuilder- Returns:
- The bytes for kind.
-
setKind
Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy.
optional string kind = 3292052;- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy.
optional string kind = 3292052;- Returns:
- This builder for chaining.
-
setKindBytes
Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy.
optional string kind = 3292052;- Parameters:
value- The bytes for kind to set.- Returns:
- This builder for chaining.
-
hasManagedByGlobal
public boolean hasManagedByGlobal()Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy.
optional bool managed_by_global = 88605675;- Specified by:
hasManagedByGlobalin interfaceVmExtensionPolicyOrBuilder- Returns:
- Whether the managedByGlobal field is set.
-
getManagedByGlobal
public boolean getManagedByGlobal()Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy.
optional bool managed_by_global = 88605675;- Specified by:
getManagedByGlobalin interfaceVmExtensionPolicyOrBuilder- Returns:
- The managedByGlobal.
-
setManagedByGlobal
Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy.
optional bool managed_by_global = 88605675;- Parameters:
value- The managedByGlobal to set.- Returns:
- This builder for chaining.
-
clearManagedByGlobal
Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy.
optional bool managed_by_global = 88605675;- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. 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;- Specified by:
hasNamein interfaceVmExtensionPolicyOrBuilder- Returns:
- Whether the name field is set.
-
getName
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. 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;- Specified by:
getNamein interfaceVmExtensionPolicyOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. 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;- Specified by:
getNameBytesin interfaceVmExtensionPolicyOrBuilder- Returns:
- The bytes for name.
-
setName
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. 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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. 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;- Returns:
- This builder for chaining.
-
setNameBytes
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. 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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasPriority
public boolean hasPriority()Optional. Priority of this policy. Used to resolve conflicts when multiple policies apply to the same extension. The policy priority is an integer from 0 to 65535, inclusive. Lower integers indicate higher priorities. If you do not specify a priority when creating a rule, it is assigned a priority of 1000. If priorities are equal, the policy with the most recent creation timestamp takes precedence.
optional int32 priority = 445151652;- Specified by:
hasPriorityin interfaceVmExtensionPolicyOrBuilder- Returns:
- Whether the priority field is set.
-
getPriority
public int getPriority()Optional. Priority of this policy. Used to resolve conflicts when multiple policies apply to the same extension. The policy priority is an integer from 0 to 65535, inclusive. Lower integers indicate higher priorities. If you do not specify a priority when creating a rule, it is assigned a priority of 1000. If priorities are equal, the policy with the most recent creation timestamp takes precedence.
optional int32 priority = 445151652;- Specified by:
getPriorityin interfaceVmExtensionPolicyOrBuilder- Returns:
- The priority.
-
setPriority
Optional. Priority of this policy. Used to resolve conflicts when multiple policies apply to the same extension. The policy priority is an integer from 0 to 65535, inclusive. Lower integers indicate higher priorities. If you do not specify a priority when creating a rule, it is assigned a priority of 1000. If priorities are equal, the policy with the most recent creation timestamp takes precedence.
optional int32 priority = 445151652;- Parameters:
value- The priority to set.- Returns:
- This builder for chaining.
-
clearPriority
Optional. Priority of this policy. Used to resolve conflicts when multiple policies apply to the same extension. The policy priority is an integer from 0 to 65535, inclusive. Lower integers indicate higher priorities. If you do not specify a priority when creating a rule, it is assigned a priority of 1000. If priorities are equal, the policy with the most recent creation timestamp takes precedence.
optional int32 priority = 445151652;- Returns:
- This builder for chaining.
-
hasSelfLink
public boolean hasSelfLink()Output only. [Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;- Specified by:
hasSelfLinkin interfaceVmExtensionPolicyOrBuilder- Returns:
- Whether the selfLink field is set.
-
getSelfLink
Output only. [Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;- Specified by:
getSelfLinkin interfaceVmExtensionPolicyOrBuilder- Returns:
- The selfLink.
-
getSelfLinkBytes
public com.google.protobuf.ByteString getSelfLinkBytes()Output only. [Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;- Specified by:
getSelfLinkBytesin interfaceVmExtensionPolicyOrBuilder- Returns:
- The bytes for selfLink.
-
setSelfLink
Output only. [Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;- Parameters:
value- The selfLink to set.- Returns:
- This builder for chaining.
-
clearSelfLink
Output only. [Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;- Returns:
- This builder for chaining.
-
setSelfLinkBytes
Output only. [Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;- Parameters:
value- The bytes for selfLink to set.- Returns:
- This builder for chaining.
-
hasSelfLinkWithId
public boolean hasSelfLinkWithId()Output only. [Output Only] Server-defined URL for this resource's resource id.
optional string self_link_with_id = 44520962;- Specified by:
hasSelfLinkWithIdin interfaceVmExtensionPolicyOrBuilder- Returns:
- Whether the selfLinkWithId field is set.
-
getSelfLinkWithId
Output only. [Output Only] Server-defined URL for this resource's resource id.
optional string self_link_with_id = 44520962;- Specified by:
getSelfLinkWithIdin interfaceVmExtensionPolicyOrBuilder- Returns:
- The selfLinkWithId.
-
getSelfLinkWithIdBytes
public com.google.protobuf.ByteString getSelfLinkWithIdBytes()Output only. [Output Only] Server-defined URL for this resource's resource id.
optional string self_link_with_id = 44520962;- Specified by:
getSelfLinkWithIdBytesin interfaceVmExtensionPolicyOrBuilder- Returns:
- The bytes for selfLinkWithId.
-
setSelfLinkWithId
Output only. [Output Only] Server-defined URL for this resource's resource id.
optional string self_link_with_id = 44520962;- Parameters:
value- The selfLinkWithId to set.- Returns:
- This builder for chaining.
-
clearSelfLinkWithId
Output only. [Output Only] Server-defined URL for this resource's resource id.
optional string self_link_with_id = 44520962;- Returns:
- This builder for chaining.
-
setSelfLinkWithIdBytes
Output only. [Output Only] Server-defined URL for this resource's resource id.
optional string self_link_with_id = 44520962;- Parameters:
value- The bytes for selfLinkWithId to set.- Returns:
- This builder for chaining.
-
hasState
public boolean hasState()Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING. Check the State enum for the list of possible values.
optional string state = 109757585;- Specified by:
hasStatein interfaceVmExtensionPolicyOrBuilder- Returns:
- Whether the state field is set.
-
getState
Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING. Check the State enum for the list of possible values.
optional string state = 109757585;- Specified by:
getStatein interfaceVmExtensionPolicyOrBuilder- Returns:
- The state.
-
getStateBytes
public com.google.protobuf.ByteString getStateBytes()Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING. Check the State enum for the list of possible values.
optional string state = 109757585;- Specified by:
getStateBytesin interfaceVmExtensionPolicyOrBuilder- Returns:
- The bytes for state.
-
setState
Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING. Check the State enum for the list of possible values.
optional string state = 109757585;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING. Check the State enum for the list of possible values.
optional string state = 109757585;- Returns:
- This builder for chaining.
-
setStateBytes
Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING. Check the State enum for the list of possible values.
optional string state = 109757585;- Parameters:
value- The bytes for state to set.- Returns:
- This builder for chaining.
-
hasUpdateTimestamp
public boolean hasUpdateTimestamp()Output only. [Output Only] Update timestamp inRFC3339 text format.
optional string update_timestamp = 120894752;- Specified by:
hasUpdateTimestampin interfaceVmExtensionPolicyOrBuilder- Returns:
- Whether the updateTimestamp field is set.
-
getUpdateTimestamp
Output only. [Output Only] Update timestamp inRFC3339 text format.
optional string update_timestamp = 120894752;- Specified by:
getUpdateTimestampin interfaceVmExtensionPolicyOrBuilder- Returns:
- The updateTimestamp.
-
getUpdateTimestampBytes
public com.google.protobuf.ByteString getUpdateTimestampBytes()Output only. [Output Only] Update timestamp inRFC3339 text format.
optional string update_timestamp = 120894752;- Specified by:
getUpdateTimestampBytesin interfaceVmExtensionPolicyOrBuilder- Returns:
- The bytes for updateTimestamp.
-
setUpdateTimestamp
Output only. [Output Only] Update timestamp inRFC3339 text format.
optional string update_timestamp = 120894752;- Parameters:
value- The updateTimestamp to set.- Returns:
- This builder for chaining.
-
clearUpdateTimestamp
Output only. [Output Only] Update timestamp inRFC3339 text format.
optional string update_timestamp = 120894752;- Returns:
- This builder for chaining.
-
setUpdateTimestampBytes
Output only. [Output Only] Update timestamp inRFC3339 text format.
optional string update_timestamp = 120894752;- Parameters:
value- The bytes for updateTimestamp to set.- Returns:
- This builder for chaining.
-