public static interface Allocation.ShareSettingsOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getProjects(int index)
public abstract String getProjects(int index)A List of Project names to specify consumer projects for this shared-reservation. This is only valid when share_type's value is SPECIFIC_PROJECTS.
repeated string projects = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The projects at the given index. |
getProjectsBytes(int index)
public abstract ByteString getProjectsBytes(int index)A List of Project names to specify consumer projects for this shared-reservation. This is only valid when share_type's value is SPECIFIC_PROJECTS.
repeated string projects = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the projects at the given index. |
getProjectsCount()
public abstract int getProjectsCount()A List of Project names to specify consumer projects for this shared-reservation. This is only valid when share_type's value is SPECIFIC_PROJECTS.
repeated string projects = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The count of projects. |
getProjectsList()
public abstract List<String> getProjectsList()A List of Project names to specify consumer projects for this shared-reservation. This is only valid when share_type's value is SPECIFIC_PROJECTS.
repeated string projects = 2;
| Returns | |
|---|---|
| Type | Description |
List<String> |
A list containing the projects. |
getShareType()
public abstract Allocation.ShareSettings.ShareType getShareType()Type of sharing for this shared-reservation
.google.cloud.capacityplanner.v1beta.Allocation.ShareSettings.ShareType share_type = 1;
| Returns | |
|---|---|
| Type | Description |
Allocation.ShareSettings.ShareType |
The shareType. |
getShareTypeValue()
public abstract int getShareTypeValue()Type of sharing for this shared-reservation
.google.cloud.capacityplanner.v1beta.Allocation.ShareSettings.ShareType share_type = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for shareType. |