Class FutureResourcesRecommendation (1.91.0)

public final class FutureResourcesRecommendation extends GeneratedMessageV3 implements FutureResourcesRecommendationOrBuilder

Recommendation for single resources specification, to be created in the future.

Protobuf type google.cloud.compute.v1.FutureResourcesRecommendation

Static Fields

END_TIME_FIELD_NUMBER

public static final int END_TIME_FIELD_NUMBER
Field Value
Type Description
int

LOCATION_FIELD_NUMBER

public static final int LOCATION_FIELD_NUMBER
Field Value
Type Description
int

OTHER_LOCATIONS_FIELD_NUMBER

public static final int OTHER_LOCATIONS_FIELD_NUMBER
Field Value
Type Description
int

RECOMMENDATION_ID_FIELD_NUMBER

public static final int RECOMMENDATION_ID_FIELD_NUMBER
Field Value
Type Description
int

RECOMMENDATION_TYPE_FIELD_NUMBER

public static final int RECOMMENDATION_TYPE_FIELD_NUMBER
Field Value
Type Description
int

START_TIME_FIELD_NUMBER

public static final int START_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static FutureResourcesRecommendation getDefaultInstance()
Returns
Type Description
FutureResourcesRecommendation

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static FutureResourcesRecommendation.Builder newBuilder()
Returns
Type Description
FutureResourcesRecommendation.Builder

newBuilder(FutureResourcesRecommendation prototype)

public static FutureResourcesRecommendation.Builder newBuilder(FutureResourcesRecommendation prototype)
Parameter
Name Description
prototype FutureResourcesRecommendation
Returns
Type Description
FutureResourcesRecommendation.Builder

parseDelimitedFrom(InputStream input)

public static FutureResourcesRecommendation parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FutureResourcesRecommendation
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FutureResourcesRecommendation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FutureResourcesRecommendation
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static FutureResourcesRecommendation parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
FutureResourcesRecommendation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FutureResourcesRecommendation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FutureResourcesRecommendation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FutureResourcesRecommendation parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
FutureResourcesRecommendation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FutureResourcesRecommendation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FutureResourcesRecommendation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FutureResourcesRecommendation parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
FutureResourcesRecommendation
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FutureResourcesRecommendation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FutureResourcesRecommendation
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static FutureResourcesRecommendation parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FutureResourcesRecommendation
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FutureResourcesRecommendation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FutureResourcesRecommendation
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static FutureResourcesRecommendation parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
FutureResourcesRecommendation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FutureResourcesRecommendation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FutureResourcesRecommendation
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<FutureResourcesRecommendation> parser()
Returns
Type Description
Parser<FutureResourcesRecommendation>

Methods

containsOtherLocations(String key)

public boolean containsOtherLocations(String key)

List of locations in the request scope that were not recommended. Keys of the map are zones, in format 'zones/'. The values are status information indicating the recommendation status.

map<string, .google.cloud.compute.v1.FutureResourcesRecommendationOtherLocation> other_locations = 179322095;

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public FutureResourcesRecommendation getDefaultInstanceForType()
Returns
Type Description
FutureResourcesRecommendation

getEndTime()

public String getEndTime()

optional string end_time = 114938801;

Returns
Type Description
String

The endTime.

getEndTimeBytes()

public ByteString getEndTimeBytes()

optional string end_time = 114938801;

Returns
Type Description
ByteString

The bytes for endTime.

getLocation()

public String getLocation()

The advised location for resource usage. When a zone, in format 'zones/'. If not set, it means that no location is recommended - see other_locations for details.

optional string location = 290430901;

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

The advised location for resource usage. When a zone, in format 'zones/'. If not set, it means that no location is recommended - see other_locations for details.

optional string location = 290430901;

Returns
Type Description
ByteString

The bytes for location.

getOtherLocations() (deprecated)

public Map<String,FutureResourcesRecommendationOtherLocation> getOtherLocations()
Returns
Type Description
Map<String,FutureResourcesRecommendationOtherLocation>

getOtherLocationsCount()

public int getOtherLocationsCount()

List of locations in the request scope that were not recommended. Keys of the map are zones, in format 'zones/'. The values are status information indicating the recommendation status.

map<string, .google.cloud.compute.v1.FutureResourcesRecommendationOtherLocation> other_locations = 179322095;

Returns
Type Description
int

getOtherLocationsMap()

public Map<String,FutureResourcesRecommendationOtherLocation> getOtherLocationsMap()

List of locations in the request scope that were not recommended. Keys of the map are zones, in format 'zones/'. The values are status information indicating the recommendation status.

map<string, .google.cloud.compute.v1.FutureResourcesRecommendationOtherLocation> other_locations = 179322095;

Returns
Type Description
Map<String,FutureResourcesRecommendationOtherLocation>

getOtherLocationsOrDefault(String key, FutureResourcesRecommendationOtherLocation defaultValue)

public FutureResourcesRecommendationOtherLocation getOtherLocationsOrDefault(String key, FutureResourcesRecommendationOtherLocation defaultValue)

List of locations in the request scope that were not recommended. Keys of the map are zones, in format 'zones/'. The values are status information indicating the recommendation status.

map<string, .google.cloud.compute.v1.FutureResourcesRecommendationOtherLocation> other_locations = 179322095;

Parameters
Name Description
key String
defaultValue FutureResourcesRecommendationOtherLocation
Returns
Type Description
FutureResourcesRecommendationOtherLocation

getOtherLocationsOrThrow(String key)

public FutureResourcesRecommendationOtherLocation getOtherLocationsOrThrow(String key)

List of locations in the request scope that were not recommended. Keys of the map are zones, in format 'zones/'. The values are status information indicating the recommendation status.

map<string, .google.cloud.compute.v1.FutureResourcesRecommendationOtherLocation> other_locations = 179322095;

Parameter
Name Description
key String
Returns
Type Description
FutureResourcesRecommendationOtherLocation

getParserForType()

public Parser<FutureResourcesRecommendation> getParserForType()
Returns
Type Description
Parser<FutureResourcesRecommendation>
Overrides

getRecommendationId()

public String getRecommendationId()

Unique id of the recommendation, a UUID string generated by the API.

optional string recommendation_id = 474540897;

Returns
Type Description
String

The recommendationId.

getRecommendationIdBytes()

public ByteString getRecommendationIdBytes()

Unique id of the recommendation, a UUID string generated by the API.

optional string recommendation_id = 474540897;

Returns
Type Description
ByteString

The bytes for recommendationId.

getRecommendationType()

public String getRecommendationType()

Type of recommendation. Currently only FUTURE_RESERVATION is supported. Check the RecommendationType enum for the list of possible values.

optional string recommendation_type = 230749184;

Returns
Type Description
String

The recommendationType.

getRecommendationTypeBytes()

public ByteString getRecommendationTypeBytes()

Type of recommendation. Currently only FUTURE_RESERVATION is supported. Check the RecommendationType enum for the list of possible values.

optional string recommendation_type = 230749184;

Returns
Type Description
ByteString

The bytes for recommendationType.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStartTime()

public String getStartTime()

optional string start_time = 37467274;

Returns
Type Description
String

The startTime.

getStartTimeBytes()

public ByteString getStartTimeBytes()

optional string start_time = 37467274;

Returns
Type Description
ByteString

The bytes for startTime.

hasEndTime()

public boolean hasEndTime()

optional string end_time = 114938801;

Returns
Type Description
boolean

Whether the endTime field is set.

hasLocation()

public boolean hasLocation()

The advised location for resource usage. When a zone, in format 'zones/'. If not set, it means that no location is recommended - see other_locations for details.

optional string location = 290430901;

Returns
Type Description
boolean

Whether the location field is set.

hasRecommendationId()

public boolean hasRecommendationId()

Unique id of the recommendation, a UUID string generated by the API.

optional string recommendation_id = 474540897;

Returns
Type Description
boolean

Whether the recommendationId field is set.

hasRecommendationType()

public boolean hasRecommendationType()

Type of recommendation. Currently only FUTURE_RESERVATION is supported. Check the RecommendationType enum for the list of possible values.

optional string recommendation_type = 230749184;

Returns
Type Description
boolean

Whether the recommendationType field is set.

hasStartTime()

public boolean hasStartTime()

optional string start_time = 37467274;

Returns
Type Description
boolean

Whether the startTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public FutureResourcesRecommendation.Builder newBuilderForType()
Returns
Type Description
FutureResourcesRecommendation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FutureResourcesRecommendation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
FutureResourcesRecommendation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public FutureResourcesRecommendation.Builder toBuilder()
Returns
Type Description
FutureResourcesRecommendation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException