public static final class AllocationPolicy.InstancePolicyOrTemplate extends GeneratedMessageV3 implements AllocationPolicy.InstancePolicyOrTemplateOrBuilder
Either an InstancePolicy or an instance template.
Protobuf type google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate
Static Fields
INSTANCE_TEMPLATE_FIELD_NUMBER
public static final int INSTANCE_TEMPLATE_FIELD_NUMBER
Field Value
POLICY_FIELD_NUMBER
public static final int POLICY_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static AllocationPolicy.InstancePolicyOrTemplate getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static AllocationPolicy.InstancePolicyOrTemplate.Builder newBuilder()
Returns
newBuilder(AllocationPolicy.InstancePolicyOrTemplate prototype)
public static AllocationPolicy.InstancePolicyOrTemplate.Builder newBuilder(AllocationPolicy.InstancePolicyOrTemplate prototype)
Parameter
Returns
public static AllocationPolicy.InstancePolicyOrTemplate parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static AllocationPolicy.InstancePolicyOrTemplate parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static AllocationPolicy.InstancePolicyOrTemplate parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AllocationPolicy.InstancePolicyOrTemplate parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static AllocationPolicy.InstancePolicyOrTemplate parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AllocationPolicy.InstancePolicyOrTemplate parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AllocationPolicy.InstancePolicyOrTemplate parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static AllocationPolicy.InstancePolicyOrTemplate parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AllocationPolicy.InstancePolicyOrTemplate parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static AllocationPolicy.InstancePolicyOrTemplate parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static AllocationPolicy.InstancePolicyOrTemplate parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AllocationPolicy.InstancePolicyOrTemplate parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<AllocationPolicy.InstancePolicyOrTemplate> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public AllocationPolicy.InstancePolicyOrTemplate getDefaultInstanceForType()
Returns
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;
Returns
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;
Returns
Type |
Description |
ByteString |
The bytes for instanceTemplate.
|
getParserForType()
public Parser<AllocationPolicy.InstancePolicyOrTemplate> getParserForType()
Returns
Overrides
getPolicy()
public AllocationPolicy.InstancePolicy getPolicy()
InstancePolicy.
.google.cloud.batch.v1.AllocationPolicy.InstancePolicy policy = 1;
Returns
getPolicyOrBuilder()
public AllocationPolicy.InstancePolicyOrBuilder getPolicyOrBuilder()
InstancePolicy.
.google.cloud.batch.v1.AllocationPolicy.InstancePolicy policy = 1;
Returns
getPolicyTemplateCase()
public AllocationPolicy.InstancePolicyOrTemplate.PolicyTemplateCase getPolicyTemplateCase()
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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;
Returns
Type |
Description |
boolean |
Whether the instanceTemplate field is set.
|
hasPolicy()
public boolean hasPolicy()
InstancePolicy.
.google.cloud.batch.v1.AllocationPolicy.InstancePolicy policy = 1;
Returns
Type |
Description |
boolean |
Whether the policy field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public AllocationPolicy.InstancePolicyOrTemplate.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AllocationPolicy.InstancePolicyOrTemplate.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public AllocationPolicy.InstancePolicyOrTemplate.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions