- 0.54.0 (latest)
- 0.53.0
- 0.52.0
- 0.51.0
- 0.49.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.2
- 0.2.2
- 0.1.1
public static final class AllocationPolicy.InstancePolicyOrTemplate.Builder extends GeneratedMessageV3.Builder<AllocationPolicy.InstancePolicyOrTemplate.Builder> implements AllocationPolicy.InstancePolicyOrTemplateOrBuilder
Either an InstancePolicy or an instance template.
Protobuf type google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AllocationPolicy.InstancePolicyOrTemplate.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AllocationPolicy.InstancePolicyOrTemplate.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
AllocationPolicy.InstancePolicyOrTemplate.Builder |
build()
public AllocationPolicy.InstancePolicyOrTemplate build()
Type | Description |
AllocationPolicy.InstancePolicyOrTemplate |
buildPartial()
public AllocationPolicy.InstancePolicyOrTemplate buildPartial()
Type | Description |
AllocationPolicy.InstancePolicyOrTemplate |
clear()
public AllocationPolicy.InstancePolicyOrTemplate.Builder clear()
Type | Description |
AllocationPolicy.InstancePolicyOrTemplate.Builder |
clearField(Descriptors.FieldDescriptor field)
public AllocationPolicy.InstancePolicyOrTemplate.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
AllocationPolicy.InstancePolicyOrTemplate.Builder |
clearInstanceTemplate()
public AllocationPolicy.InstancePolicyOrTemplate.Builder clearInstanceTemplate()
Name of an instance template used to create VMs. Named the field as 'instance_template' instead of 'template' to avoid c++ keyword conflict.
string instance_template = 2;
Type | Description |
AllocationPolicy.InstancePolicyOrTemplate.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public AllocationPolicy.InstancePolicyOrTemplate.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
AllocationPolicy.InstancePolicyOrTemplate.Builder |
clearPolicy()
public AllocationPolicy.InstancePolicyOrTemplate.Builder clearPolicy()
InstancePolicy.
.google.cloud.batch.v1.AllocationPolicy.InstancePolicy policy = 1;
Type | Description |
AllocationPolicy.InstancePolicyOrTemplate.Builder |
clearPolicyTemplate()
public AllocationPolicy.InstancePolicyOrTemplate.Builder clearPolicyTemplate()
Type | Description |
AllocationPolicy.InstancePolicyOrTemplate.Builder |
clone()
public AllocationPolicy.InstancePolicyOrTemplate.Builder clone()
Type | Description |
AllocationPolicy.InstancePolicyOrTemplate.Builder |
getDefaultInstanceForType()
public AllocationPolicy.InstancePolicyOrTemplate getDefaultInstanceForType()
Type | Description |
AllocationPolicy.InstancePolicyOrTemplate |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getInstanceTemplate()
public String getInstanceTemplate()
Name of an instance template used to create VMs. Named the field as 'instance_template' instead of 'template' to avoid c++ keyword conflict.
string instance_template = 2;
Type | Description |
String | The instanceTemplate. |
getInstanceTemplateBytes()
public ByteString getInstanceTemplateBytes()
Name of an instance template used to create VMs. Named the field as 'instance_template' instead of 'template' to avoid c++ keyword conflict.
string instance_template = 2;
Type | Description |
ByteString | The bytes for instanceTemplate. |
getPolicy()
public AllocationPolicy.InstancePolicy getPolicy()
InstancePolicy.
.google.cloud.batch.v1.AllocationPolicy.InstancePolicy policy = 1;
Type | Description |
AllocationPolicy.InstancePolicy | The policy. |
getPolicyBuilder()
public AllocationPolicy.InstancePolicy.Builder getPolicyBuilder()
InstancePolicy.
.google.cloud.batch.v1.AllocationPolicy.InstancePolicy policy = 1;
Type | Description |
AllocationPolicy.InstancePolicy.Builder |
getPolicyOrBuilder()
public AllocationPolicy.InstancePolicyOrBuilder getPolicyOrBuilder()
InstancePolicy.
.google.cloud.batch.v1.AllocationPolicy.InstancePolicy policy = 1;
Type | Description |
AllocationPolicy.InstancePolicyOrBuilder |
getPolicyTemplateCase()
public AllocationPolicy.InstancePolicyOrTemplate.PolicyTemplateCase getPolicyTemplateCase()
Type | Description |
AllocationPolicy.InstancePolicyOrTemplate.PolicyTemplateCase |
hasInstanceTemplate()
public boolean hasInstanceTemplate()
Name of an instance template used to create VMs. Named the field as 'instance_template' instead of 'template' to avoid c++ keyword conflict.
string instance_template = 2;
Type | Description |
boolean | Whether the instanceTemplate field is set. |
hasPolicy()
public boolean hasPolicy()
InstancePolicy.
.google.cloud.batch.v1.AllocationPolicy.InstancePolicy policy = 1;
Type | Description |
boolean | Whether the policy field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(AllocationPolicy.InstancePolicyOrTemplate other)
public AllocationPolicy.InstancePolicyOrTemplate.Builder mergeFrom(AllocationPolicy.InstancePolicyOrTemplate other)
Name | Description |
other | AllocationPolicy.InstancePolicyOrTemplate |
Type | Description |
AllocationPolicy.InstancePolicyOrTemplate.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AllocationPolicy.InstancePolicyOrTemplate.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AllocationPolicy.InstancePolicyOrTemplate.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public AllocationPolicy.InstancePolicyOrTemplate.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
AllocationPolicy.InstancePolicyOrTemplate.Builder |
mergePolicy(AllocationPolicy.InstancePolicy value)
public AllocationPolicy.InstancePolicyOrTemplate.Builder mergePolicy(AllocationPolicy.InstancePolicy value)
InstancePolicy.
.google.cloud.batch.v1.AllocationPolicy.InstancePolicy policy = 1;
Name | Description |
value | AllocationPolicy.InstancePolicy |
Type | Description |
AllocationPolicy.InstancePolicyOrTemplate.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AllocationPolicy.InstancePolicyOrTemplate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
AllocationPolicy.InstancePolicyOrTemplate.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public AllocationPolicy.InstancePolicyOrTemplate.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
AllocationPolicy.InstancePolicyOrTemplate.Builder |
setInstanceTemplate(String value)
public AllocationPolicy.InstancePolicyOrTemplate.Builder setInstanceTemplate(String value)
Name of an instance template used to create VMs. Named the field as 'instance_template' instead of 'template' to avoid c++ keyword conflict.
string instance_template = 2;
Name | Description |
value | String The instanceTemplate to set. |
Type | Description |
AllocationPolicy.InstancePolicyOrTemplate.Builder | This builder for chaining. |
setInstanceTemplateBytes(ByteString value)
public AllocationPolicy.InstancePolicyOrTemplate.Builder setInstanceTemplateBytes(ByteString value)
Name of an instance template used to create VMs. Named the field as 'instance_template' instead of 'template' to avoid c++ keyword conflict.
string instance_template = 2;
Name | Description |
value | ByteString The bytes for instanceTemplate to set. |
Type | Description |
AllocationPolicy.InstancePolicyOrTemplate.Builder | This builder for chaining. |
setPolicy(AllocationPolicy.InstancePolicy value)
public AllocationPolicy.InstancePolicyOrTemplate.Builder setPolicy(AllocationPolicy.InstancePolicy value)
InstancePolicy.
.google.cloud.batch.v1.AllocationPolicy.InstancePolicy policy = 1;
Name | Description |
value | AllocationPolicy.InstancePolicy |
Type | Description |
AllocationPolicy.InstancePolicyOrTemplate.Builder |
setPolicy(AllocationPolicy.InstancePolicy.Builder builderForValue)
public AllocationPolicy.InstancePolicyOrTemplate.Builder setPolicy(AllocationPolicy.InstancePolicy.Builder builderForValue)
InstancePolicy.
.google.cloud.batch.v1.AllocationPolicy.InstancePolicy policy = 1;
Name | Description |
builderForValue | AllocationPolicy.InstancePolicy.Builder |
Type | Description |
AllocationPolicy.InstancePolicyOrTemplate.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AllocationPolicy.InstancePolicyOrTemplate.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
AllocationPolicy.InstancePolicyOrTemplate.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final AllocationPolicy.InstancePolicyOrTemplate.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
AllocationPolicy.InstancePolicyOrTemplate.Builder |