Class InstanceGroupManagerResourcePolicies.Builder (1.91.0)
Version 1.91.0keyboard_arrow_down
public static final class InstanceGroupManagerResourcePolicies . Builder extends GeneratedMessageV3 . Builder<InstanceGroupManagerResourcePolicies . Builder > implements InstanceGroupManagerResourcePoliciesOrBuilder
Protobuf type google.cloud.compute.v1.InstanceGroupManagerResourcePolicies
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InstanceGroupManagerResourcePolicies . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public InstanceGroupManagerResourcePolicies build ()
buildPartial()
public InstanceGroupManagerResourcePolicies buildPartial ()
clear()
public InstanceGroupManagerResourcePolicies . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public InstanceGroupManagerResourcePolicies . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public InstanceGroupManagerResourcePolicies . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearWorkloadPolicy()
public InstanceGroupManagerResourcePolicies . Builder clearWorkloadPolicy ()
The URL of the workload policy that is specified for this managed
instance group.
It can be a full or partial URL. For example, the following are
all valid URLs to a workload policy:
- https://www.googleapis.com/compute/v1/projects/project/regions/region/resourcePolicies/resourcePolicy
- projects/project/regions/region/resourcePolicies/resourcePolicy
- regions/region/resourcePolicies/resourcePolicy
optional string workload_policy = 114721530;
clone()
public InstanceGroupManagerResourcePolicies . Builder clone ()
Overrides
getDefaultInstanceForType()
public InstanceGroupManagerResourcePolicies getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getWorkloadPolicy()
public String getWorkloadPolicy ()
The URL of the workload policy that is specified for this managed
instance group.
It can be a full or partial URL. For example, the following are
all valid URLs to a workload policy:
- https://www.googleapis.com/compute/v1/projects/project/regions/region/resourcePolicies/resourcePolicy
- projects/project/regions/region/resourcePolicies/resourcePolicy
- regions/region/resourcePolicies/resourcePolicy
optional string workload_policy = 114721530;
Returns
Type
Description
String
The workloadPolicy.
getWorkloadPolicyBytes()
public ByteString getWorkloadPolicyBytes ()
The URL of the workload policy that is specified for this managed
instance group.
It can be a full or partial URL. For example, the following are
all valid URLs to a workload policy:
- https://www.googleapis.com/compute/v1/projects/project/regions/region/resourcePolicies/resourcePolicy
- projects/project/regions/region/resourcePolicies/resourcePolicy
- regions/region/resourcePolicies/resourcePolicy
optional string workload_policy = 114721530;
Returns
Type
Description
ByteString
The bytes for workloadPolicy.
hasWorkloadPolicy()
public boolean hasWorkloadPolicy ()
The URL of the workload policy that is specified for this managed
instance group.
It can be a full or partial URL. For example, the following are
all valid URLs to a workload policy:
- https://www.googleapis.com/compute/v1/projects/project/regions/region/resourcePolicies/resourcePolicy
- projects/project/regions/region/resourcePolicies/resourcePolicy
- regions/region/resourcePolicies/resourcePolicy
optional string workload_policy = 114721530;
Returns
Type
Description
boolean
Whether the workloadPolicy field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(InstanceGroupManagerResourcePolicies other)
public InstanceGroupManagerResourcePolicies . Builder mergeFrom ( InstanceGroupManagerResourcePolicies other )
public InstanceGroupManagerResourcePolicies . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public InstanceGroupManagerResourcePolicies . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InstanceGroupManagerResourcePolicies . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public InstanceGroupManagerResourcePolicies . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public InstanceGroupManagerResourcePolicies . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final InstanceGroupManagerResourcePolicies . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setWorkloadPolicy(String value)
public InstanceGroupManagerResourcePolicies . Builder setWorkloadPolicy ( String value )
The URL of the workload policy that is specified for this managed
instance group.
It can be a full or partial URL. For example, the following are
all valid URLs to a workload policy:
- https://www.googleapis.com/compute/v1/projects/project/regions/region/resourcePolicies/resourcePolicy
- projects/project/regions/region/resourcePolicies/resourcePolicy
- regions/region/resourcePolicies/resourcePolicy
optional string workload_policy = 114721530;
Parameter
Name
Description
value
String The workloadPolicy to set.
setWorkloadPolicyBytes(ByteString value)
public InstanceGroupManagerResourcePolicies . Builder setWorkloadPolicyBytes ( ByteString value )
The URL of the workload policy that is specified for this managed
instance group.
It can be a full or partial URL. For example, the following are
all valid URLs to a workload policy:
- https://www.googleapis.com/compute/v1/projects/project/regions/region/resourcePolicies/resourcePolicy
- projects/project/regions/region/resourcePolicies/resourcePolicy
- regions/region/resourcePolicies/resourcePolicy
optional string workload_policy = 114721530;
Parameter
Name
Description
value
ByteString The bytes for workloadPolicy to set.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-01-24 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-01-24 UTC."],[],[]]