public static final class Allocation.ShareSettings extends GeneratedMessage implements Allocation.ShareSettingsOrBuilder
The share setting for reservation.
Protobuf type google.cloud.capacityplanner.v1beta.Allocation.ShareSettings
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
PROJECTS_FIELD_NUMBER
public static final int PROJECTS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SHARE_TYPE_FIELD_NUMBER
public static final int SHARE_TYPE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Allocation.ShareSettings getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Allocation.ShareSettings.Builder newBuilder()
newBuilder(Allocation.ShareSettings prototype)
public static Allocation.ShareSettings.Builder newBuilder(Allocation.ShareSettings prototype)
public static Allocation.ShareSettings parseDelimitedFrom(InputStream input)
public static Allocation.ShareSettings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Allocation.ShareSettings parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Allocation.ShareSettings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Allocation.ShareSettings parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Allocation.ShareSettings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Allocation.ShareSettings parseFrom(CodedInputStream input)
public static Allocation.ShareSettings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Allocation.ShareSettings parseFrom(InputStream input)
public static Allocation.ShareSettings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Allocation.ShareSettings parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Allocation.ShareSettings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Allocation.ShareSettings> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public Allocation.ShareSettings getDefaultInstanceForType()
getParserForType()
public Parser<Allocation.ShareSettings> getParserForType()
Overrides
getProjects(int index)
public 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 |
int
The index of the element to return.
|
| Returns |
| Type |
Description |
String |
The projects at the given index.
|
getProjectsBytes(int index)
public 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 |
int
The index of the value to return.
|
| Returns |
| Type |
Description |
ByteString |
The bytes of the projects at the given index.
|
getProjectsCount()
public 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 ProtocolStringList 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;
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getShareType()
public Allocation.ShareSettings.ShareType getShareType()
Type of sharing for this shared-reservation
.google.cloud.capacityplanner.v1beta.Allocation.ShareSettings.ShareType share_type = 1;
getShareTypeValue()
public 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.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Allocation.ShareSettings.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Allocation.ShareSettings.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Allocation.ShareSettings.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides