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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<VmExtensionPolicy.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<VmExtensionPolicy.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<VmExtensionPolicy.Builder>
    • clear

      public VmExtensionPolicy.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<VmExtensionPolicy.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<VmExtensionPolicy.Builder>
    • getDefaultInstanceForType

      public VmExtensionPolicy getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public VmExtensionPolicy build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public VmExtensionPolicy buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public VmExtensionPolicy.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<VmExtensionPolicy.Builder>
    • mergeFrom

      public VmExtensionPolicy.Builder mergeFrom(VmExtensionPolicy other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasCreationTimestamp in interface VmExtensionPolicyOrBuilder
      Returns:
      Whether the creationTimestamp field is set.
    • getCreationTimestamp

      public String getCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      getCreationTimestamp in interface VmExtensionPolicyOrBuilder
      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:
      getCreationTimestampBytes in interface VmExtensionPolicyOrBuilder
      Returns:
      The bytes for creationTimestamp.
    • setCreationTimestamp

      public VmExtensionPolicy.Builder setCreationTimestamp(String value)
       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

      public VmExtensionPolicy.Builder clearCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Returns:
      This builder for chaining.
    • setCreationTimestampBytes

      public VmExtensionPolicy.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
       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:
      hasDescription in interface VmExtensionPolicyOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

      public String getDescription()
       An optional description of this resource.
       
      optional string description = 422937596;
      Specified by:
      getDescription in interface VmExtensionPolicyOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       An optional description of this resource.
       
      optional string description = 422937596;
      Specified by:
      getDescriptionBytes in interface VmExtensionPolicyOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public VmExtensionPolicy.Builder setDescription(String value)
       An optional description of this resource.
       
      optional string description = 422937596;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public VmExtensionPolicy.Builder clearDescription()
       An optional description of this resource.
       
      optional string description = 422937596;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public VmExtensionPolicy.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       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: VmExtensionPolicyOrBuilder
       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:
      getExtensionPoliciesCount in interface VmExtensionPolicyOrBuilder
    • containsExtensionPolicies

      public boolean containsExtensionPolicies(String key)
       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:
      containsExtensionPolicies in interface VmExtensionPolicyOrBuilder
    • getExtensionPolicies

      @Deprecated public Map<String,VmExtensionPolicyExtensionPolicy> getExtensionPolicies()
      Deprecated.
      Specified by:
      getExtensionPolicies in interface VmExtensionPolicyOrBuilder
    • getExtensionPoliciesMap

      public Map<String,VmExtensionPolicyExtensionPolicy> 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:
      getExtensionPoliciesMap in interface VmExtensionPolicyOrBuilder
    • 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:
      getExtensionPoliciesOrDefault in interface VmExtensionPolicyOrBuilder
    • getExtensionPoliciesOrThrow

      public VmExtensionPolicyExtensionPolicy getExtensionPoliciesOrThrow(String key)
       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:
      getExtensionPoliciesOrThrow in interface VmExtensionPolicyOrBuilder
    • clearExtensionPolicies

      public VmExtensionPolicy.Builder clearExtensionPolicies()
    • removeExtensionPolicies

      public VmExtensionPolicy.Builder removeExtensionPolicies(String key)
       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 public Map<String,VmExtensionPolicyExtensionPolicy> 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

      public VmExtensionPolicyExtensionPolicy.Builder putExtensionPoliciesBuilderIfAbsent(String key)
       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:
      hasGlobalResourceLink in interface VmExtensionPolicyOrBuilder
      Returns:
      Whether the globalResourceLink field is set.
    • getGlobalResourceLink

      public String 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:
      getGlobalResourceLink in interface VmExtensionPolicyOrBuilder
      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:
      getGlobalResourceLinkBytes in interface VmExtensionPolicyOrBuilder
      Returns:
      The bytes for globalResourceLink.
    • setGlobalResourceLink

      public VmExtensionPolicy.Builder setGlobalResourceLink(String value)
       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

      public VmExtensionPolicy.Builder 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

      public VmExtensionPolicy.Builder setGlobalResourceLinkBytes(com.google.protobuf.ByteString value)
       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:
      hasId in interface VmExtensionPolicyOrBuilder
      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:
      getId in interface VmExtensionPolicyOrBuilder
      Returns:
      The id.
    • setId

      public VmExtensionPolicy.Builder setId(long value)
       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

      public VmExtensionPolicy.Builder 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

      public List<VmExtensionPolicyInstanceSelector> 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:
      getInstanceSelectorsList in interface VmExtensionPolicyOrBuilder
    • 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:
      getInstanceSelectorsCount in interface VmExtensionPolicyOrBuilder
    • getInstanceSelectors

      public VmExtensionPolicyInstanceSelector getInstanceSelectors(int index)
       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:
      getInstanceSelectors in interface VmExtensionPolicyOrBuilder
    • 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

      public VmExtensionPolicy.Builder addInstanceSelectors(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(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

      public VmExtensionPolicy.Builder 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

      public VmExtensionPolicy.Builder removeInstanceSelectors(int index)
       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

      public VmExtensionPolicyInstanceSelector.Builder getInstanceSelectorsBuilder(int index)
       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

      public VmExtensionPolicyInstanceSelectorOrBuilder getInstanceSelectorsOrBuilder(int index)
       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:
      getInstanceSelectorsOrBuilder in interface VmExtensionPolicyOrBuilder
    • 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:
      getInstanceSelectorsOrBuilderList in interface VmExtensionPolicyOrBuilder
    • addInstanceSelectorsBuilder

      public VmExtensionPolicyInstanceSelector.Builder 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

      public VmExtensionPolicyInstanceSelector.Builder addInstanceSelectorsBuilder(int index)
       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

      public List<VmExtensionPolicyInstanceSelector.Builder> 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:
      hasKind in interface VmExtensionPolicyOrBuilder
      Returns:
      Whether the kind field is set.
    • getKind

      public String getKind()
       Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy.
       
      optional string kind = 3292052;
      Specified by:
      getKind in interface VmExtensionPolicyOrBuilder
      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:
      getKindBytes in interface VmExtensionPolicyOrBuilder
      Returns:
      The bytes for kind.
    • setKind

      public VmExtensionPolicy.Builder setKind(String value)
       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

      public VmExtensionPolicy.Builder clearKind()
       Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy.
       
      optional string kind = 3292052;
      Returns:
      This builder for chaining.
    • setKindBytes

      public VmExtensionPolicy.Builder setKindBytes(com.google.protobuf.ByteString value)
       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:
      hasManagedByGlobal in interface VmExtensionPolicyOrBuilder
      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:
      getManagedByGlobal in interface VmExtensionPolicyOrBuilder
      Returns:
      The managedByGlobal.
    • setManagedByGlobal

      public VmExtensionPolicy.Builder setManagedByGlobal(boolean value)
       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

      public VmExtensionPolicy.Builder 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:
      hasName in interface VmExtensionPolicyOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String 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:
      getName in interface VmExtensionPolicyOrBuilder
      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:
      getNameBytes in interface VmExtensionPolicyOrBuilder
      Returns:
      The bytes for name.
    • setName

      public VmExtensionPolicy.Builder setName(String value)
       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

      public VmExtensionPolicy.Builder 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

      public VmExtensionPolicy.Builder setNameBytes(com.google.protobuf.ByteString value)
       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:
      hasPriority in interface VmExtensionPolicyOrBuilder
      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:
      getPriority in interface VmExtensionPolicyOrBuilder
      Returns:
      The priority.
    • setPriority

      public VmExtensionPolicy.Builder setPriority(int value)
       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

      public VmExtensionPolicy.Builder 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:
      hasSelfLink in interface VmExtensionPolicyOrBuilder
      Returns:
      Whether the selfLink field is set.
    • getSelfLink

      public String getSelfLink()
       Output only. [Output Only] Server-defined fully-qualified URL for this resource.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLink in interface VmExtensionPolicyOrBuilder
      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:
      getSelfLinkBytes in interface VmExtensionPolicyOrBuilder
      Returns:
      The bytes for selfLink.
    • setSelfLink

      public VmExtensionPolicy.Builder setSelfLink(String value)
       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

      public VmExtensionPolicy.Builder clearSelfLink()
       Output only. [Output Only] Server-defined fully-qualified URL for this resource.
       
      optional string self_link = 456214797;
      Returns:
      This builder for chaining.
    • setSelfLinkBytes

      public VmExtensionPolicy.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
       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:
      hasSelfLinkWithId in interface VmExtensionPolicyOrBuilder
      Returns:
      Whether the selfLinkWithId field is set.
    • getSelfLinkWithId

      public String getSelfLinkWithId()
       Output only. [Output Only] Server-defined URL for this resource's resource id.
       
      optional string self_link_with_id = 44520962;
      Specified by:
      getSelfLinkWithId in interface VmExtensionPolicyOrBuilder
      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:
      getSelfLinkWithIdBytes in interface VmExtensionPolicyOrBuilder
      Returns:
      The bytes for selfLinkWithId.
    • setSelfLinkWithId

      public VmExtensionPolicy.Builder setSelfLinkWithId(String value)
       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

      public VmExtensionPolicy.Builder 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

      public VmExtensionPolicy.Builder setSelfLinkWithIdBytes(com.google.protobuf.ByteString value)
       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:
      hasState in interface VmExtensionPolicyOrBuilder
      Returns:
      Whether the state field is set.
    • getState

      public String 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:
      getState in interface VmExtensionPolicyOrBuilder
      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:
      getStateBytes in interface VmExtensionPolicyOrBuilder
      Returns:
      The bytes for state.
    • setState

      public VmExtensionPolicy.Builder setState(String value)
       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

      public VmExtensionPolicy.Builder 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

      public VmExtensionPolicy.Builder setStateBytes(com.google.protobuf.ByteString value)
       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:
      hasUpdateTimestamp in interface VmExtensionPolicyOrBuilder
      Returns:
      Whether the updateTimestamp field is set.
    • getUpdateTimestamp

      public String getUpdateTimestamp()
       Output only. [Output Only] Update timestamp inRFC3339
       text format.
       
      optional string update_timestamp = 120894752;
      Specified by:
      getUpdateTimestamp in interface VmExtensionPolicyOrBuilder
      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:
      getUpdateTimestampBytes in interface VmExtensionPolicyOrBuilder
      Returns:
      The bytes for updateTimestamp.
    • setUpdateTimestamp

      public VmExtensionPolicy.Builder setUpdateTimestamp(String value)
       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

      public VmExtensionPolicy.Builder clearUpdateTimestamp()
       Output only. [Output Only] Update timestamp inRFC3339
       text format.
       
      optional string update_timestamp = 120894752;
      Returns:
      This builder for chaining.
    • setUpdateTimestampBytes

      public VmExtensionPolicy.Builder setUpdateTimestampBytes(com.google.protobuf.ByteString value)
       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.