public static final class InstanceSplit.Builder extends GeneratedMessage.Builder<InstanceSplit.Builder> implements InstanceSplitOrBuilderHolds a single instance split entry for the Worker. Allocations can be done to a specific Revision name, or pointing to the latest Ready Revision.
Protobuf type google.cloud.run.v2.InstanceSplit
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > InstanceSplit.BuilderImplements
InstanceSplitOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public InstanceSplit build()| Returns | |
|---|---|
| Type | Description |
InstanceSplit |
|
buildPartial()
public InstanceSplit buildPartial()| Returns | |
|---|---|
| Type | Description |
InstanceSplit |
|
clear()
public InstanceSplit.Builder clear()| Returns | |
|---|---|
| Type | Description |
InstanceSplit.Builder |
|
clearPercent()
public InstanceSplit.Builder clearPercent()Specifies percent of the instance split to this Revision. This defaults to zero if unspecified.
int32 percent = 3;
| Returns | |
|---|---|
| Type | Description |
InstanceSplit.Builder |
This builder for chaining. |
clearRevision()
public InstanceSplit.Builder clearRevision()Revision to which to assign this portion of instances, if split allocation is by revision.
string revision = 2 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
InstanceSplit.Builder |
This builder for chaining. |
clearType()
public InstanceSplit.Builder clearType()The allocation type for this instance split.
.google.cloud.run.v2.InstanceSplitAllocationType type = 1;
| Returns | |
|---|---|
| Type | Description |
InstanceSplit.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public InstanceSplit getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
InstanceSplit |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getPercent()
public int getPercent()Specifies percent of the instance split to this Revision. This defaults to zero if unspecified.
int32 percent = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The percent. |
getRevision()
public String getRevision()Revision to which to assign this portion of instances, if split allocation is by revision.
string revision = 2 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The revision. |
getRevisionBytes()
public ByteString getRevisionBytes()Revision to which to assign this portion of instances, if split allocation is by revision.
string revision = 2 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for revision. |
getType()
public InstanceSplitAllocationType getType()The allocation type for this instance split.
.google.cloud.run.v2.InstanceSplitAllocationType type = 1;
| Returns | |
|---|---|
| Type | Description |
InstanceSplitAllocationType |
The type. |
getTypeValue()
public int getTypeValue()The allocation type for this instance split.
.google.cloud.run.v2.InstanceSplitAllocationType type = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for type. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(InstanceSplit other)
public InstanceSplit.Builder mergeFrom(InstanceSplit other)| Parameter | |
|---|---|
| Name | Description |
other |
InstanceSplit |
| Returns | |
|---|---|
| Type | Description |
InstanceSplit.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public InstanceSplit.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
InstanceSplit.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public InstanceSplit.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
InstanceSplit.Builder |
|
setPercent(int value)
public InstanceSplit.Builder setPercent(int value)Specifies percent of the instance split to this Revision. This defaults to zero if unspecified.
int32 percent = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe percent to set. |
| Returns | |
|---|---|
| Type | Description |
InstanceSplit.Builder |
This builder for chaining. |
setRevision(String value)
public InstanceSplit.Builder setRevision(String value)Revision to which to assign this portion of instances, if split allocation is by revision.
string revision = 2 [(.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe revision to set. |
| Returns | |
|---|---|
| Type | Description |
InstanceSplit.Builder |
This builder for chaining. |
setRevisionBytes(ByteString value)
public InstanceSplit.Builder setRevisionBytes(ByteString value)Revision to which to assign this portion of instances, if split allocation is by revision.
string revision = 2 [(.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for revision to set. |
| Returns | |
|---|---|
| Type | Description |
InstanceSplit.Builder |
This builder for chaining. |
setType(InstanceSplitAllocationType value)
public InstanceSplit.Builder setType(InstanceSplitAllocationType value)The allocation type for this instance split.
.google.cloud.run.v2.InstanceSplitAllocationType type = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
InstanceSplitAllocationTypeThe type to set. |
| Returns | |
|---|---|
| Type | Description |
InstanceSplit.Builder |
This builder for chaining. |
setTypeValue(int value)
public InstanceSplit.Builder setTypeValue(int value)The allocation type for this instance split.
.google.cloud.run.v2.InstanceSplitAllocationType type = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
InstanceSplit.Builder |
This builder for chaining. |