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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static FutureResourcesRecommendation.Builder newBuilder()
newBuilder(FutureResourcesRecommendation prototype)
public static FutureResourcesRecommendation.Builder newBuilder(FutureResourcesRecommendation prototype)
public static FutureResourcesRecommendation parseDelimitedFrom(InputStream input)
public static FutureResourcesRecommendation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static FutureResourcesRecommendation parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static FutureResourcesRecommendation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static FutureResourcesRecommendation parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static FutureResourcesRecommendation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static FutureResourcesRecommendation parseFrom(CodedInputStream input)
public static FutureResourcesRecommendation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static FutureResourcesRecommendation parseFrom(InputStream input)
public static FutureResourcesRecommendation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static FutureResourcesRecommendation parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static FutureResourcesRecommendation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<FutureResourcesRecommendation> parser()
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
|
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public FutureResourcesRecommendation getDefaultInstanceForType()
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()
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;
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;
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
|
getParserForType()
public Parser<FutureResourcesRecommendation> getParserForType()
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()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
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()
Overrides
newBuilderForType()
public FutureResourcesRecommendation.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected FutureResourcesRecommendation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
| Returns |
| Type |
Description |
Object |
|
Overrides
toBuilder()
public FutureResourcesRecommendation.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides