Capacity Planner API v1beta - Package cloud.google.com/go/capacityplanner/apiv1beta/capacityplannerpb (v0.3.0)

Constants

UsageService_QueryUsageHistories_FullMethodName, UsageService_QueryForecasts_FullMethodName, UsageService_QueryReservations_FullMethodName, UsageService_ExportUsageHistories_FullMethodName, UsageService_ExportForecasts_FullMethodName, UsageService_ExportReservationsUsage_FullMethodName

const (
	UsageService_QueryUsageHistories_FullMethodName     = "/google.cloud.capacityplanner.v1beta.UsageService/QueryUsageHistories"
	UsageService_QueryForecasts_FullMethodName          = "/google.cloud.capacityplanner.v1beta.UsageService/QueryForecasts"
	UsageService_QueryReservations_FullMethodName       = "/google.cloud.capacityplanner.v1beta.UsageService/QueryReservations"
	UsageService_ExportUsageHistories_FullMethodName    = "/google.cloud.capacityplanner.v1beta.UsageService/ExportUsageHistories"
	UsageService_ExportForecasts_FullMethodName         = "/google.cloud.capacityplanner.v1beta.UsageService/ExportForecasts"
	UsageService_ExportReservationsUsage_FullMethodName = "/google.cloud.capacityplanner.v1beta.UsageService/ExportReservationsUsage"
)

Variables

Allocation_Status_name, Allocation_Status_value

var (
	Allocation_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "INVALID",
		2: "CREATING",
		3: "READY",
		4: "DELETING",
		5: "UPDATING",
	}
	Allocation_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"INVALID":            1,
		"CREATING":           2,
		"READY":              3,
		"DELETING":           4,
		"UPDATING":           5,
	}
)

Enum value maps for Allocation_Status.

Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface_name, Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface_value

var (
	Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface_name = map[int32]string{
		0: "DISK_INTERFACE_UNSPECIFIED",
		1: "SCSI",
		2: "NVME",
		3: "NVDIMM",
		4: "ISCSI",
	}
	Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface_value = map[string]int32{
		"DISK_INTERFACE_UNSPECIFIED": 0,
		"SCSI":                       1,
		"NVME":                       2,
		"NVDIMM":                     3,
		"ISCSI":                      4,
	}
)

Enum value maps for Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface.

Allocation_ShareSettings_ShareType_name, Allocation_ShareSettings_ShareType_value

var (
	Allocation_ShareSettings_ShareType_name = map[int32]string{
		0: "SHARE_TYPE_UNSPECIFIED",
		1: "ORGANIZATION",
		2: "SPECIFIC_PROJECTS",
		3: "LOCAL",
		4: "DIRECT_PROJECTS_UNDER_SPECIFIC_FOLDERS",
	}
	Allocation_ShareSettings_ShareType_value = map[string]int32{
		"SHARE_TYPE_UNSPECIFIED":                 0,
		"ORGANIZATION":                           1,
		"SPECIFIC_PROJECTS":                      2,
		"LOCAL":                                  3,
		"DIRECT_PROJECTS_UNDER_SPECIFIC_FOLDERS": 4,
	}
)

Enum value maps for Allocation_ShareSettings_ShareType.

FutureReservation_Status_ProcurementStatus_name, FutureReservation_Status_ProcurementStatus_value

var (
	FutureReservation_Status_ProcurementStatus_name = map[int32]string{
		0:  "PROCUREMENT_STATUS_UNSPECIFIED",
		1:  "PENDING_APPROVAL",
		2:  "APPROVED",
		3:  "COMMITTED",
		4:  "DECLINED",
		5:  "CANCELLED",
		6:  "PROCURING",
		7:  "PROVISIONING",
		8:  "FULFILLED",
		9:  "FAILED",
		10: "FAILED_PARTIALLY_FULFILLED",
		11: "DRAFTING",
		12: "PENDING_AMENDMENT_APPROVAL",
	}
	FutureReservation_Status_ProcurementStatus_value = map[string]int32{
		"PROCUREMENT_STATUS_UNSPECIFIED": 0,
		"PENDING_APPROVAL":               1,
		"APPROVED":                       2,
		"COMMITTED":                      3,
		"DECLINED":                       4,
		"CANCELLED":                      5,
		"PROCURING":                      6,
		"PROVISIONING":                   7,
		"FULFILLED":                      8,
		"FAILED":                         9,
		"FAILED_PARTIALLY_FULFILLED":     10,
		"DRAFTING":                       11,
		"PENDING_AMENDMENT_APPROVAL":     12,
	}
)

Enum value maps for FutureReservation_Status_ProcurementStatus.

LocationLevel_name, LocationLevel_value

var (
	LocationLevel_name = map[int32]string{
		0: "LOCATION_LEVEL_UNSPECIFIED",
		1: "REGION",
		2: "ZONE",
		3: "GLOBAL",
		4: "METRO",
		5: "DUAL_REGION",
		6: "MULTI_REGION",
	}
	LocationLevel_value = map[string]int32{
		"LOCATION_LEVEL_UNSPECIFIED": 0,
		"REGION":                     1,
		"ZONE":                       2,
		"GLOBAL":                     3,
		"METRO":                      4,
		"DUAL_REGION":                5,
		"MULTI_REGION":               6,
	}
)

Enum value maps for LocationLevel.

Unit_name, Unit_value

var (
	Unit_name = map[int32]string{
		0:  "UNIT_UNSPECIFIED",
		1:  "UNIT_COUNT",
		2:  "KB",
		3:  "GB",
		4:  "TB",
		17: "MIB",
		5:  "GIB",
		6:  "TIB",
		7:  "QPS",
		8:  "MB",
		9:  "PIB",
		10: "TBPS",
		11: "GBPS_BITS",
		12: "GIB_BITS",
		13: "MBPS_BITS",
		14: "MBPS_BYTES",
		15: "TBPS_BITS",
		16: "TBPS_BYTES",
		18: "KOPS",
	}
	Unit_value = map[string]int32{
		"UNIT_UNSPECIFIED": 0,
		"UNIT_COUNT":       1,
		"KB":               2,
		"GB":               3,
		"TB":               4,
		"MIB":              17,
		"GIB":              5,
		"TIB":              6,
		"QPS":              7,
		"MB":               8,
		"PIB":              9,
		"TBPS":             10,
		"GBPS_BITS":        11,
		"GIB_BITS":         12,
		"MBPS_BITS":        13,
		"MBPS_BYTES":       14,
		"TBPS_BITS":        15,
		"TBPS_BYTES":       16,
		"KOPS":             18,
	}
)

Enum value maps for Unit.

ResourceContainer_Type_name, ResourceContainer_Type_value

var (
	ResourceContainer_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "PROJECT",
		2: "FOLDER",
		3: "ORG",
	}
	ResourceContainer_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"PROJECT":          1,
		"FOLDER":           2,
		"ORG":              3,
	}
)

Enum value maps for ResourceContainer_Type.

QueryReservationsRequest_ReservationType_name, QueryReservationsRequest_ReservationType_value

var (
	QueryReservationsRequest_ReservationType_name = map[int32]string{
		0: "RESERVATION_TYPE_UNSPECIFIED",
		1: "RESERVATION_TYPE_ALLOCATION",
		2: "RESERVATION_TYPE_FUTURE_RESERVATION",
		3: "RESERVATION_TYPE_ALL",
	}
	QueryReservationsRequest_ReservationType_value = map[string]int32{
		"RESERVATION_TYPE_UNSPECIFIED":        0,
		"RESERVATION_TYPE_ALLOCATION":         1,
		"RESERVATION_TYPE_FUTURE_RESERVATION": 2,
		"RESERVATION_TYPE_ALL":                3,
	}
)

Enum value maps for QueryReservationsRequest_ReservationType.

QueryReservationsRequest_ShareType_name, QueryReservationsRequest_ShareType_value

var (
	QueryReservationsRequest_ShareType_name = map[int32]string{
		0: "SHARE_TYPE_UNSPECIFIED",
		1: "SHARE_TYPE_LOCAL",
		2: "SHARE_TYPE_SPECIFIC_PROJECTS",
	}
	QueryReservationsRequest_ShareType_value = map[string]int32{
		"SHARE_TYPE_UNSPECIFIED":       0,
		"SHARE_TYPE_LOCAL":             1,
		"SHARE_TYPE_SPECIFIC_PROJECTS": 2,
	}
)

Enum value maps for QueryReservationsRequest_ShareType.

QueryReservationsRequest_OwnershipType_name, QueryReservationsRequest_OwnershipType_value

var (
	QueryReservationsRequest_OwnershipType_name = map[int32]string{
		0: "OWNERSHIP_TYPE_UNSPECIFIED",
		1: "OWNERSHIP_TYPE_OWNED",
		2: "OWNERSHIP_TYPE_SHARED_BY_OTHERS",
	}
	QueryReservationsRequest_OwnershipType_value = map[string]int32{
		"OWNERSHIP_TYPE_UNSPECIFIED":      0,
		"OWNERSHIP_TYPE_OWNED":            1,
		"OWNERSHIP_TYPE_SHARED_BY_OTHERS": 2,
	}
)

Enum value maps for QueryReservationsRequest_OwnershipType.

QueryReservationsRequest_ReservationDataLevel_name, QueryReservationsRequest_ReservationDataLevel_value

var (
	QueryReservationsRequest_ReservationDataLevel_name = map[int32]string{
		0: "RESERVATION_DATA_LEVEL_UNSPECIFIED",
		1: "RESERVATION_DATA_LEVEL_AGGREGATED",
		2: "RESERVATION_DATA_LEVEL_PER_RESERVATION",
	}
	QueryReservationsRequest_ReservationDataLevel_value = map[string]int32{
		"RESERVATION_DATA_LEVEL_UNSPECIFIED":     0,
		"RESERVATION_DATA_LEVEL_AGGREGATED":      1,
		"RESERVATION_DATA_LEVEL_PER_RESERVATION": 2,
	}
)

Enum value maps for QueryReservationsRequest_ReservationDataLevel.

Forecast_ForecastType_name, Forecast_ForecastType_value

var (
	Forecast_ForecastType_name = map[int32]string{
		0: "FORECAST_TYPE_UNSPECIFIED",
		1: "STATISTICAL",
		2: "STATISTICAL_WITH_BFCM",
		3: "YEARLY_SEASONALITY",
	}
	Forecast_ForecastType_value = map[string]int32{
		"FORECAST_TYPE_UNSPECIFIED": 0,
		"STATISTICAL":               1,
		"STATISTICAL_WITH_BFCM":     2,
		"YEARLY_SEASONALITY":        3,
	}
)

Enum value maps for Forecast_ForecastType.

Forecast_Bounds_name, Forecast_Bounds_value

var (
	Forecast_Bounds_name = map[int32]string{
		0: "BOUNDS_UNSPECIFIED",
		1: "LOWER_BOUND",
		2: "MEDIAN",
		3: "UPPER_BOUND",
	}
	Forecast_Bounds_value = map[string]int32{
		"BOUNDS_UNSPECIFIED": 0,
		"LOWER_BOUND":        1,
		"MEDIAN":             2,
		"UPPER_BOUND":        3,
	}
)

Enum value maps for Forecast_Bounds.

Forecast_PredictionInterval_name, Forecast_PredictionInterval_value

var (
	Forecast_PredictionInterval_name = map[int32]string{
		0: "PREDICTION_INTERVAL_UNSPECIFIED",
		1: "PREDICTION_INTERVAL_90",
		2: "PREDICTION_INTERVAL_50",
	}
	Forecast_PredictionInterval_value = map[string]int32{
		"PREDICTION_INTERVAL_UNSPECIFIED": 0,
		"PREDICTION_INTERVAL_90":          1,
		"PREDICTION_INTERVAL_50":          2,
	}
)

Enum value maps for Forecast_PredictionInterval.

UsageHistory_AggregationMethod_name, UsageHistory_AggregationMethod_value

var (
	UsageHistory_AggregationMethod_name = map[int32]string{
		0: "AGGREGATION_METHOD_UNSPECIFIED",
		1: "MEDIAN",
		2: "PEAK",
		3: "P50",
		4: "P75",
		5: "P99",
	}
	UsageHistory_AggregationMethod_value = map[string]int32{
		"AGGREGATION_METHOD_UNSPECIFIED": 0,
		"MEDIAN":                         1,
		"PEAK":                           2,
		"P50":                            3,
		"P75":                            4,
		"P99":                            5,
	}
)

Enum value maps for UsageHistory_AggregationMethod.

TimeSeries_LocationType_name, TimeSeries_LocationType_value

var (
	TimeSeries_LocationType_name = map[int32]string{
		0: "LOCATION_TYPE_UNSPECIFIED",
		1: "REGIONAL",
		2: "ZONAL",
	}
	TimeSeries_LocationType_value = map[string]int32{
		"LOCATION_TYPE_UNSPECIFIED": 0,
		"REGIONAL":                  1,
		"ZONAL":                     2,
	}
)

Enum value maps for TimeSeries_LocationType.

ExportReservationsUsageRequest_ShareType_name, ExportReservationsUsageRequest_ShareType_value

var (
	ExportReservationsUsageRequest_ShareType_name = map[int32]string{
		0: "SHARE_TYPE_UNSPECIFIED",
		1: "SHARE_TYPE_LOCAL",
		2: "SHARE_TYPE_SPECIFIC_PROJECTS",
	}
	ExportReservationsUsageRequest_ShareType_value = map[string]int32{
		"SHARE_TYPE_UNSPECIFIED":       0,
		"SHARE_TYPE_LOCAL":             1,
		"SHARE_TYPE_SPECIFIC_PROJECTS": 2,
	}
)

Enum value maps for ExportReservationsUsageRequest_ShareType.

BigQueryDestination_PartitionKey_name, BigQueryDestination_PartitionKey_value

var (
	BigQueryDestination_PartitionKey_name = map[int32]string{
		0: "PARTITION_KEY_UNSPECIFIED",
		1: "REQUEST_TIME",
	}
	BigQueryDestination_PartitionKey_value = map[string]int32{
		"PARTITION_KEY_UNSPECIFIED": 0,
		"REQUEST_TIME":              1,
	}
)

Enum value maps for BigQueryDestination_PartitionKey.

BigQueryDestination_WriteDisposition_name, BigQueryDestination_WriteDisposition_value

var (
	BigQueryDestination_WriteDisposition_name = map[int32]string{
		0: "WRITE_DISPOSITION_UNSPECIFIED",
		1: "WRITE_APPEND",
		2: "WRITE_TRUNCATE",
		3: "WRITE_EMPTY",
	}
	BigQueryDestination_WriteDisposition_value = map[string]int32{
		"WRITE_DISPOSITION_UNSPECIFIED": 0,
		"WRITE_APPEND":                  1,
		"WRITE_TRUNCATE":                2,
		"WRITE_EMPTY":                   3,
	}
)

Enum value maps for BigQueryDestination_WriteDisposition.

BigQueryDestination_CreateDisposition_name, BigQueryDestination_CreateDisposition_value

var (
	BigQueryDestination_CreateDisposition_name = map[int32]string{
		0: "CREATE_DISPOSITION_UNSPECIFIED",
		1: "CREATE_IF_NEEDED",
		2: "CREATE_NEVER",
	}
	BigQueryDestination_CreateDisposition_value = map[string]int32{
		"CREATE_DISPOSITION_UNSPECIFIED": 0,
		"CREATE_IF_NEEDED":               1,
		"CREATE_NEVER":                   2,
	}
)

Enum value maps for BigQueryDestination_CreateDisposition.

File_google_cloud_capacityplanner_v1beta_allocation_proto

var File_google_cloud_capacityplanner_v1beta_allocation_proto protoreflect.FileDescriptor

File_google_cloud_capacityplanner_v1beta_future_reservation_proto

var File_google_cloud_capacityplanner_v1beta_future_reservation_proto protoreflect.FileDescriptor

File_google_cloud_capacityplanner_v1beta_location_proto

var File_google_cloud_capacityplanner_v1beta_location_proto protoreflect.FileDescriptor

File_google_cloud_capacityplanner_v1beta_resource_proto

var File_google_cloud_capacityplanner_v1beta_resource_proto protoreflect.FileDescriptor

File_google_cloud_capacityplanner_v1beta_usage_service_proto

var File_google_cloud_capacityplanner_v1beta_usage_service_proto protoreflect.FileDescriptor

UsageService_ServiceDesc

var UsageService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "google.cloud.capacityplanner.v1beta.UsageService",
	HandlerType: (*UsageServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "QueryUsageHistories",
			Handler:    _UsageService_QueryUsageHistories_Handler,
		},
		{
			MethodName: "QueryForecasts",
			Handler:    _UsageService_QueryForecasts_Handler,
		},
		{
			MethodName: "QueryReservations",
			Handler:    _UsageService_QueryReservations_Handler,
		},
		{
			MethodName: "ExportUsageHistories",
			Handler:    _UsageService_ExportUsageHistories_Handler,
		},
		{
			MethodName: "ExportForecasts",
			Handler:    _UsageService_ExportForecasts_Handler,
		},
		{
			MethodName: "ExportReservationsUsage",
			Handler:    _UsageService_ExportReservationsUsage_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "google/cloud/capacityplanner/v1beta/usage_service.proto",
}

UsageService_ServiceDesc is the grpc.ServiceDesc for UsageService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterUsageServiceServer

func RegisterUsageServiceServer(s grpc.ServiceRegistrar, srv UsageServiceServer)

Allocation

type Allocation struct {

	// The type of the reservation which can only be for a specific SKU for now.
	//
	// Types that are valid to be assigned to Type:
	//
	//	*Allocation_SpecificAllocation
	Type isAllocation_Type `protobuf_oneof:"type"`
	// The unique identifier for the resource. This identifier is
	// defined by the server.
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The creation timestamp for this allocation.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Zone in which the reservation resides.
	Zone string `protobuf:"bytes,3,opt,name=zone,proto3" json:"zone,omitempty"`
	// A description while creating reservation.
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// The reservation resource name.
	Allocation     string `protobuf:"bytes,5,opt,name=allocation,proto3" json:"allocation,omitempty"`
	OwnerProjectId string `protobuf:"bytes,10,opt,name=owner_project_id,json=ownerProjectId,proto3" json:"owner_project_id,omitempty"`
	// The status of the reservation.
	Status Allocation_Status `protobuf:"varint,7,opt,name=status,proto3,enum=google.cloud.capacityplanner.v1beta.Allocation_Status" json:"status,omitempty"`
	// Specify share-settings to create a shared reservation.
	ShareSettings *Allocation_ShareSettings `protobuf:"bytes,8,opt,name=share_settings,json=shareSettings,proto3" json:"share_settings,omitempty"`
	// Absolute time in future when the reservation will be
	// auto-deleted by Compute Engine.
	AutoDeleteTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=auto_delete_time,json=autoDeleteTime,proto3" json:"auto_delete_time,omitempty"`
	// contains filtered or unexported fields
}

Repesents Allocation which is part of aggregated reservations data response of "QueryReservations".

func (*Allocation) Descriptor

func (*Allocation) Descriptor() ([]byte, []int)

Deprecated: Use Allocation.ProtoReflect.Descriptor instead.

func (*Allocation) GetAllocation

func (x *Allocation) GetAllocation() string

func (*Allocation) GetAutoDeleteTime

func (x *Allocation) GetAutoDeleteTime() *timestamppb.Timestamp

func (*Allocation) GetCreateTime

func (x *Allocation) GetCreateTime() *timestamppb.Timestamp

func (*Allocation) GetDescription

func (x *Allocation) GetDescription() string

func (*Allocation) GetId

func (x *Allocation) GetId() int64

func (*Allocation) GetOwnerProjectId

func (x *Allocation) GetOwnerProjectId() string

func (*Allocation) GetShareSettings

func (x *Allocation) GetShareSettings() *Allocation_ShareSettings

func (*Allocation) GetSpecificAllocation

func (x *Allocation) GetSpecificAllocation() *Allocation_SpecificSKUAllocation

func (*Allocation) GetStatus

func (x *Allocation) GetStatus() Allocation_Status

func (*Allocation) GetType

func (x *Allocation) GetType() isAllocation_Type

func (*Allocation) GetZone

func (x *Allocation) GetZone() string

func (*Allocation) ProtoMessage

func (*Allocation) ProtoMessage()

func (*Allocation) ProtoReflect

func (x *Allocation) ProtoReflect() protoreflect.Message

func (*Allocation) Reset

func (x *Allocation) Reset()

func (*Allocation) String

func (x *Allocation) String() string

Allocation_ShareSettings

type Allocation_ShareSettings struct {

	// Type of sharing for this shared-reservation
	ShareType Allocation_ShareSettings_ShareType `protobuf:"varint,1,opt,name=share_type,json=shareType,proto3,enum=google.cloud.capacityplanner.v1beta.Allocation_ShareSettings_ShareType" json:"share_type,omitempty"`
	// 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.
	Projects []string `protobuf:"bytes,2,rep,name=projects,proto3" json:"projects,omitempty"`
	// contains filtered or unexported fields
}

The share setting for reservation.

func (*Allocation_ShareSettings) Descriptor

func (*Allocation_ShareSettings) Descriptor() ([]byte, []int)

Deprecated: Use Allocation_ShareSettings.ProtoReflect.Descriptor instead.

func (*Allocation_ShareSettings) GetProjects

func (x *Allocation_ShareSettings) GetProjects() []string

func (*Allocation_ShareSettings) GetShareType

func (*Allocation_ShareSettings) ProtoMessage

func (*Allocation_ShareSettings) ProtoMessage()

func (*Allocation_ShareSettings) ProtoReflect

func (x *Allocation_ShareSettings) ProtoReflect() protoreflect.Message

func (*Allocation_ShareSettings) Reset

func (x *Allocation_ShareSettings) Reset()

func (*Allocation_ShareSettings) String

func (x *Allocation_ShareSettings) String() string

Allocation_ShareSettings_ShareType

type Allocation_ShareSettings_ShareType int32

Possible scope in which the reservation can be shared. More granularity can be added in future.

Allocation_ShareSettings_SHARE_TYPE_UNSPECIFIED, Allocation_ShareSettings_ORGANIZATION, Allocation_ShareSettings_SPECIFIC_PROJECTS, Allocation_ShareSettings_LOCAL, Allocation_ShareSettings_DIRECT_PROJECTS_UNDER_SPECIFIC_FOLDERS

const (
	// Default value. This value is unused.
	Allocation_ShareSettings_SHARE_TYPE_UNSPECIFIED Allocation_ShareSettings_ShareType = 0
	// Shared-reservation is open to entire Organization
	Allocation_ShareSettings_ORGANIZATION Allocation_ShareSettings_ShareType = 1
	// Shared-reservation is open to specific projects
	Allocation_ShareSettings_SPECIFIC_PROJECTS Allocation_ShareSettings_ShareType = 2
	// Default value.
	Allocation_ShareSettings_LOCAL Allocation_ShareSettings_ShareType = 3
	// Shared-reservation is open to direct child projects of specific
	// folders.
	Allocation_ShareSettings_DIRECT_PROJECTS_UNDER_SPECIFIC_FOLDERS Allocation_ShareSettings_ShareType = 4
)

func (Allocation_ShareSettings_ShareType) Descriptor

func (Allocation_ShareSettings_ShareType) Enum

func (Allocation_ShareSettings_ShareType) EnumDescriptor

func (Allocation_ShareSettings_ShareType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Allocation_ShareSettings_ShareType.Descriptor instead.

func (Allocation_ShareSettings_ShareType) Number

func (Allocation_ShareSettings_ShareType) String

func (Allocation_ShareSettings_ShareType) Type

Allocation_SpecificAllocation

type Allocation_SpecificAllocation struct {
	// Reservation for instances with specific machine shapes.
	SpecificAllocation *Allocation_SpecificSKUAllocation `protobuf:"bytes,6,opt,name=specific_allocation,json=specificAllocation,proto3,oneof"`
}

Allocation_SpecificSKUAllocation

type Allocation_SpecificSKUAllocation struct {

	// The instance properties for the reservation.
	InstanceProperties *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties `protobuf:"bytes,1,opt,name=instance_properties,json=instanceProperties,proto3" json:"instance_properties,omitempty"`
	// Specifies the number of resources that are allocated.
	Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// Indicates how many instances are in use.
	UsedCount int64 `protobuf:"varint,3,opt,name=used_count,json=usedCount,proto3" json:"used_count,omitempty"`
	// Indicates how many instances are actually usable currently.
	AssuredCount int64 `protobuf:"varint,4,opt,name=assured_count,json=assuredCount,proto3" json:"assured_count,omitempty"`
	// contains filtered or unexported fields
}

This reservation type allows to pre allocate specific instance configuration.

func (*Allocation_SpecificSKUAllocation) Descriptor

func (*Allocation_SpecificSKUAllocation) Descriptor() ([]byte, []int)

Deprecated: Use Allocation_SpecificSKUAllocation.ProtoReflect.Descriptor instead.

func (*Allocation_SpecificSKUAllocation) GetAssuredCount

func (x *Allocation_SpecificSKUAllocation) GetAssuredCount() int64

func (*Allocation_SpecificSKUAllocation) GetCount

func (*Allocation_SpecificSKUAllocation) GetInstanceProperties

func (*Allocation_SpecificSKUAllocation) GetUsedCount

func (x *Allocation_SpecificSKUAllocation) GetUsedCount() int64

func (*Allocation_SpecificSKUAllocation) ProtoMessage

func (*Allocation_SpecificSKUAllocation) ProtoMessage()

func (*Allocation_SpecificSKUAllocation) ProtoReflect

func (*Allocation_SpecificSKUAllocation) Reset

func (*Allocation_SpecificSKUAllocation) String

Allocation_SpecificSKUAllocation_AllocatedInstanceProperties

type Allocation_SpecificSKUAllocation_AllocatedInstanceProperties struct {

	// Specifies type of machine (name only) which has fixed number of vCPUs
	// and fixed amount of memory. This also includes specifying custom
	// machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern.
	MachineType string `protobuf:"bytes,1,opt,name=machine_type,json=machineType,proto3" json:"machine_type,omitempty"`
	// Specifies accelerator type and count.
	GuestAccelerator []*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig `protobuf:"bytes,2,rep,name=guest_accelerator,json=guestAccelerator,proto3" json:"guest_accelerator,omitempty"`
	// Minimum cpu platform the reservation.
	MinCpuPlatform string `protobuf:"bytes,3,opt,name=min_cpu_platform,json=minCpuPlatform,proto3" json:"min_cpu_platform,omitempty"`
	// Specifies amount of local ssd to reserve with each instance. The type
	// of disk is local-ssd.
	LocalSsd []*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk `protobuf:"bytes,4,rep,name=local_ssd,json=localSsd,proto3" json:"local_ssd,omitempty"`
	// contains filtered or unexported fields
}

Properties of the SKU instances being reserved.

func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) Descriptor

Deprecated: Use Allocation_SpecificSKUAllocation_AllocatedInstanceProperties.ProtoReflect.Descriptor instead.

func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) GetGuestAccelerator

func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) GetLocalSsd

func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) GetMachineType

func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) GetMinCpuPlatform

func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) ProtoMessage

func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) ProtoReflect

func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) Reset

func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) String

Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig

type Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig struct {

	// Accelerator name.
	// See https://cloud.google.com/compute/docs/gpus/#introduction for a
	// full list of accelerator types.
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// The number of the guest accelerator cards exposed to this instance.
	Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

A specification of the type and number of accelerator cards attached to the instance.

func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig) Descriptor

Deprecated: Use Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig.ProtoReflect.Descriptor instead.

func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig) GetCount

func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig) GetType

func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig) ProtoMessage

func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig) ProtoReflect

func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig) Reset

func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig) String

Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk

type Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk struct {

	// Specifies the size of the disk in base-2 GB.
	DiskSizeGb int64 `protobuf:"varint,1,opt,name=disk_size_gb,json=diskSizeGb,proto3" json:"disk_size_gb,omitempty"`
	// Specifies the disk interface to use for attaching this disk, which is
	// either SCSI or NVME. The default is SCSI.
	DiskInterface Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface `protobuf:"varint,2,opt,name=disk_interface,json=diskInterface,proto3,enum=google.cloud.capacityplanner.v1beta.Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface" json:"disk_interface,omitempty"`
	// contains filtered or unexported fields
}

A specification of the interface and size of disk attached to the instance.

func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk) Descriptor

Deprecated: Use Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk.ProtoReflect.Descriptor instead.

func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk) GetDiskInterface

func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk) GetDiskSizeGb

func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk) ProtoMessage

func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk) ProtoReflect

func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk) Reset

func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk) String

Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface

type Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface int32

guest device interface options to use for the disk.

Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DISK_INTERFACE_UNSPECIFIED, Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_SCSI, Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_NVME, Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_NVDIMM, Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_ISCSI

const (
	// Default value. This value is unused.
	Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DISK_INTERFACE_UNSPECIFIED Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface = 0
	// SCSI disk interface.
	Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_SCSI Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface = 1
	// NVME disk interface.
	Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_NVME Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface = 2
	// NVDIMM disk interface.
	Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_NVDIMM Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface = 3
	// ISCSI disk interface.
	Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_ISCSI Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface = 4
)

func (Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface) Descriptor

func (Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface) Enum

func (Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface) EnumDescriptor

Deprecated: Use Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface.Descriptor instead.

func (Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface) Number

func (Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface) String

func (Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface) Type

Allocation_Status

type Allocation_Status int32

The status of the reservation.

Allocation_STATUS_UNSPECIFIED, Allocation_INVALID, Allocation_CREATING, Allocation_READY, Allocation_DELETING, Allocation_UPDATING

const (
	// Default value. This value is unused.
	Allocation_STATUS_UNSPECIFIED Allocation_Status = 0
	// Invalid Reservation
	Allocation_INVALID Allocation_Status = 1
	// Resources are being allocated for the reservation.
	Allocation_CREATING Allocation_Status = 2
	// Reservation has allocated all its resources.
	Allocation_READY Allocation_Status = 3
	// Reservation is currently being deleted.
	Allocation_DELETING Allocation_Status = 4
	// Reservation is currently being resized.
	Allocation_UPDATING Allocation_Status = 5
)

func (Allocation_Status) Descriptor

func (Allocation_Status) Enum

func (Allocation_Status) EnumDescriptor

func (Allocation_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use Allocation_Status.Descriptor instead.

func (Allocation_Status) Number

func (Allocation_Status) String

func (x Allocation_Status) String() string

func (Allocation_Status) Type

BigQueryDestination

type BigQueryDestination struct {

	// Required. The BigQuery dataset in format
	// "projects/{projectId}/datasets/{datasetId}", to which the snapshot result
	// should be exported. If this dataset does not exist, the export call returns
	// an INVALID_ARGUMENT error.
	Dataset string `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"`
	// Required. The BigQuery table to which the snapshot result should be
	// written.
	Table string `protobuf:"bytes,2,opt,name=table,proto3" json:"table,omitempty"`
	// Optional. The partition key for BigQuery partitioned table.
	PartitionKey BigQueryDestination_PartitionKey `protobuf:"varint,3,opt,name=partition_key,json=partitionKey,proto3,enum=google.cloud.capacityplanner.v1beta.BigQueryDestination_PartitionKey" json:"partition_key,omitempty"`
	// Optional. Specifies the action that occurs if the destination table or
	// partition already exists.
	WriteDisposition BigQueryDestination_WriteDisposition `protobuf:"varint,4,opt,name=write_disposition,json=writeDisposition,proto3,enum=google.cloud.capacityplanner.v1beta.BigQueryDestination_WriteDisposition" json:"write_disposition,omitempty"`
	// Optional. Specifies the action that occurs if the destination table does
	// not exist
	CreateDisposition BigQueryDestination_CreateDisposition `protobuf:"varint,5,opt,name=create_disposition,json=createDisposition,proto3,enum=google.cloud.capacityplanner.v1beta.BigQueryDestination_CreateDisposition" json:"create_disposition,omitempty"`
	// Optional. Specifies the Cloud Storage location.
	// Users can choose to provide a location for Cloud Storage bucket to store
	// the exported data. (as it is possible that some locations are restricted
	// via org policy for that project) Temporary Cloud Storage bucket creation is
	// an interim step for BigQuery upload. If no value is provided, the default
	// location used will be 'US'.
	GcsLocation string `protobuf:"bytes,6,opt,name=gcs_location,json=gcsLocation,proto3" json:"gcs_location,omitempty"`
	// contains filtered or unexported fields
}

A BigQuery destination for exporting assets to.

func (*BigQueryDestination) Descriptor

func (*BigQueryDestination) Descriptor() ([]byte, []int)

Deprecated: Use BigQueryDestination.ProtoReflect.Descriptor instead.

func (*BigQueryDestination) GetCreateDisposition

func (*BigQueryDestination) GetDataset

func (x *BigQueryDestination) GetDataset() string

func (*BigQueryDestination) GetGcsLocation

func (x *BigQueryDestination) GetGcsLocation() string

func (*BigQueryDestination) GetPartitionKey

func (*BigQueryDestination) GetTable

func (x *BigQueryDestination) GetTable() string

func (*BigQueryDestination) GetWriteDisposition

func (*BigQueryDestination) ProtoMessage

func (*BigQueryDestination) ProtoMessage()

func (*BigQueryDestination) ProtoReflect

func (x *BigQueryDestination) ProtoReflect() protoreflect.Message

func (*BigQueryDestination) Reset

func (x *BigQueryDestination) Reset()

func (*BigQueryDestination) String

func (x *BigQueryDestination) String() string

BigQueryDestination_CreateDisposition

type BigQueryDestination_CreateDisposition int32

Specifies the action that occurs if the destination table does not exist. By default, a new table will be created.

BigQueryDestination_CREATE_DISPOSITION_UNSPECIFIED, BigQueryDestination_CREATE_IF_NEEDED, BigQueryDestination_CREATE_NEVER

const (
	// Unspecified create disposition.
	BigQueryDestination_CREATE_DISPOSITION_UNSPECIFIED BigQueryDestination_CreateDisposition = 0
	// If the table does not exist, BigQuery creates the table.
	BigQueryDestination_CREATE_IF_NEEDED BigQueryDestination_CreateDisposition = 1
	// If the table does not exist, an error will be returned.
	BigQueryDestination_CREATE_NEVER BigQueryDestination_CreateDisposition = 2
)

func (BigQueryDestination_CreateDisposition) Descriptor

func (BigQueryDestination_CreateDisposition) Enum

func (BigQueryDestination_CreateDisposition) EnumDescriptor

func (BigQueryDestination_CreateDisposition) EnumDescriptor() ([]byte, []int)

Deprecated: Use BigQueryDestination_CreateDisposition.Descriptor instead.

func (BigQueryDestination_CreateDisposition) Number

func (BigQueryDestination_CreateDisposition) String

func (BigQueryDestination_CreateDisposition) Type

BigQueryDestination_PartitionKey

type BigQueryDestination_PartitionKey int32

This enum determines the partition key column for the BigQuery tables. Partitioning can improve query performance and reduce query cost by filtering partitions. Refer to https://cloud.google.com/bigquery/docs/partitioned-tables for details.

BigQueryDestination_PARTITION_KEY_UNSPECIFIED, BigQueryDestination_REQUEST_TIME

const (
	// Unspecified partition key. Tables won't be partitioned using this
	// option.
	BigQueryDestination_PARTITION_KEY_UNSPECIFIED BigQueryDestination_PartitionKey = 0
	// The time when the request is received. If specified as partition key,
	// the result table(s) is partitioned by the RequestTime column, an
	// additional timestamp column representing when the request was received.
	BigQueryDestination_REQUEST_TIME BigQueryDestination_PartitionKey = 1
)

func (BigQueryDestination_PartitionKey) Descriptor

func (BigQueryDestination_PartitionKey) Enum

func (BigQueryDestination_PartitionKey) EnumDescriptor

func (BigQueryDestination_PartitionKey) EnumDescriptor() ([]byte, []int)

Deprecated: Use BigQueryDestination_PartitionKey.Descriptor instead.

func (BigQueryDestination_PartitionKey) Number

func (BigQueryDestination_PartitionKey) String

func (BigQueryDestination_PartitionKey) Type

BigQueryDestination_WriteDisposition

type BigQueryDestination_WriteDisposition int32

Specifies the action that occurs if the destination table or partition already exists. By default, the data will be appended to the existing table.

BigQueryDestination_WRITE_DISPOSITION_UNSPECIFIED, BigQueryDestination_WRITE_APPEND, BigQueryDestination_WRITE_TRUNCATE, BigQueryDestination_WRITE_EMPTY

const (
	// Unspecified write disposition.
	BigQueryDestination_WRITE_DISPOSITION_UNSPECIFIED BigQueryDestination_WriteDisposition = 0
	// If the table or partition already exists, BigQuery appends the data to
	// the table or the latest partition.
	BigQueryDestination_WRITE_APPEND BigQueryDestination_WriteDisposition = 1
	// If the table or partition already exists, BigQuery overwrites the entire
	// table or all the partitions data.
	BigQueryDestination_WRITE_TRUNCATE BigQueryDestination_WriteDisposition = 2
	// If the table already exists and contains data, an error is returned.
	BigQueryDestination_WRITE_EMPTY BigQueryDestination_WriteDisposition = 3
)

func (BigQueryDestination_WriteDisposition) Descriptor

func (BigQueryDestination_WriteDisposition) Enum

func (BigQueryDestination_WriteDisposition) EnumDescriptor

func (BigQueryDestination_WriteDisposition) EnumDescriptor() ([]byte, []int)

Deprecated: Use BigQueryDestination_WriteDisposition.Descriptor instead.

func (BigQueryDestination_WriteDisposition) Number

func (BigQueryDestination_WriteDisposition) String

func (BigQueryDestination_WriteDisposition) Type

ExportForecastsRequest

type ExportForecastsRequest struct {

	// Required. The compute engine resource and location for the time series
	// values to return. The format is:
	//
	//	projects/{project}/locations/{location} or
	//	organizations/{organization}/locations/{location} or
	//	folders/{folder}/locations/{location}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The machine family to use to select the `Forecast` values to
	// return. Possible values include "n1", and "n2d".
	MachineFamily string `protobuf:"bytes,2,opt,name=machine_family,json=machineFamily,proto3" json:"machine_family,omitempty"`
	// Optional. The machine shape for the time series values to export.
	MachineShape *MachineShape `protobuf:"bytes,12,opt,name=machine_shape,json=machineShape,proto3" json:"machine_shape,omitempty"`
	// Optional. The disk_type for the `Forecast` values to return with request
	// persistent-disk resource_type.
	DiskType string `protobuf:"bytes,3,opt,name=disk_type,json=diskType,proto3" json:"disk_type,omitempty"`
	// Optional. The GPU type for the `Forecast` values to return. Sample values
	// are "nvidia-tesla-t4", and "nvidia-tesla-a100". See
	// https://cloud.google.com/compute/docs/gpus for a list. Empty gpu_type
	// will return results matching all GPUs.
	GpuType string `protobuf:"bytes,10,opt,name=gpu_type,json=gpuType,proto3" json:"gpu_type,omitempty"`
	// Optional. The TPU type for the `Forecast` values to return. Empty tpu_type
	// will return results matching all TPUs.
	TpuType string `protobuf:"bytes,11,opt,name=tpu_type,json=tpuType,proto3" json:"tpu_type,omitempty"`
	// Required. The resource for the `Forecast` values to return. Possible values
	// include "gce-vcpus", "gce-ram", "gce-local-ssd", "gce-persistent-disk",
	// "gce-gpu" and "gce-tpu".
	ResourceType string `protobuf:"bytes,4,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
	// Optional. The prediction interval to use to select the `Forecast` values to
	// return. PREDICTION_INTERVAL_UNSPECIFIED will return results matching all
	// prediction intervals.
	PredictionInterval Forecast_PredictionInterval `protobuf:"varint,5,opt,name=prediction_interval,json=predictionInterval,proto3,enum=google.cloud.capacityplanner.v1beta.Forecast_PredictionInterval" json:"prediction_interval,omitempty"`
	// Optional. Aggregation Method of the historical usage for which the forecast
	// is generated.
	AggregationMethod UsageHistory_AggregationMethod `protobuf:"varint,6,opt,name=aggregation_method,json=aggregationMethod,proto3,enum=google.cloud.capacityplanner.v1beta.UsageHistory_AggregationMethod" json:"aggregation_method,omitempty"`
	// Optional. The start date of forecasts.
	StartDate *date.Date `protobuf:"bytes,7,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
	// Optional. The end date of forecasts.
	EndDate *date.Date `protobuf:"bytes,8,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
	// Required. Output configuration indicating where the results will be output
	// to.
	OutputConfig *OutputConfig `protobuf:"bytes,9,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"`
	// contains filtered or unexported fields
}

The ExportForecasts request Next : 13

func (*ExportForecastsRequest) Descriptor

func (*ExportForecastsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ExportForecastsRequest.ProtoReflect.Descriptor instead.

func (*ExportForecastsRequest) GetAggregationMethod

func (x *ExportForecastsRequest) GetAggregationMethod() UsageHistory_AggregationMethod

func (*ExportForecastsRequest) GetDiskType

func (x *ExportForecastsRequest) GetDiskType() string

func (*ExportForecastsRequest) GetEndDate

func (x *ExportForecastsRequest) GetEndDate() *date.Date

func (*ExportForecastsRequest) GetGpuType

func (x *ExportForecastsRequest) GetGpuType() string

func (*ExportForecastsRequest) GetMachineFamily

func (x *ExportForecastsRequest) GetMachineFamily() string

func (*ExportForecastsRequest) GetMachineShape

func (x *ExportForecastsRequest) GetMachineShape() *MachineShape

func (*ExportForecastsRequest) GetOutputConfig

func (x *ExportForecastsRequest) GetOutputConfig() *OutputConfig

func (*ExportForecastsRequest) GetParent

func (x *ExportForecastsRequest) GetParent() string

func (*ExportForecastsRequest) GetPredictionInterval

func (x *ExportForecastsRequest) GetPredictionInterval() Forecast_PredictionInterval

func (*ExportForecastsRequest) GetResourceType

func (x *ExportForecastsRequest) GetResourceType() string

func (*ExportForecastsRequest) GetStartDate

func (x *ExportForecastsRequest) GetStartDate() *date.Date

func (*ExportForecastsRequest) GetTpuType

func (x *ExportForecastsRequest) GetTpuType() string

func (*ExportForecastsRequest) ProtoMessage

func (*ExportForecastsRequest) ProtoMessage()

func (*ExportForecastsRequest) ProtoReflect

func (x *ExportForecastsRequest) ProtoReflect() protoreflect.Message

func (*ExportForecastsRequest) Reset

func (x *ExportForecastsRequest) Reset()

func (*ExportForecastsRequest) String

func (x *ExportForecastsRequest) String() string

ExportForecastsResponse

type ExportForecastsResponse struct {

	// The response message for the forecast export. In case of bigquery,
	// it will also contain job id.
	Response string `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

A response message for [UsageService.ExportForecasts].

func (*ExportForecastsResponse) Descriptor

func (*ExportForecastsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ExportForecastsResponse.ProtoReflect.Descriptor instead.

func (*ExportForecastsResponse) GetResponse

func (x *ExportForecastsResponse) GetResponse() string

func (*ExportForecastsResponse) ProtoMessage

func (*ExportForecastsResponse) ProtoMessage()

func (*ExportForecastsResponse) ProtoReflect

func (x *ExportForecastsResponse) ProtoReflect() protoreflect.Message

func (*ExportForecastsResponse) Reset

func (x *ExportForecastsResponse) Reset()

func (*ExportForecastsResponse) String

func (x *ExportForecastsResponse) String() string

ExportReservationsUsageRequest

type ExportReservationsUsageRequest struct {

	// resource to query reservations and usage by.
	//
	// Types that are valid to be assigned to Resource:
	//
	//	*ExportReservationsUsageRequest_MachineFamily
	//	*ExportReservationsUsageRequest_MachineShape
	//	*ExportReservationsUsageRequest_GpuType
	Resource isExportReservationsUsageRequest_Resource `protobuf_oneof:"resource"`
	// Required. The compute engine resource and location of the
	// reservationsusage. The format is:
	//
	//	projects/{project}/locations/{location} or
	//	organizations/{organization}/locations/{location} or
	//	folders/{folder}/locations/{location}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The location level of the reservations usage timeseries.
	LocationLevel TimeSeries_LocationType `protobuf:"varint,11,opt,name=location_level,json=locationLevel,proto3,enum=google.cloud.capacityplanner.v1beta.TimeSeries_LocationType" json:"location_level,omitempty"`
	// Required. The resource for the `ReservationsUsage` values to return.
	// Possible values include "gce-vcpus", "gce-ram", "gce-local-ssd", and
	// "gce-gpu".
	CloudResourceType string `protobuf:"bytes,5,opt,name=cloud_resource_type,json=cloudResourceType,proto3" json:"cloud_resource_type,omitempty"`
	// Required. The method that should be used to convert sampled reservations
	// data to daily usage values.
	UsageAggregationMethod UsageHistory_AggregationMethod `protobuf:"varint,6,opt,name=usage_aggregation_method,json=usageAggregationMethod,proto3,enum=google.cloud.capacityplanner.v1beta.UsageHistory_AggregationMethod" json:"usage_aggregation_method,omitempty"`
	// Optional. Type of share settings to filter reservations in response. If
	// unspecified, all types are included.
	ShareType ExportReservationsUsageRequest_ShareType `protobuf:"varint,7,opt,name=share_type,json=shareType,proto3,enum=google.cloud.capacityplanner.v1beta.ExportReservationsUsageRequest_ShareType" json:"share_type,omitempty"`
	// Optional. The start date of reservations usage.
	StartDate *date.Date `protobuf:"bytes,8,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
	// Optional. The end date of reservations usage.
	EndDate *date.Date `protobuf:"bytes,9,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
	// Required. Output configuration indicating where the results will be output
	// to.
	OutputConfig *OutputConfig `protobuf:"bytes,10,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"`
	// contains filtered or unexported fields
}

The ExportReservationsUsage request

func (*ExportReservationsUsageRequest) Descriptor

func (*ExportReservationsUsageRequest) Descriptor() ([]byte, []int)

Deprecated: Use ExportReservationsUsageRequest.ProtoReflect.Descriptor instead.

func (*ExportReservationsUsageRequest) GetCloudResourceType

func (x *ExportReservationsUsageRequest) GetCloudResourceType() string

func (*ExportReservationsUsageRequest) GetEndDate

func (x *ExportReservationsUsageRequest) GetEndDate() *date.Date

func (*ExportReservationsUsageRequest) GetGpuType

func (x *ExportReservationsUsageRequest) GetGpuType() string

func (*ExportReservationsUsageRequest) GetLocationLevel

func (*ExportReservationsUsageRequest) GetMachineFamily

func (x *ExportReservationsUsageRequest) GetMachineFamily() string

func (*ExportReservationsUsageRequest) GetMachineShape

func (x *ExportReservationsUsageRequest) GetMachineShape() *MachineShape

func (*ExportReservationsUsageRequest) GetOutputConfig

func (x *ExportReservationsUsageRequest) GetOutputConfig() *OutputConfig

func (*ExportReservationsUsageRequest) GetParent

func (x *ExportReservationsUsageRequest) GetParent() string

func (*ExportReservationsUsageRequest) GetResource

func (x *ExportReservationsUsageRequest) GetResource() isExportReservationsUsageRequest_Resource

func (*ExportReservationsUsageRequest) GetShareType

func (*ExportReservationsUsageRequest) GetStartDate

func (x *ExportReservationsUsageRequest) GetStartDate() *date.Date

func (*ExportReservationsUsageRequest) GetUsageAggregationMethod

func (x *ExportReservationsUsageRequest) GetUsageAggregationMethod() UsageHistory_AggregationMethod

func (*ExportReservationsUsageRequest) ProtoMessage

func (*ExportReservationsUsageRequest) ProtoMessage()

func (*ExportReservationsUsageRequest) ProtoReflect

func (*ExportReservationsUsageRequest) Reset

func (x *ExportReservationsUsageRequest) Reset()

func (*ExportReservationsUsageRequest) String

ExportReservationsUsageRequest_GpuType

type ExportReservationsUsageRequest_GpuType struct {
	// Optional. The GPU type to query reservations and usage  by. For example:
	// NVIDIA T4.
	GpuType string `protobuf:"bytes,4,opt,name=gpu_type,json=gpuType,proto3,oneof"`
}

ExportReservationsUsageRequest_MachineFamily

type ExportReservationsUsageRequest_MachineFamily struct {
	// Optional. The machine family to query reservations and usage by. For
	// example: n1, n2d.
	MachineFamily string `protobuf:"bytes,2,opt,name=machine_family,json=machineFamily,proto3,oneof"`
}

ExportReservationsUsageRequest_MachineShape

type ExportReservationsUsageRequest_MachineShape struct {
	// Optional. The machine_shape as a filter to select matching reservations
	// and its usage.
	MachineShape *MachineShape `protobuf:"bytes,3,opt,name=machine_shape,json=machineShape,proto3,oneof"`
}

ExportReservationsUsageRequest_ShareType

type ExportReservationsUsageRequest_ShareType int32

Possible scope in which the reservation can be shared.

ExportReservationsUsageRequest_SHARE_TYPE_UNSPECIFIED, ExportReservationsUsageRequest_SHARE_TYPE_LOCAL, ExportReservationsUsageRequest_SHARE_TYPE_SPECIFIC_PROJECTS

const (
	// No share type specified.
	ExportReservationsUsageRequest_SHARE_TYPE_UNSPECIFIED ExportReservationsUsageRequest_ShareType = 0
	// Default value, for which reservation is open to only owner project.
	ExportReservationsUsageRequest_SHARE_TYPE_LOCAL ExportReservationsUsageRequest_ShareType = 1
	// Shared-reservation is open to specific projects.
	ExportReservationsUsageRequest_SHARE_TYPE_SPECIFIC_PROJECTS ExportReservationsUsageRequest_ShareType = 2
)

func (ExportReservationsUsageRequest_ShareType) Descriptor

func (ExportReservationsUsageRequest_ShareType) Enum

func (ExportReservationsUsageRequest_ShareType) EnumDescriptor

func (ExportReservationsUsageRequest_ShareType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ExportReservationsUsageRequest_ShareType.Descriptor instead.

func (ExportReservationsUsageRequest_ShareType) Number

func (ExportReservationsUsageRequest_ShareType) String

func (ExportReservationsUsageRequest_ShareType) Type

ExportReservationsUsageResponse

type ExportReservationsUsageResponse struct {

	// The response message for the reservations usage export. In case of
	// bigquery, it will also contain job id.
	Response string `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

A response message for [UsageService.ExportReservationsUsage].

func (*ExportReservationsUsageResponse) Descriptor

func (*ExportReservationsUsageResponse) Descriptor() ([]byte, []int)

Deprecated: Use ExportReservationsUsageResponse.ProtoReflect.Descriptor instead.

func (*ExportReservationsUsageResponse) GetResponse

func (x *ExportReservationsUsageResponse) GetResponse() string

func (*ExportReservationsUsageResponse) ProtoMessage

func (*ExportReservationsUsageResponse) ProtoMessage()

func (*ExportReservationsUsageResponse) ProtoReflect

func (*ExportReservationsUsageResponse) Reset

func (*ExportReservationsUsageResponse) String

ExportUsageHistoriesRequest

type ExportUsageHistoriesRequest struct {

	// Required. The compute engine resource and location for the time series
	// values to return. The format is:
	//
	//	projects/{project}/locations/{location} or
	//	organizations/{organization}/locations/{location} or
	//	folders/{folder}/locations/{location}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. Set true to export usage for spot resources.
	IsSpot bool `protobuf:"varint,11,opt,name=is_spot,json=isSpot,proto3" json:"is_spot,omitempty"`
	// Optional. The machine family for the `UsageHistory` values to return.
	// Possible values include "n1", and "n2d". See
	// https://cloud.google.com/compute/docs/machine-types for more examples.
	MachineFamily string `protobuf:"bytes,2,opt,name=machine_family,json=machineFamily,proto3" json:"machine_family,omitempty"`
	// Optional. The machine shape for the time series values to export.
	MachineShape *MachineShape `protobuf:"bytes,13,opt,name=machine_shape,json=machineShape,proto3" json:"machine_shape,omitempty"`
	// Optional. The disk_type for the `UsageHistory` values to return request
	// with persistent-disk resource_type. Possible values include "pd-ssd",
	// "pd-standard", "pd-balanced", and "pd-extreme".
	DiskType string `protobuf:"bytes,3,opt,name=disk_type,json=diskType,proto3" json:"disk_type,omitempty"`
	// Optional. The GPU type for the `UsageHistory` values to return. Sample
	// values are "nvidia-tesla-t4", and "nvidia-tesla-a100". See
	// https://cloud.google.com/compute/docs/gpus for a list. Empty gpu_type
	// will return results matching all GPUs.
	GpuType string `protobuf:"bytes,9,opt,name=gpu_type,json=gpuType,proto3" json:"gpu_type,omitempty"`
	// Optional. The TPU type for the `UsageHistory` values to return. Empty
	// tpu_type will return results matching all TPUs.
	TpuType string `protobuf:"bytes,10,opt,name=tpu_type,json=tpuType,proto3" json:"tpu_type,omitempty"`
	// Required. The resource for the `UsageHistory` values to return. Possible
	// values include "gce-vcpus", "gce-ram", "gce-local-ssd",
	// "gce-persistent-disk", "gce-gpu" and "gce-tpu".
	ResourceType string `protobuf:"bytes,4,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
	// Optional. The method that should be used to convert sampled usage data to
	// daily usage values. AGGREGATION_METHOD_UNSPECIFIED will return results
	// matching all the aggregation methods.
	UsageAggregationMethod UsageHistory_AggregationMethod `protobuf:"varint,5,opt,name=usage_aggregation_method,json=usageAggregationMethod,proto3,enum=google.cloud.capacityplanner.v1beta.UsageHistory_AggregationMethod" json:"usage_aggregation_method,omitempty"`
	// Optional. The start date of usage.
	StartDate *date.Date `protobuf:"bytes,6,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
	// Optional. The end date of usage.
	EndDate *date.Date `protobuf:"bytes,7,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
	// Required. Output configuration indicating where the results will be output
	// to.
	OutputConfig *OutputConfig `protobuf:"bytes,8,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"`
	// contains filtered or unexported fields
}

The ExportUsageHistories request Next : 12

func (*ExportUsageHistoriesRequest) Descriptor

func (*ExportUsageHistoriesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ExportUsageHistoriesRequest.ProtoReflect.Descriptor instead.

func (*ExportUsageHistoriesRequest) GetDiskType

func (x *ExportUsageHistoriesRequest) GetDiskType() string

func (*ExportUsageHistoriesRequest) GetEndDate

func (x *ExportUsageHistoriesRequest) GetEndDate() *date.Date

func (*ExportUsageHistoriesRequest) GetGpuType

func (x *ExportUsageHistoriesRequest) GetGpuType() string

func (*ExportUsageHistoriesRequest) GetIsSpot

func (x *ExportUsageHistoriesRequest) GetIsSpot() bool

func (*ExportUsageHistoriesRequest) GetMachineFamily

func (x *ExportUsageHistoriesRequest) GetMachineFamily() string

func (*ExportUsageHistoriesRequest) GetMachineShape

func (x *ExportUsageHistoriesRequest) GetMachineShape() *MachineShape

func (*ExportUsageHistoriesRequest) GetOutputConfig

func (x *ExportUsageHistoriesRequest) GetOutputConfig() *OutputConfig

func (*ExportUsageHistoriesRequest) GetParent

func (x *ExportUsageHistoriesRequest) GetParent() string

func (*ExportUsageHistoriesRequest) GetResourceType

func (x *ExportUsageHistoriesRequest) GetResourceType() string

func (*ExportUsageHistoriesRequest) GetStartDate

func (x *ExportUsageHistoriesRequest) GetStartDate() *date.Date

func (*ExportUsageHistoriesRequest) GetTpuType

func (x *ExportUsageHistoriesRequest) GetTpuType() string

func (*ExportUsageHistoriesRequest) GetUsageAggregationMethod

func (x *ExportUsageHistoriesRequest) GetUsageAggregationMethod() UsageHistory_AggregationMethod

func (*ExportUsageHistoriesRequest) ProtoMessage

func (*ExportUsageHistoriesRequest) ProtoMessage()

func (*ExportUsageHistoriesRequest) ProtoReflect

func (*ExportUsageHistoriesRequest) Reset

func (x *ExportUsageHistoriesRequest) Reset()

func (*ExportUsageHistoriesRequest) String

func (x *ExportUsageHistoriesRequest) String() string

ExportUsageHistoriesResponse

type ExportUsageHistoriesResponse struct {

	// The response message for the usage history export. In case of bigquery,
	// it will also contain job id.
	Response string `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

A response message for [UsageService.ExportUsageHistories].

func (*ExportUsageHistoriesResponse) Descriptor

func (*ExportUsageHistoriesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ExportUsageHistoriesResponse.ProtoReflect.Descriptor instead.

func (*ExportUsageHistoriesResponse) GetResponse

func (x *ExportUsageHistoriesResponse) GetResponse() string

func (*ExportUsageHistoriesResponse) ProtoMessage

func (*ExportUsageHistoriesResponse) ProtoMessage()

func (*ExportUsageHistoriesResponse) ProtoReflect

func (*ExportUsageHistoriesResponse) Reset

func (x *ExportUsageHistoriesResponse) Reset()

func (*ExportUsageHistoriesResponse) String

Forecast

type Forecast struct {

	// The resource name of the connection in the form of:
	// `projects/{project_id}/locations/{location_id}/forecasts/{forecast_id}` or
	// `organizations/{organization_id}/locations/{location_id}/forecasts/{forecast_id}`
	// or `folders/{folder_id}/locations/{location_id}/forecasts/{forecast_id}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The collection of data points that represent the predicted values. Note
	// that some of these values may be in the past (if, for example, the forecast
	// was created in the past and predicted values for the present day).
	TimeSeries *TimeSeries `protobuf:"bytes,2,opt,name=time_series,json=timeSeries,proto3" json:"time_series,omitempty"`
	// The type of forecast.
	ForecastType Forecast_ForecastType `protobuf:"varint,3,opt,name=forecast_type,json=forecastType,proto3,enum=google.cloud.capacityplanner.v1beta.Forecast_ForecastType" json:"forecast_type,omitempty"`
	// The bounds represented by this forecast time series.
	Bounds Forecast_Bounds `protobuf:"varint,4,opt,name=bounds,proto3,enum=google.cloud.capacityplanner.v1beta.Forecast_Bounds" json:"bounds,omitempty"`
	// The prediction interval represented by the time series.
	PredictionInterval Forecast_PredictionInterval `protobuf:"varint,5,opt,name=prediction_interval,json=predictionInterval,proto3,enum=google.cloud.capacityplanner.v1beta.Forecast_PredictionInterval" json:"prediction_interval,omitempty"`
	// Aggregation Method of the historical usage for which the forecast is
	// generated
	AggregationMethod UsageHistory_AggregationMethod `protobuf:"varint,6,opt,name=aggregation_method,json=aggregationMethod,proto3,enum=google.cloud.capacityplanner.v1beta.UsageHistory_AggregationMethod" json:"aggregation_method,omitempty"`
	// contains filtered or unexported fields
}

A collection of data points that describes the predicted time-varying values of a resource.

func (*Forecast) Descriptor

func (*Forecast) Descriptor() ([]byte, []int)

Deprecated: Use Forecast.ProtoReflect.Descriptor instead.

func (*Forecast) GetAggregationMethod

func (x *Forecast) GetAggregationMethod() UsageHistory_AggregationMethod

func (*Forecast) GetBounds

func (x *Forecast) GetBounds() Forecast_Bounds

func (*Forecast) GetForecastType

func (x *Forecast) GetForecastType() Forecast_ForecastType

func (*Forecast) GetName

func (x *Forecast) GetName() string

func (*Forecast) GetPredictionInterval

func (x *Forecast) GetPredictionInterval() Forecast_PredictionInterval

func (*Forecast) GetTimeSeries

func (x *Forecast) GetTimeSeries() *TimeSeries

func (*Forecast) ProtoMessage

func (*Forecast) ProtoMessage()

func (*Forecast) ProtoReflect

func (x *Forecast) ProtoReflect() protoreflect.Message

func (*Forecast) Reset

func (x *Forecast) Reset()

func (*Forecast) String

func (x *Forecast) String() string

Forecast_Bounds

type Forecast_Bounds int32

The bounds of the forecast time series.

Forecast_BOUNDS_UNSPECIFIED, Forecast_LOWER_BOUND, Forecast_MEDIAN, Forecast_UPPER_BOUND

const (
	// No bounds is specified.
	Forecast_BOUNDS_UNSPECIFIED Forecast_Bounds = 0
	// The time series represents the upper bound of the forecast.
	Forecast_LOWER_BOUND Forecast_Bounds = 1
	// The time series represents the median expected forecast value.
	Forecast_MEDIAN Forecast_Bounds = 2
	// The time series represents the lower bound of the forecast.
	Forecast_UPPER_BOUND Forecast_Bounds = 3
)

func (Forecast_Bounds) Descriptor

func (Forecast_Bounds) Enum

func (x Forecast_Bounds) Enum() *Forecast_Bounds

func (Forecast_Bounds) EnumDescriptor

func (Forecast_Bounds) EnumDescriptor() ([]byte, []int)

Deprecated: Use Forecast_Bounds.Descriptor instead.

func (Forecast_Bounds) Number

func (Forecast_Bounds) String

func (x Forecast_Bounds) String() string

func (Forecast_Bounds) Type

Forecast_ForecastType

type Forecast_ForecastType int32

The type of the forecast. This describes the method that was used to produce future time series values from historical time series values.

Forecast_FORECAST_TYPE_UNSPECIFIED, Forecast_STATISTICAL, Forecast_STATISTICAL_WITH_BFCM, Forecast_YEARLY_SEASONALITY

const (
	// No forecast type is specified.
	Forecast_FORECAST_TYPE_UNSPECIFIED Forecast_ForecastType = 0
	// Statistical forecast.
	Forecast_STATISTICAL Forecast_ForecastType = 1
	// Statistical forecast that attempts to predict the seasonal affects of
	// Black Friday and Cyber Monday.
	Forecast_STATISTICAL_WITH_BFCM Forecast_ForecastType = 2
	// Yearly Seasonality model provides generic seasonality beyond BFCM.
	Forecast_YEARLY_SEASONALITY Forecast_ForecastType = 3
)

func (Forecast_ForecastType) Descriptor

func (Forecast_ForecastType) Enum

func (Forecast_ForecastType) EnumDescriptor

func (Forecast_ForecastType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Forecast_ForecastType.Descriptor instead.

func (Forecast_ForecastType) Number

func (Forecast_ForecastType) String

func (x Forecast_ForecastType) String() string

func (Forecast_ForecastType) Type

Forecast_PredictionInterval

type Forecast_PredictionInterval int32

The prediction interval represented by a forecast.

Forecast_PREDICTION_INTERVAL_UNSPECIFIED, Forecast_PREDICTION_INTERVAL_90, Forecast_PREDICTION_INTERVAL_50

const (
	// No prediction interval is specified.
	Forecast_PREDICTION_INTERVAL_UNSPECIFIED Forecast_PredictionInterval = 0
	// This represents a prediction interval that has 90% confidence. For
	// example, for a symmetric prediction interval, a `PredictionInterval`
	// of `PREDICTION_INTERVAL_90` means that the `UPPER_BOUND` will represent
	// the 95th precentile.
	Forecast_PREDICTION_INTERVAL_90 Forecast_PredictionInterval = 1
	// This represents a prediction interval that has 50% confidence. For
	// example, for a symmetric prediction interval, a `PredictionInterval`
	// of `PREDICTION_INTERVAL_50` means that the `UPPER_BOUND` will represent
	// the 75th precentile.
	Forecast_PREDICTION_INTERVAL_50 Forecast_PredictionInterval = 2
)

func (Forecast_PredictionInterval) Descriptor

func (Forecast_PredictionInterval) Enum

func (Forecast_PredictionInterval) EnumDescriptor

func (Forecast_PredictionInterval) EnumDescriptor() ([]byte, []int)

Deprecated: Use Forecast_PredictionInterval.Descriptor instead.

func (Forecast_PredictionInterval) Number

func (Forecast_PredictionInterval) String

func (Forecast_PredictionInterval) Type

FutureReservation

type FutureReservation struct {

	// The type of the future reservation which can only be for a specific SKU for
	// now.
	//
	// Types that are valid to be assigned to Type:
	//
	//	*FutureReservation_SpecificSkuProperties
	Type isFutureReservation_Type `protobuf_oneof:"type"`
	// A unique identifier for this future reservation. The server
	// defines this identifier.
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The creation timestamp for this future reservation.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// URL of the Zone where this future reservation resides.
	Zone string `protobuf:"bytes,5,opt,name=zone,proto3" json:"zone,omitempty"`
	// Description of the future reservation provided by user.
	Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	// The future reservation resource name.
	FutureReservation string `protobuf:"bytes,7,opt,name=future_reservation,json=futureReservation,proto3" json:"future_reservation,omitempty"`
	OwnerProjectId    string `protobuf:"bytes,15,opt,name=owner_project_id,json=ownerProjectId,proto3" json:"owner_project_id,omitempty"`
	// Time window for this Future Reservation.
	TimeWindow *FutureReservation_TimeWindow `protobuf:"bytes,9,opt,name=time_window,json=timeWindow,proto3" json:"time_window,omitempty"`
	// List of Projects/Folders to share with.
	ShareSettings *Allocation_ShareSettings `protobuf:"bytes,10,opt,name=share_settings,json=shareSettings,proto3" json:"share_settings,omitempty"`
	// Name prefix for the reservations to be created at the time of
	// delivery. The name prefix must comply with RFC1035.
	// Maximum allowed length for name prefix is 20. Automatically created
	// reservations name format will be 

Repesents Future Reservation request which is part of aggregated reservations data response of "QueryReservations".

func (*FutureReservation) Descriptor

func (*FutureReservation) Descriptor() ([]byte, []int)

Deprecated: Use FutureReservation.ProtoReflect.Descriptor instead.

func (*FutureReservation) GetAutoCreatedReservationsDeleteTime

func (x *FutureReservation) GetAutoCreatedReservationsDeleteTime() *timestamppb.Timestamp

func (*FutureReservation) GetAutoDeleteAutoCreatedReservations

func (x *FutureReservation) GetAutoDeleteAutoCreatedReservations() bool

func (*FutureReservation) GetCreateTime

func (x *FutureReservation) GetCreateTime() *timestamppb.Timestamp

func (*FutureReservation) GetDescription

func (x *FutureReservation) GetDescription() string

func (*FutureReservation) GetFutureReservation

func (x *FutureReservation) GetFutureReservation() string

func (*FutureReservation) GetId

func (x *FutureReservation) GetId() int64

func (*FutureReservation) GetNamePrefix

func (x *FutureReservation) GetNamePrefix() string

func (*FutureReservation) GetOwnerProjectId

func (x *FutureReservation) GetOwnerProjectId() string

func (*FutureReservation) GetShareSettings

func (x *FutureReservation) GetShareSettings() *Allocation_ShareSettings

func (*FutureReservation) GetSpecificSkuProperties

func (x *FutureReservation) GetSpecificSkuProperties() *FutureReservation_SpecificSKUProperties

func (*FutureReservation) GetStatus

func (*FutureReservation) GetTimeWindow

func (x *FutureReservation) GetTimeWindow() *FutureReservation_TimeWindow

func (*FutureReservation) GetType

func (x *FutureReservation) GetType() isFutureReservation_Type

func (*FutureReservation) GetZone

func (x *FutureReservation) GetZone() string

func (*FutureReservation) ProtoMessage

func (*FutureReservation) ProtoMessage()

func (*FutureReservation) ProtoReflect

func (x *FutureReservation) ProtoReflect() protoreflect.Message

func (*FutureReservation) Reset

func (x *FutureReservation) Reset()

func (*FutureReservation) String

func (x *FutureReservation) String() string

FutureReservation_SpecificSKUProperties

type FutureReservation_SpecificSKUProperties struct {

	// Properties of the SKU instances being reserved.
	InstanceProperties *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties `protobuf:"bytes,1,opt,name=instance_properties,json=instanceProperties,proto3" json:"instance_properties,omitempty"`
	// Total number of instances for which capacity assurance is requested at a
	// future time period.
	TotalCount int64 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}

Represents specific SKU properties for the Future Reservation.

func (*FutureReservation_SpecificSKUProperties) Descriptor

func (*FutureReservation_SpecificSKUProperties) Descriptor() ([]byte, []int)

Deprecated: Use FutureReservation_SpecificSKUProperties.ProtoReflect.Descriptor instead.

func (*FutureReservation_SpecificSKUProperties) GetInstanceProperties

func (*FutureReservation_SpecificSKUProperties) GetTotalCount

func (*FutureReservation_SpecificSKUProperties) ProtoMessage

func (*FutureReservation_SpecificSKUProperties) ProtoReflect

func (*FutureReservation_SpecificSKUProperties) Reset

func (*FutureReservation_SpecificSKUProperties) String

FutureReservation_SpecificSkuProperties

type FutureReservation_SpecificSkuProperties struct {
	// Future Reservation configuration to indicate instance properties and
	// total count.
	SpecificSkuProperties *FutureReservation_SpecificSKUProperties `protobuf:"bytes,8,opt,name=specific_sku_properties,json=specificSkuProperties,proto3,oneof"`
}

FutureReservation_Status

type FutureReservation_Status struct {

	// Current state of this Future Reservation
	ProcurementStatus FutureReservation_Status_ProcurementStatus `protobuf:"varint,1,opt,name=procurement_status,json=procurementStatus,proto3,enum=google.cloud.capacityplanner.v1beta.FutureReservation_Status_ProcurementStatus" json:"procurement_status,omitempty"`
	// Time when Future Reservation would become LOCKED, after which no
	// modifications to Future Reservation will be allowed. Applicable only
	// after the Future Reservation is in the APPROVED state. The lock_time is
	// an RFC3339 string. The procurement_status will transition to PROCURING
	// state at this time.
	LockTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"`
	// Fully qualified urls of the automatically created reservations at
	// start_time.
	AutoCreatedReservations []string `protobuf:"bytes,3,rep,name=auto_created_reservations,json=autoCreatedReservations,proto3" json:"auto_created_reservations,omitempty"`
	// This count indicates the fulfilled capacity so far. This is set during
	// "PROVISIONING" state. This count also includes capacity delivered as part
	// of existing matching reservations.
	FulfilledCount int64 `protobuf:"varint,4,opt,name=fulfilled_count,json=fulfilledCount,proto3" json:"fulfilled_count,omitempty"`
	// contains filtered or unexported fields
}

Represents status related to the future reservation.

func (*FutureReservation_Status) Descriptor

func (*FutureReservation_Status) Descriptor() ([]byte, []int)

Deprecated: Use FutureReservation_Status.ProtoReflect.Descriptor instead.

func (*FutureReservation_Status) GetAutoCreatedReservations

func (x *FutureReservation_Status) GetAutoCreatedReservations() []string

func (*FutureReservation_Status) GetFulfilledCount

func (x *FutureReservation_Status) GetFulfilledCount() int64

func (*FutureReservation_Status) GetLockTime

func (*FutureReservation_Status) GetProcurementStatus

func (*FutureReservation_Status) ProtoMessage

func (*FutureReservation_Status) ProtoMessage()

func (*FutureReservation_Status) ProtoReflect

func (x *FutureReservation_Status) ProtoReflect() protoreflect.Message

func (*FutureReservation_Status) Reset

func (x *FutureReservation_Status) Reset()

func (*FutureReservation_Status) String

func (x *FutureReservation_Status) String() string

FutureReservation_Status_ProcurementStatus

type FutureReservation_Status_ProcurementStatus int32

Represents procurement status of the Future Reservation.

FutureReservation_Status_PROCUREMENT_STATUS_UNSPECIFIED, FutureReservation_Status_PENDING_APPROVAL, FutureReservation_Status_APPROVED, FutureReservation_Status_COMMITTED, FutureReservation_Status_DECLINED, FutureReservation_Status_CANCELLED, FutureReservation_Status_PROCURING, FutureReservation_Status_PROVISIONING, FutureReservation_Status_FULFILLED, FutureReservation_Status_FAILED, FutureReservation_Status_FAILED_PARTIALLY_FULFILLED, FutureReservation_Status_DRAFTING, FutureReservation_Status_PENDING_AMENDMENT_APPROVAL

const (
	// This is unused status value.
	FutureReservation_Status_PROCUREMENT_STATUS_UNSPECIFIED FutureReservation_Status_ProcurementStatus = 0
	// Future reservation is pending approval by Google Cloud Platform.
	FutureReservation_Status_PENDING_APPROVAL FutureReservation_Status_ProcurementStatus = 1
	// Future reservation is approved by Google Cloud Platform.
	FutureReservation_Status_APPROVED FutureReservation_Status_ProcurementStatus = 2
	// Future reservation is committed by the customer.
	FutureReservation_Status_COMMITTED FutureReservation_Status_ProcurementStatus = 3
	// Future reservation is rejected by Google Cloud Platform.
	FutureReservation_Status_DECLINED FutureReservation_Status_ProcurementStatus = 4
	// Future reservation is cancelled by the customer.
	FutureReservation_Status_CANCELLED FutureReservation_Status_ProcurementStatus = 5
	// Future reservation is being procured by Google Cloud Platform. Beyond
	// this point, Future reservation is locked and no further modifications
	// are allowed.
	FutureReservation_Status_PROCURING FutureReservation_Status_ProcurementStatus = 6
	// Future reservation capacity is being provisioned. This state will be
	// entered after start_time, while reservations are being created to
	// provide total_count reserved instance slots. This state will not
	// persist past start_time + 24h.
	FutureReservation_Status_PROVISIONING FutureReservation_Status_ProcurementStatus = 7
	// Future reservation is fulfilled completely.
	FutureReservation_Status_FULFILLED FutureReservation_Status_ProcurementStatus = 8
	// Future reservation failed. No additional reservations were provided.
	FutureReservation_Status_FAILED FutureReservation_Status_ProcurementStatus = 9
	// Future reservation is partially fulfilled. Additional reservations were
	// provided but did not reach total_count reserved instance slots.
	FutureReservation_Status_FAILED_PARTIALLY_FULFILLED FutureReservation_Status_ProcurementStatus = 10
	// Related status for PlanningStatus.Draft. Transitions to
	// PENDING_APPROVAL upon user submitting FR.
	FutureReservation_Status_DRAFTING FutureReservation_Status_ProcurementStatus = 11
	// An Amendment to the Future Reservation has been requested. If the
	// Amendment is declined, the Future Reservation will be restored to the
	// last known good state.
	FutureReservation_Status_PENDING_AMENDMENT_APPROVAL FutureReservation_Status_ProcurementStatus = 12
)

func (FutureReservation_Status_ProcurementStatus) Descriptor

func (FutureReservation_Status_ProcurementStatus) Enum

func (FutureReservation_Status_ProcurementStatus) EnumDescriptor

func (FutureReservation_Status_ProcurementStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use FutureReservation_Status_ProcurementStatus.Descriptor instead.

func (FutureReservation_Status_ProcurementStatus) Number

func (FutureReservation_Status_ProcurementStatus) String

func (FutureReservation_Status_ProcurementStatus) Type

FutureReservation_TimeWindow

type FutureReservation_TimeWindow struct {

	// Start time of the Future Reservation.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// End time of the Future Reservation.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// contains filtered or unexported fields
}

Represents time window for the Future Reservation.

func (*FutureReservation_TimeWindow) Descriptor

func (*FutureReservation_TimeWindow) Descriptor() ([]byte, []int)

Deprecated: Use FutureReservation_TimeWindow.ProtoReflect.Descriptor instead.

func (*FutureReservation_TimeWindow) GetEndTime

func (*FutureReservation_TimeWindow) GetStartTime

func (*FutureReservation_TimeWindow) ProtoMessage

func (*FutureReservation_TimeWindow) ProtoMessage()

func (*FutureReservation_TimeWindow) ProtoReflect

func (*FutureReservation_TimeWindow) Reset

func (x *FutureReservation_TimeWindow) Reset()

func (*FutureReservation_TimeWindow) String

GcsDestination

type GcsDestination struct {

	// Optional. The path to the file in Cloud Storage where the export will be
	// stored. The URI is in the form `gs://bucketName/fileName`. If the file
	// already exists, the request succeeds, but the operation fails.
	Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// Required. The bucket name to which the export will be stored.
	Bucket string `protobuf:"bytes,3,opt,name=bucket,proto3" json:"bucket,omitempty"`
	// Required. The object name to which the export will be stored.
	Object string `protobuf:"bytes,4,opt,name=object,proto3" json:"object,omitempty"`
	// Optional. Flag to indicate overwrite in case file already exists.
	Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
	// contains filtered or unexported fields
}

A Cloud Storage location.

func (*GcsDestination) Descriptor

func (*GcsDestination) Descriptor() ([]byte, []int)

Deprecated: Use GcsDestination.ProtoReflect.Descriptor instead.

func (*GcsDestination) GetBucket

func (x *GcsDestination) GetBucket() string

func (*GcsDestination) GetForce

func (x *GcsDestination) GetForce() bool

func (*GcsDestination) GetObject

func (x *GcsDestination) GetObject() string

func (*GcsDestination) GetUri

func (x *GcsDestination) GetUri() string

func (*GcsDestination) ProtoMessage

func (*GcsDestination) ProtoMessage()

func (*GcsDestination) ProtoReflect

func (x *GcsDestination) ProtoReflect() protoreflect.Message

func (*GcsDestination) Reset

func (x *GcsDestination) Reset()

func (*GcsDestination) String

func (x *GcsDestination) String() string

LocationIdentifier

type LocationIdentifier struct {

	// The location level such as a region.
	LocationLevel LocationLevel `protobuf:"varint,1,opt,name=location_level,json=locationLevel,proto3,enum=google.cloud.capacityplanner.v1beta.LocationLevel" json:"location_level,omitempty"`
	// Required. Location where resource is sourced. For Cloud Storage, the
	// alphabetically first location is the source.
	Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	// Optional. Other linked locations.
	LinkedLocations []*LocationIdentifier_LinkedLocation `protobuf:"bytes,3,rep,name=linked_locations,json=linkedLocations,proto3" json:"linked_locations,omitempty"`
	// contains filtered or unexported fields
}

Identifier for a Google Cloud Platform location.

func (*LocationIdentifier) Descriptor

func (*LocationIdentifier) Descriptor() ([]byte, []int)

Deprecated: Use LocationIdentifier.ProtoReflect.Descriptor instead.

func (*LocationIdentifier) GetLinkedLocations

func (x *LocationIdentifier) GetLinkedLocations() []*LocationIdentifier_LinkedLocation

func (*LocationIdentifier) GetLocationLevel

func (x *LocationIdentifier) GetLocationLevel() LocationLevel

func (*LocationIdentifier) GetSource

func (x *LocationIdentifier) GetSource() string

func (*LocationIdentifier) ProtoMessage

func (*LocationIdentifier) ProtoMessage()

func (*LocationIdentifier) ProtoReflect

func (x *LocationIdentifier) ProtoReflect() protoreflect.Message

func (*LocationIdentifier) Reset

func (x *LocationIdentifier) Reset()

func (*LocationIdentifier) String

func (x *LocationIdentifier) String() string

LocationIdentifier_LinkedLocation

type LocationIdentifier_LinkedLocation struct {

	// The location level such as a region.
	LocationLevel LocationLevel `protobuf:"varint,1,opt,name=location_level,json=locationLevel,proto3,enum=google.cloud.capacityplanner.v1beta.LocationLevel" json:"location_level,omitempty"`
	// Required. The linked cloud location.
	Location string `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
	Label    string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

func (*LocationIdentifier_LinkedLocation) Descriptor

func (*LocationIdentifier_LinkedLocation) Descriptor() ([]byte, []int)

Deprecated: Use LocationIdentifier_LinkedLocation.ProtoReflect.Descriptor instead.

func (*LocationIdentifier_LinkedLocation) GetLabel

func (*LocationIdentifier_LinkedLocation) GetLocation

func (x *LocationIdentifier_LinkedLocation) GetLocation() string

func (*LocationIdentifier_LinkedLocation) GetLocationLevel

func (x *LocationIdentifier_LinkedLocation) GetLocationLevel() LocationLevel

func (*LocationIdentifier_LinkedLocation) ProtoMessage

func (*LocationIdentifier_LinkedLocation) ProtoMessage()

func (*LocationIdentifier_LinkedLocation) ProtoReflect

func (*LocationIdentifier_LinkedLocation) Reset

func (*LocationIdentifier_LinkedLocation) String

LocationLevel

type LocationLevel int32

The level of the Google Cloud Platform location.

LocationLevel_LOCATION_LEVEL_UNSPECIFIED, LocationLevel_REGION, LocationLevel_ZONE, LocationLevel_GLOBAL, LocationLevel_METRO, LocationLevel_DUAL_REGION, LocationLevel_MULTI_REGION

const (
	// Location level is unspecified.
	LocationLevel_LOCATION_LEVEL_UNSPECIFIED LocationLevel = 0
	// Cloud region.
	LocationLevel_REGION LocationLevel = 1
	// Cloud zone.
	LocationLevel_ZONE LocationLevel = 2
	// Globally.
	LocationLevel_GLOBAL LocationLevel = 3
	// A metro.
	LocationLevel_METRO LocationLevel = 4
	// Dual region pair.
	LocationLevel_DUAL_REGION LocationLevel = 5
	// Multiple regions.
	LocationLevel_MULTI_REGION LocationLevel = 6
)

func (LocationLevel) Descriptor

func (LocationLevel) Enum

func (x LocationLevel) Enum() *LocationLevel

func (LocationLevel) EnumDescriptor

func (LocationLevel) EnumDescriptor() ([]byte, []int)

Deprecated: Use LocationLevel.Descriptor instead.

func (LocationLevel) Number

func (LocationLevel) String

func (x LocationLevel) String() string

func (LocationLevel) Type

MachineShape

type MachineShape struct {

	// Optional. The VM family.
	MachineFamily string `protobuf:"bytes,1,opt,name=machine_family,json=machineFamily,proto3" json:"machine_family,omitempty"`
	// Optional. The characteristics of the sampled VM expressed as a string.
	MachineType string `protobuf:"bytes,2,opt,name=machine_type,json=machineType,proto3" json:"machine_type,omitempty"`
	// Optional. The customer visible string representing the type of VM.
	MachineShape string `protobuf:"bytes,3,opt,name=machine_shape,json=machineShape,proto3" json:"machine_shape,omitempty"`
	// Optional. Number of CPU cores per VM.
	CpuCores float64 `protobuf:"fixed64,4,opt,name=cpu_cores,json=cpuCores,proto3" json:"cpu_cores,omitempty"`
	// Optional. The type of GPU with the VM.
	GpuType string `protobuf:"bytes,5,opt,name=gpu_type,json=gpuType,proto3" json:"gpu_type,omitempty"`
	// Optional. The GPU name recognized by Compute Engine APIs.
	GpuComputeType string `protobuf:"bytes,10,opt,name=gpu_compute_type,json=gpuComputeType,proto3" json:"gpu_compute_type,omitempty"`
	// Optional. The number of GPU cores per VM.
	GpuCores int64 `protobuf:"varint,6,opt,name=gpu_cores,json=gpuCores,proto3" json:"gpu_cores,omitempty"`
	// Optional. The number of local SSD partitions per VM.
	LocalSsdPartitions int64 `protobuf:"varint,7,opt,name=local_ssd_partitions,json=localSsdPartitions,proto3" json:"local_ssd_partitions,omitempty"`
	// Optional. Total amount of local SSD storage.
	LocalSsdGb float64 `protobuf:"fixed64,8,opt,name=local_ssd_gb,json=localSsdGb,proto3" json:"local_ssd_gb,omitempty"`
	// Optional. Total amount of memory with the VM.
	MemoryGb float64 `protobuf:"fixed64,9,opt,name=memory_gb,json=memoryGb,proto3" json:"memory_gb,omitempty"`
	// Optional. The local SSD interface used such as nvme or scsi
	LocalSsdInterface string `protobuf:"bytes,11,opt,name=local_ssd_interface,json=localSsdInterface,proto3" json:"local_ssd_interface,omitempty"`
	// Optional. The Min-cpu platform used such as icelake
	MinCpuPlatform string `protobuf:"bytes,12,opt,name=min_cpu_platform,json=minCpuPlatform,proto3" json:"min_cpu_platform,omitempty"`
	// contains filtered or unexported fields
}

Machine shape details Next : 13

func (*MachineShape) Descriptor

func (*MachineShape) Descriptor() ([]byte, []int)

Deprecated: Use MachineShape.ProtoReflect.Descriptor instead.

func (*MachineShape) GetCpuCores

func (x *MachineShape) GetCpuCores() float64

func (*MachineShape) GetGpuComputeType

func (x *MachineShape) GetGpuComputeType() string

func (*MachineShape) GetGpuCores

func (x *MachineShape) GetGpuCores() int64

func (*MachineShape) GetGpuType

func (x *MachineShape) GetGpuType() string

func (*MachineShape) GetLocalSsdGb

func (x *MachineShape) GetLocalSsdGb() float64

func (*MachineShape) GetLocalSsdInterface

func (x *MachineShape) GetLocalSsdInterface() string

func (*MachineShape) GetLocalSsdPartitions

func (x *MachineShape) GetLocalSsdPartitions() int64

func (*MachineShape) GetMachineFamily

func (x *MachineShape) GetMachineFamily() string

func (*MachineShape) GetMachineShape

func (x *MachineShape) GetMachineShape() string

func (*MachineShape) GetMachineType

func (x *MachineShape) GetMachineType() string

func (*MachineShape) GetMemoryGb

func (x *MachineShape) GetMemoryGb() float64

func (*MachineShape) GetMinCpuPlatform

func (x *MachineShape) GetMinCpuPlatform() string

func (*MachineShape) ProtoMessage

func (*MachineShape) ProtoMessage()

func (*MachineShape) ProtoReflect

func (x *MachineShape) ProtoReflect() protoreflect.Message

func (*MachineShape) Reset

func (x *MachineShape) Reset()

func (*MachineShape) String

func (x *MachineShape) String() string

OperationMetadata

type OperationMetadata struct {

	// Output only. The time the operation was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. The time the operation finished running.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// contains filtered or unexported fields
}

Represents the metadata of a long-running operation.

func (*OperationMetadata) Descriptor

func (*OperationMetadata) Descriptor() ([]byte, []int)

Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead.

func (*OperationMetadata) GetCreateTime

func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp

func (*OperationMetadata) GetEndTime

func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp

func (*OperationMetadata) ProtoMessage

func (*OperationMetadata) ProtoMessage()

func (*OperationMetadata) ProtoReflect

func (x *OperationMetadata) ProtoReflect() protoreflect.Message

func (*OperationMetadata) Reset

func (x *OperationMetadata) Reset()

func (*OperationMetadata) String

func (x *OperationMetadata) String() string

OutputConfig

type OutputConfig struct {

	// Export destination.
	//
	// Types that are valid to be assigned to Destination:
	//
	//	*OutputConfig_GcsDestination
	//	*OutputConfig_BigqueryDestination
	Destination isOutputConfig_Destination `protobuf_oneof:"destination"`
	// contains filtered or unexported fields
}

Output configuration for export destination.

func (*OutputConfig) Descriptor

func (*OutputConfig) Descriptor() ([]byte, []int)

Deprecated: Use OutputConfig.ProtoReflect.Descriptor instead.

func (*OutputConfig) GetBigqueryDestination

func (x *OutputConfig) GetBigqueryDestination() *BigQueryDestination

func (*OutputConfig) GetDestination

func (x *OutputConfig) GetDestination() isOutputConfig_Destination

func (*OutputConfig) GetGcsDestination

func (x *OutputConfig) GetGcsDestination() *GcsDestination

func (*OutputConfig) ProtoMessage

func (*OutputConfig) ProtoMessage()

func (*OutputConfig) ProtoReflect

func (x *OutputConfig) ProtoReflect() protoreflect.Message

func (*OutputConfig) Reset

func (x *OutputConfig) Reset()

func (*OutputConfig) String

func (x *OutputConfig) String() string

OutputConfig_BigqueryDestination

type OutputConfig_BigqueryDestination struct {
	// Destination on BigQuery.
	BigqueryDestination *BigQueryDestination `protobuf:"bytes,2,opt,name=bigquery_destination,json=bigqueryDestination,proto3,oneof"`
}

OutputConfig_GcsDestination

type OutputConfig_GcsDestination struct {
	// Destination on Cloud Storage.
	GcsDestination *GcsDestination `protobuf:"bytes,1,opt,name=gcs_destination,json=gcsDestination,proto3,oneof"`
}

Point

type Point struct {

	// The time which the data point applies.
	EventTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"`
	// The value of the data point.
	Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

A single data point in a time series.

func (*Point) Descriptor

func (*Point) Descriptor() ([]byte, []int)

Deprecated: Use Point.ProtoReflect.Descriptor instead.

func (*Point) GetEventTime

func (x *Point) GetEventTime() *timestamppb.Timestamp

func (*Point) GetValue

func (x *Point) GetValue() float64

func (*Point) ProtoMessage

func (*Point) ProtoMessage()

func (*Point) ProtoReflect

func (x *Point) ProtoReflect() protoreflect.Message

func (*Point) Reset

func (x *Point) Reset()

func (*Point) String

func (x *Point) String() string

QueryForecastsRequest

type QueryForecastsRequest struct {

	// Required. The compute engine resource and location for the time series
	// values to return. The format is:
	//
	// projects/{project}/locations/{location} or
	// organizations/{organization}/locations/{location} or
	// folders/{folder}/locations/{location}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The machine family to use to select the `Forecast` values to return.
	// Possible values include "n1", and "n2d".
	// Empty machine_family will return results matching all machine families.
	MachineFamily string `protobuf:"bytes,2,opt,name=machine_family,json=machineFamily,proto3" json:"machine_family,omitempty"`
	// Optional. The machine shape for the time series values to return.
	MachineShape *MachineShape `protobuf:"bytes,12,opt,name=machine_shape,json=machineShape,proto3" json:"machine_shape,omitempty"`
	// Optional. The disk_type for the `Forecast` values to return with request
	// persistent-disk cloud_resource_type.
	// Empty disk_type will return results matching all disk types.
	DiskType string `protobuf:"bytes,9,opt,name=disk_type,json=diskType,proto3" json:"disk_type,omitempty"`
	// Optional. Whether the persistent disk is in confidential mode.
	ConfidentialMode bool `protobuf:"varint,13,opt,name=confidential_mode,json=confidentialMode,proto3" json:"confidential_mode,omitempty"`
	// Optional. The GPU type for the `Forecast` values to return. Sample values
	// are "nvidia-tesla-t4", and "nvidia-tesla-a100". See
	// https://cloud.google.com/compute/docs/gpus for a list. Empty gpu_type
	// will return results matching all GPUs.
	GpuType string `protobuf:"bytes,10,opt,name=gpu_type,json=gpuType,proto3" json:"gpu_type,omitempty"`
	// Optional. The TPU type for the `Forecast` values to return. Empty tpu_type
	// will return results matching all TPUs.
	TpuType string `protobuf:"bytes,11,opt,name=tpu_type,json=tpuType,proto3" json:"tpu_type,omitempty"`
	// Required. The resource for the `Forecast` values to return. Possible values
	// include "gce-vcpus", "gce-ram", "gce-local-ssd", "gce-persistent-disk",
	// "gce-gpu" and "gce-tpu". Empty cloud_resource_type will return results
	// matching all resources.
	CloudResourceType string `protobuf:"bytes,3,opt,name=cloud_resource_type,json=cloudResourceType,proto3" json:"cloud_resource_type,omitempty"`
	// The type of forecast to use to select the `Forecast` values to return.
	// FORECAST_TYPE_UNSPECIFIED will return results matching all the forecast
	// types.
	ForecastType Forecast_ForecastType `protobuf:"varint,4,opt,name=forecast_type,json=forecastType,proto3,enum=google.cloud.capacityplanner.v1beta.Forecast_ForecastType" json:"forecast_type,omitempty"`
	// The prediction interval to use to select the `Forecast` values to return.
	// PREDICTION_INTERVAL_UNSPECIFIED will return results matching all prediction
	// intervals.
	PredictionInterval Forecast_PredictionInterval `protobuf:"varint,5,opt,name=prediction_interval,json=predictionInterval,proto3,enum=google.cloud.capacityplanner.v1beta.Forecast_PredictionInterval" json:"prediction_interval,omitempty"`
	// Aggregation Method of the historical usage for which the forecast is
	// generated
	AggregationMethod UsageHistory_AggregationMethod `protobuf:"varint,8,opt,name=aggregation_method,json=aggregationMethod,proto3,enum=google.cloud.capacityplanner.v1beta.UsageHistory_AggregationMethod" json:"aggregation_method,omitempty"`
	// contains filtered or unexported fields
}

The QueryForecasts request. Next : 14

func (*QueryForecastsRequest) Descriptor

func (*QueryForecastsRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryForecastsRequest.ProtoReflect.Descriptor instead.

func (*QueryForecastsRequest) GetAggregationMethod

func (x *QueryForecastsRequest) GetAggregationMethod() UsageHistory_AggregationMethod

func (*QueryForecastsRequest) GetCloudResourceType

func (x *QueryForecastsRequest) GetCloudResourceType() string

func (*QueryForecastsRequest) GetConfidentialMode

func (x *QueryForecastsRequest) GetConfidentialMode() bool

func (*QueryForecastsRequest) GetDiskType

func (x *QueryForecastsRequest) GetDiskType() string

func (*QueryForecastsRequest) GetForecastType

func (x *QueryForecastsRequest) GetForecastType() Forecast_ForecastType

func (*QueryForecastsRequest) GetGpuType

func (x *QueryForecastsRequest) GetGpuType() string

func (*QueryForecastsRequest) GetMachineFamily

func (x *QueryForecastsRequest) GetMachineFamily() string

func (*QueryForecastsRequest) GetMachineShape

func (x *QueryForecastsRequest) GetMachineShape() *MachineShape

func (*QueryForecastsRequest) GetParent

func (x *QueryForecastsRequest) GetParent() string

func (*QueryForecastsRequest) GetPredictionInterval

func (x *QueryForecastsRequest) GetPredictionInterval() Forecast_PredictionInterval

func (*QueryForecastsRequest) GetTpuType

func (x *QueryForecastsRequest) GetTpuType() string

func (*QueryForecastsRequest) ProtoMessage

func (*QueryForecastsRequest) ProtoMessage()

func (*QueryForecastsRequest) ProtoReflect

func (x *QueryForecastsRequest) ProtoReflect() protoreflect.Message

func (*QueryForecastsRequest) Reset

func (x *QueryForecastsRequest) Reset()

func (*QueryForecastsRequest) String

func (x *QueryForecastsRequest) String() string

QueryForecastsResponse

type QueryForecastsResponse struct {

	// The forecasts that match the request.
	Forecasts []*Forecast `protobuf:"bytes,1,rep,name=forecasts,proto3" json:"forecasts,omitempty"`
	// contains filtered or unexported fields
}

The QueryForecasts response.

func (*QueryForecastsResponse) Descriptor

func (*QueryForecastsResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryForecastsResponse.ProtoReflect.Descriptor instead.

func (*QueryForecastsResponse) GetForecasts

func (x *QueryForecastsResponse) GetForecasts() []*Forecast

func (*QueryForecastsResponse) ProtoMessage

func (*QueryForecastsResponse) ProtoMessage()

func (*QueryForecastsResponse) ProtoReflect

func (x *QueryForecastsResponse) ProtoReflect() protoreflect.Message

func (*QueryForecastsResponse) Reset

func (x *QueryForecastsResponse) Reset()

func (*QueryForecastsResponse) String

func (x *QueryForecastsResponse) String() string

QueryReservationsRequest

type QueryReservationsRequest struct {

	// Required. The compute engine resource and location for the time series
	// values to return. The format is:
	//
	// projects/{project}/locations/{location} or
	// organizations/{organization}/locations/{location} or
	// folders/{folder}/locations/{location}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The location level of the reservations usage timeseries.
	LocationLevel TimeSeries_LocationType `protobuf:"varint,16,opt,name=location_level,json=locationLevel,proto3,enum=google.cloud.capacityplanner.v1beta.TimeSeries_LocationType" json:"location_level,omitempty"`
	// Optional. The machine family to use to select the aggregate reserved values
	// to return. Possible values include "n1", and "n2d" etc. Empty
	// machine_family will return results matching all machine families.
	MachineFamily string `protobuf:"bytes,2,opt,name=machine_family,json=machineFamily,proto3" json:"machine_family,omitempty"`
	// Optional. The machine_shape as a filter to select matching reservations.
	MachineShape *MachineShape `protobuf:"bytes,11,opt,name=machine_shape,json=machineShape,proto3" json:"machine_shape,omitempty"`
	// Optional. The GPU type for the reserved values to return. Sample values
	// are "nvidia-tesla-t4", and "nvidia-tesla-a100". See
	// https://cloud.google.com/compute/docs/gpus for a list. Empty gpu_type
	// will return results matching all GPUs.
	GpuType string `protobuf:"bytes,3,opt,name=gpu_type,json=gpuType,proto3" json:"gpu_type,omitempty"`
	// Required. The resource for the reserved values to return. Possible values
	// include "gce-vcpus", "gce-ram", "gce-local-ssd", "gce-gpu" and "gce-vm".
	CloudResourceType string `protobuf:"bytes,4,opt,name=cloud_resource_type,json=cloudResourceType,proto3" json:"cloud_resource_type,omitempty"`
	// Required. The Reservation type for example, future reservation request and
	// allocation. If unspecified, all types are
	// included.
	ReservationType QueryReservationsRequest_ReservationType `protobuf:"varint,5,opt,name=reservation_type,json=reservationType,proto3,enum=google.cloud.capacityplanner.v1beta.QueryReservationsRequest_ReservationType" json:"reservation_type,omitempty"`
	// Optional. Types of share settings to filter reservations in response. If
	// unspecified, all types are included.
	ShareType QueryReservationsRequest_ShareType `protobuf:"varint,6,opt,name=share_type,json=shareType,proto3,enum=google.cloud.capacityplanner.v1beta.QueryReservationsRequest_ShareType" json:"share_type,omitempty"`
	// Optional. Types of ownerships to filter reservations based on.
	// In case of OWNED, it filters reservations which are owned by selected
	// parent project/folder/organization. If unspecified, all types are
	// included.
	OwnershipType QueryReservationsRequest_OwnershipType `protobuf:"varint,7,opt,name=ownership_type,json=ownershipType,proto3,enum=google.cloud.capacityplanner.v1beta.QueryReservationsRequest_OwnershipType" json:"ownership_type,omitempty"`
	// Required. Reservations output data format.
	ReservationDataLevel QueryReservationsRequest_ReservationDataLevel `protobuf:"varint,8,opt,name=reservation_data_level,json=reservationDataLevel,proto3,enum=google.cloud.capacityplanner.v1beta.QueryReservationsRequest_ReservationDataLevel" json:"reservation_data_level,omitempty"`
	// Optional. Whether to include pending for approval reservations in the
	// response. This field is only applicable for future reservations.
	IncludeUnapprovedReservations bool `protobuf:"varint,12,opt,name=include_unapproved_reservations,json=includeUnapprovedReservations,proto3" json:"include_unapproved_reservations,omitempty"`
	// Optional. Aggregation Method of the historical reservation usage
	AggregationMethod UsageHistory_AggregationMethod `protobuf:"varint,13,opt,name=aggregation_method,json=aggregationMethod,proto3,enum=google.cloud.capacityplanner.v1beta.UsageHistory_AggregationMethod" json:"aggregation_method,omitempty"`
	// Optional. The start date of reservations usage.
	StartDate *date.Date `protobuf:"bytes,14,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
	// Optional. The end date of reservations usage.
	EndDate *date.Date `protobuf:"bytes,15,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
	// contains filtered or unexported fields
}

The QueryReservations request.

func (*QueryReservationsRequest) Descriptor

func (*QueryReservationsRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryReservationsRequest.ProtoReflect.Descriptor instead.

func (*QueryReservationsRequest) GetAggregationMethod

func (x *QueryReservationsRequest) GetAggregationMethod() UsageHistory_AggregationMethod

func (*QueryReservationsRequest) GetCloudResourceType

func (x *QueryReservationsRequest) GetCloudResourceType() string

func (*QueryReservationsRequest) GetEndDate

func (x *QueryReservationsRequest) GetEndDate() *date.Date

func (*QueryReservationsRequest) GetGpuType

func (x *QueryReservationsRequest) GetGpuType() string

func (*QueryReservationsRequest) GetIncludeUnapprovedReservations

func (x *QueryReservationsRequest) GetIncludeUnapprovedReservations() bool

func (*QueryReservationsRequest) GetLocationLevel

func (x *QueryReservationsRequest) GetLocationLevel() TimeSeries_LocationType

func (*QueryReservationsRequest) GetMachineFamily

func (x *QueryReservationsRequest) GetMachineFamily() string

func (*QueryReservationsRequest) GetMachineShape

func (x *QueryReservationsRequest) GetMachineShape() *MachineShape

func (*QueryReservationsRequest) GetOwnershipType

func (*QueryReservationsRequest) GetParent

func (x *QueryReservationsRequest) GetParent() string

func (*QueryReservationsRequest) GetReservationDataLevel

func (*QueryReservationsRequest) GetReservationType

func (*QueryReservationsRequest) GetShareType

func (*QueryReservationsRequest) GetStartDate

func (x *QueryReservationsRequest) GetStartDate() *date.Date

func (*QueryReservationsRequest) ProtoMessage

func (*QueryReservationsRequest) ProtoMessage()

func (*QueryReservationsRequest) ProtoReflect

func (x *QueryReservationsRequest) ProtoReflect() protoreflect.Message

func (*QueryReservationsRequest) Reset

func (x *QueryReservationsRequest) Reset()

func (*QueryReservationsRequest) String

func (x *QueryReservationsRequest) String() string

QueryReservationsRequest_OwnershipType

type QueryReservationsRequest_OwnershipType int32

Reservation ownership status to provide distinction for Capacity Planning.

QueryReservationsRequest_OWNERSHIP_TYPE_UNSPECIFIED, QueryReservationsRequest_OWNERSHIP_TYPE_OWNED, QueryReservationsRequest_OWNERSHIP_TYPE_SHARED_BY_OTHERS

const (
	// No ownership status specified.
	QueryReservationsRequest_OWNERSHIP_TYPE_UNSPECIFIED QueryReservationsRequest_OwnershipType = 0
	// For the reservations owned within selected Google Cloud Platform Resource
	// Container (project/folder/organization).
	QueryReservationsRequest_OWNERSHIP_TYPE_OWNED QueryReservationsRequest_OwnershipType = 1
	// For the reservations consumable within selected Google Cloud Platform
	// Resource Container (project/folder/organization), but not owned by them.
	QueryReservationsRequest_OWNERSHIP_TYPE_SHARED_BY_OTHERS QueryReservationsRequest_OwnershipType = 2
)

func (QueryReservationsRequest_OwnershipType) Descriptor

func (QueryReservationsRequest_OwnershipType) Enum

func (QueryReservationsRequest_OwnershipType) EnumDescriptor

func (QueryReservationsRequest_OwnershipType) EnumDescriptor() ([]byte, []int)

Deprecated: Use QueryReservationsRequest_OwnershipType.Descriptor instead.

func (QueryReservationsRequest_OwnershipType) Number

func (QueryReservationsRequest_OwnershipType) String

func (QueryReservationsRequest_OwnershipType) Type

QueryReservationsRequest_ReservationDataLevel

type QueryReservationsRequest_ReservationDataLevel int32

The form in which data of reservations should be returned. In case of AGGREGATED, timeseries for selected reservations is returned. If unspecified, all levels are included.

QueryReservationsRequest_RESERVATION_DATA_LEVEL_UNSPECIFIED, QueryReservationsRequest_RESERVATION_DATA_LEVEL_AGGREGATED, QueryReservationsRequest_RESERVATION_DATA_LEVEL_PER_RESERVATION

const (
	// No reservation data level specified.
	QueryReservationsRequest_RESERVATION_DATA_LEVEL_UNSPECIFIED QueryReservationsRequest_ReservationDataLevel = 0
	// aggregated reservations data in a timeseries or aggregation over
	// timeseries.
	QueryReservationsRequest_RESERVATION_DATA_LEVEL_AGGREGATED QueryReservationsRequest_ReservationDataLevel = 1
	// per reservation detail which is equivalent of Arcus Future Reservation or
	// Allocation with only limited fields which are useful for Capacity
	// Planning.
	QueryReservationsRequest_RESERVATION_DATA_LEVEL_PER_RESERVATION QueryReservationsRequest_ReservationDataLevel = 2
)

func (QueryReservationsRequest_ReservationDataLevel) Descriptor

func (QueryReservationsRequest_ReservationDataLevel) Enum

func (QueryReservationsRequest_ReservationDataLevel) EnumDescriptor

func (QueryReservationsRequest_ReservationDataLevel) EnumDescriptor() ([]byte, []int)

Deprecated: Use QueryReservationsRequest_ReservationDataLevel.Descriptor instead.

func (QueryReservationsRequest_ReservationDataLevel) Number

func (QueryReservationsRequest_ReservationDataLevel) String

func (QueryReservationsRequest_ReservationDataLevel) Type

QueryReservationsRequest_ReservationType

type QueryReservationsRequest_ReservationType int32

Type of the reservation

QueryReservationsRequest_RESERVATION_TYPE_UNSPECIFIED, QueryReservationsRequest_RESERVATION_TYPE_ALLOCATION, QueryReservationsRequest_RESERVATION_TYPE_FUTURE_RESERVATION, QueryReservationsRequest_RESERVATION_TYPE_ALL

const (
	// No reservation type specified.
	QueryReservationsRequest_RESERVATION_TYPE_UNSPECIFIED QueryReservationsRequest_ReservationType = 0
	// Allocation refers to realized reservation either auto created or created
	// by the users on demand.
	QueryReservationsRequest_RESERVATION_TYPE_ALLOCATION QueryReservationsRequest_ReservationType = 1
	// Future Reservation requests created by users.
	QueryReservationsRequest_RESERVATION_TYPE_FUTURE_RESERVATION QueryReservationsRequest_ReservationType = 2
	// All reservations.
	QueryReservationsRequest_RESERVATION_TYPE_ALL QueryReservationsRequest_ReservationType = 3
)

func (QueryReservationsRequest_ReservationType) Descriptor

func (QueryReservationsRequest_ReservationType) Enum

func (QueryReservationsRequest_ReservationType) EnumDescriptor

func (QueryReservationsRequest_ReservationType) EnumDescriptor() ([]byte, []int)

Deprecated: Use QueryReservationsRequest_ReservationType.Descriptor instead.

func (QueryReservationsRequest_ReservationType) Number

func (QueryReservationsRequest_ReservationType) String

func (QueryReservationsRequest_ReservationType) Type

QueryReservationsRequest_ShareType

type QueryReservationsRequest_ShareType int32

Possible scope in which the reservation can be shared.

QueryReservationsRequest_SHARE_TYPE_UNSPECIFIED, QueryReservationsRequest_SHARE_TYPE_LOCAL, QueryReservationsRequest_SHARE_TYPE_SPECIFIC_PROJECTS

const (
	// No share type specified.
	QueryReservationsRequest_SHARE_TYPE_UNSPECIFIED QueryReservationsRequest_ShareType = 0
	// Default value, for which reservation is open to only owner project.
	QueryReservationsRequest_SHARE_TYPE_LOCAL QueryReservationsRequest_ShareType = 1
	// Shared-reservation is open to specific projects.
	QueryReservationsRequest_SHARE_TYPE_SPECIFIC_PROJECTS QueryReservationsRequest_ShareType = 2
)

func (QueryReservationsRequest_ShareType) Descriptor

func (QueryReservationsRequest_ShareType) Enum

func (QueryReservationsRequest_ShareType) EnumDescriptor

func (QueryReservationsRequest_ShareType) EnumDescriptor() ([]byte, []int)

Deprecated: Use QueryReservationsRequest_ShareType.Descriptor instead.

func (QueryReservationsRequest_ShareType) Number

func (QueryReservationsRequest_ShareType) String

func (QueryReservationsRequest_ShareType) Type

QueryReservationsResponse

type QueryReservationsResponse struct {

	// The reservations data that match the request.
	Reservations []*ReservationData `protobuf:"bytes,1,rep,name=reservations,proto3" json:"reservations,omitempty"`
	// contains filtered or unexported fields
}

The QueryReservations response.

func (*QueryReservationsResponse) Descriptor

func (*QueryReservationsResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryReservationsResponse.ProtoReflect.Descriptor instead.

func (*QueryReservationsResponse) GetReservations

func (x *QueryReservationsResponse) GetReservations() []*ReservationData

func (*QueryReservationsResponse) ProtoMessage

func (*QueryReservationsResponse) ProtoMessage()

func (*QueryReservationsResponse) ProtoReflect

func (*QueryReservationsResponse) Reset

func (x *QueryReservationsResponse) Reset()

func (*QueryReservationsResponse) String

func (x *QueryReservationsResponse) String() string

QueryUsageHistoriesRequest

type QueryUsageHistoriesRequest struct {

	// Required. The compute engine resource and location for the time series
	// values to return. The format is:
	//
	//	projects/{project}/locations/{location} or
	//	organizations/{organization}/locations/{location} or
	//	folders/{folder}/locations/{location}
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The location level of the reservations usage timeseries.
	LocationLevel TimeSeries_LocationType `protobuf:"varint,11,opt,name=location_level,json=locationLevel,proto3,enum=google.cloud.capacityplanner.v1beta.TimeSeries_LocationType" json:"location_level,omitempty"`
	// Optional. The is_spot flag is used to fetch the usage data for preemptible
	// Resources.
	IsSpot bool `protobuf:"varint,14,opt,name=is_spot,json=isSpot,proto3" json:"is_spot,omitempty"`
	// The machine family for the `UsageHistory` values to return. Possible values
	// include "n1", and "n2d". See
	// https://cloud.google.com/compute/docs/machine-types for more examples.
	// Empty machine_family will return results matching all machine families.
	MachineFamily string `protobuf:"bytes,2,opt,name=machine_family,json=machineFamily,proto3" json:"machine_family,omitempty"`
	// Optional. The machine shape for the `UsageHistory` values to return.
	MachineShape *MachineShape `protobuf:"bytes,13,opt,name=machine_shape,json=machineShape,proto3" json:"machine_shape,omitempty"`
	// Optional. The disk_type for the `UsageHistory` values to return request
	// with persistent-disk cloud_resource_type. Empty disk_type will return
	// results matching all disk types.
	DiskType string `protobuf:"bytes,7,opt,name=disk_type,json=diskType,proto3" json:"disk_type,omitempty"`
	// Optional. Whether the persistent disk is in confidential mode.
	ConfidentialMode bool `protobuf:"varint,15,opt,name=confidential_mode,json=confidentialMode,proto3" json:"confidential_mode,omitempty"`
	// Optional. The GPU type for the `UsageHistory` values to return. Sample
	// values are "nvidia-tesla-t4", and "nvidia-tesla-a100". See
	// https://cloud.google.com/compute/docs/gpus for a list. Empty gpu_type
	// will return results matching all GPUs.
	GpuType string `protobuf:"bytes,8,opt,name=gpu_type,json=gpuType,proto3" json:"gpu_type,omitempty"`
	// Optional. The TPU type for the `UsageHistory` values to return. Empty
	// tpu_type will return results matching all TPUs.
	TpuType string `protobuf:"bytes,12,opt,name=tpu_type,json=tpuType,proto3" json:"tpu_type,omitempty"`
	// Required. The resource for the `UsageHistory` values to return. Possible
	// values include "gce-vcpus", "gce-ram", "gce-local-ssd",
	// "gce-persistent-disk", "gce-gpu" and "gce-tpu". Empty cloud_resource_type
	// will return results matching all resources.
	CloudResourceType string `protobuf:"bytes,3,opt,name=cloud_resource_type,json=cloudResourceType,proto3" json:"cloud_resource_type,omitempty"`
	// The method that should be used to convert sampled usage data to daily
	// usage values.
	// AGGREGATION_METHOD_UNSPECIFIED will return results matching all the
	// aggregation methods.
	UsageAggregationMethod UsageHistory_AggregationMethod `protobuf:"varint,4,opt,name=usage_aggregation_method,json=usageAggregationMethod,proto3,enum=google.cloud.capacityplanner.v1beta.UsageHistory_AggregationMethod" json:"usage_aggregation_method,omitempty"`
	// Optional. The start date of reservations usage.
	StartDate *date.Date `protobuf:"bytes,9,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
	// Optional. The end date of reservations usage.
	EndDate *date.Date `protobuf:"bytes,10,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
	// contains filtered or unexported fields
}

The QueryUsageHistories request. Next : 16

func (*QueryUsageHistoriesRequest) Descriptor

func (*QueryUsageHistoriesRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryUsageHistoriesRequest.ProtoReflect.Descriptor instead.

func (*QueryUsageHistoriesRequest) GetCloudResourceType

func (x *QueryUsageHistoriesRequest) GetCloudResourceType() string

func (*QueryUsageHistoriesRequest) GetConfidentialMode

func (x *QueryUsageHistoriesRequest) GetConfidentialMode() bool

func (*QueryUsageHistoriesRequest) GetDiskType

func (x *QueryUsageHistoriesRequest) GetDiskType() string

func (*QueryUsageHistoriesRequest) GetEndDate

func (x *QueryUsageHistoriesRequest) GetEndDate() *date.Date

func (*QueryUsageHistoriesRequest) GetGpuType

func (x *QueryUsageHistoriesRequest) GetGpuType() string

func (*QueryUsageHistoriesRequest) GetIsSpot

func (x *QueryUsageHistoriesRequest) GetIsSpot() bool

func (*QueryUsageHistoriesRequest) GetLocationLevel

func (*QueryUsageHistoriesRequest) GetMachineFamily

func (x *QueryUsageHistoriesRequest) GetMachineFamily() string

func (*QueryUsageHistoriesRequest) GetMachineShape

func (x *QueryUsageHistoriesRequest) GetMachineShape() *MachineShape

func (*QueryUsageHistoriesRequest) GetParent

func (x *QueryUsageHistoriesRequest) GetParent() string

func (*QueryUsageHistoriesRequest) GetStartDate

func (x *QueryUsageHistoriesRequest) GetStartDate() *date.Date

func (*QueryUsageHistoriesRequest) GetTpuType

func (x *QueryUsageHistoriesRequest) GetTpuType() string

func (*QueryUsageHistoriesRequest) GetUsageAggregationMethod

func (x *QueryUsageHistoriesRequest) GetUsageAggregationMethod() UsageHistory_AggregationMethod

func (*QueryUsageHistoriesRequest) ProtoMessage

func (*QueryUsageHistoriesRequest) ProtoMessage()

func (*QueryUsageHistoriesRequest) ProtoReflect

func (*QueryUsageHistoriesRequest) Reset

func (x *QueryUsageHistoriesRequest) Reset()

func (*QueryUsageHistoriesRequest) String

func (x *QueryUsageHistoriesRequest) String() string

QueryUsageHistoriesResponse

type QueryUsageHistoriesResponse struct {

	// The usage histories that match the request.
	UsageHistories []*UsageHistory `protobuf:"bytes,1,rep,name=usage_histories,json=usageHistories,proto3" json:"usage_histories,omitempty"`
	// contains filtered or unexported fields
}

The QueryUsageHistories response.

func (*QueryUsageHistoriesResponse) Descriptor

func (*QueryUsageHistoriesResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryUsageHistoriesResponse.ProtoReflect.Descriptor instead.

func (*QueryUsageHistoriesResponse) GetUsageHistories

func (x *QueryUsageHistoriesResponse) GetUsageHistories() []*UsageHistory

func (*QueryUsageHistoriesResponse) ProtoMessage

func (*QueryUsageHistoriesResponse) ProtoMessage()

func (*QueryUsageHistoriesResponse) ProtoReflect

func (*QueryUsageHistoriesResponse) Reset

func (x *QueryUsageHistoriesResponse) Reset()

func (*QueryUsageHistoriesResponse) String

func (x *QueryUsageHistoriesResponse) String() string

ReservationData

type ReservationData struct {

	// Identifier. The resource name of the connection in the form of:
	// `projects/{project_id}/locations/{location_id}/reservations/{reservation_id}`
	// or
	// `organizations/{organization_id}/locations/{location_id}/reservations/{reservation_id}`
	// or
	// `folders/{folder_id}/locations/{location_id}/reservations/{reservation_id}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The collection of data points that represent the aggregated reserved value
	// for reservations filtered by the criteria.
	TimeSeries *TimeSeries `protobuf:"bytes,2,opt,name=time_series,json=timeSeries,proto3" json:"time_series,omitempty"`
	// The collection of data points that represent the aggregated used value for
	// reservations filtered by the criteria.
	UsedReservationValues *TimeSeries `protobuf:"bytes,5,opt,name=used_reservation_values,json=usedReservationValues,proto3" json:"used_reservation_values,omitempty"`
	// Future reservations filtered by the criteria.
	FutureReservations []*FutureReservation `protobuf:"bytes,3,rep,name=future_reservations,json=futureReservations,proto3" json:"future_reservations,omitempty"`
	// Allocations filtered by the criteria.
	Allocations []*Allocation `protobuf:"bytes,4,rep,name=allocations,proto3" json:"allocations,omitempty"`
	// contains filtered or unexported fields
}

Response entity for reservations data.

func (*ReservationData) Descriptor

func (*ReservationData) Descriptor() ([]byte, []int)

Deprecated: Use ReservationData.ProtoReflect.Descriptor instead.

func (*ReservationData) GetAllocations

func (x *ReservationData) GetAllocations() []*Allocation

func (*ReservationData) GetFutureReservations

func (x *ReservationData) GetFutureReservations() []*FutureReservation

func (*ReservationData) GetName

func (x *ReservationData) GetName() string

func (*ReservationData) GetTimeSeries

func (x *ReservationData) GetTimeSeries() *TimeSeries

func (*ReservationData) GetUsedReservationValues

func (x *ReservationData) GetUsedReservationValues() *TimeSeries

func (*ReservationData) ProtoMessage

func (*ReservationData) ProtoMessage()

func (*ReservationData) ProtoReflect

func (x *ReservationData) ProtoReflect() protoreflect.Message

func (*ReservationData) Reset

func (x *ReservationData) Reset()

func (*ReservationData) String

func (x *ReservationData) String() string

ResourceAttribute

type ResourceAttribute struct {
	Key   string         `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value *ResourceValue `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

An attribute of a Google Cloud Platform resource.

func (*ResourceAttribute) Descriptor

func (*ResourceAttribute) Descriptor() ([]byte, []int)

Deprecated: Use ResourceAttribute.ProtoReflect.Descriptor instead.

func (*ResourceAttribute) GetKey

func (x *ResourceAttribute) GetKey() string

func (*ResourceAttribute) GetValue

func (x *ResourceAttribute) GetValue() *ResourceValue

func (*ResourceAttribute) ProtoMessage

func (*ResourceAttribute) ProtoMessage()

func (*ResourceAttribute) ProtoReflect

func (x *ResourceAttribute) ProtoReflect() protoreflect.Message

func (*ResourceAttribute) Reset

func (x *ResourceAttribute) Reset()

func (*ResourceAttribute) String

func (x *ResourceAttribute) String() string

ResourceContainer

type ResourceContainer struct {
	Type ResourceContainer_Type `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.capacityplanner.v1beta.ResourceContainer_Type" json:"type,omitempty"`
	// Required. Identifier of the resource container. For example, project number
	// for project type.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

The resource container of Google Cloud Platform hierarchy such as a project.

func (*ResourceContainer) Descriptor

func (*ResourceContainer) Descriptor() ([]byte, []int)

Deprecated: Use ResourceContainer.ProtoReflect.Descriptor instead.

func (*ResourceContainer) GetId

func (x *ResourceContainer) GetId() string

func (*ResourceContainer) GetType

func (*ResourceContainer) ProtoMessage

func (*ResourceContainer) ProtoMessage()

func (*ResourceContainer) ProtoReflect

func (x *ResourceContainer) ProtoReflect() protoreflect.Message

func (*ResourceContainer) Reset

func (x *ResourceContainer) Reset()

func (*ResourceContainer) String

func (x *ResourceContainer) String() string

ResourceContainer_Type

type ResourceContainer_Type int32

ResourceContainer_TYPE_UNSPECIFIED, ResourceContainer_PROJECT, ResourceContainer_FOLDER, ResourceContainer_ORG

const (
	ResourceContainer_TYPE_UNSPECIFIED ResourceContainer_Type = 0
	ResourceContainer_PROJECT          ResourceContainer_Type = 1
	ResourceContainer_FOLDER           ResourceContainer_Type = 2
	ResourceContainer_ORG              ResourceContainer_Type = 3
)

func (ResourceContainer_Type) Descriptor

func (ResourceContainer_Type) Enum

func (ResourceContainer_Type) EnumDescriptor

func (ResourceContainer_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use ResourceContainer_Type.Descriptor instead.

func (ResourceContainer_Type) Number

func (ResourceContainer_Type) String

func (x ResourceContainer_Type) String() string

func (ResourceContainer_Type) Type

ResourceIdKey

type ResourceIdKey struct {

	// Demand fields for the resource.
	//
	// Types that are valid to be assigned to DemandFields:
	//
	//	*ResourceIdKey_ResourceCode
	DemandFields isResourceIdKey_DemandFields `protobuf_oneof:"demand_fields"`
	// Required. Id of the resource.
	ResourceId *ResourceIdentifier `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	// contains filtered or unexported fields
}

The id for a Google Cloud Platform resource key.

func (*ResourceIdKey) Descriptor

func (*ResourceIdKey) Descriptor() ([]byte, []int)

Deprecated: Use ResourceIdKey.ProtoReflect.Descriptor instead.

func (*ResourceIdKey) GetDemandFields

func (x *ResourceIdKey) GetDemandFields() isResourceIdKey_DemandFields

func (*ResourceIdKey) GetResourceCode

func (x *ResourceIdKey) GetResourceCode() string

func (*ResourceIdKey) GetResourceId

func (x *ResourceIdKey) GetResourceId() *ResourceIdentifier

func (*ResourceIdKey) ProtoMessage

func (*ResourceIdKey) ProtoMessage()

func (*ResourceIdKey) ProtoReflect

func (x *ResourceIdKey) ProtoReflect() protoreflect.Message

func (*ResourceIdKey) Reset

func (x *ResourceIdKey) Reset()

func (*ResourceIdKey) String

func (x *ResourceIdKey) String() string

ResourceIdKey_ResourceCode

type ResourceIdKey_ResourceCode struct {
	// Required. resource_code for the resource. eg: gce-ram, gce-vcpus,
	// gce-gpu, gce-tpu, gce-vm, gce-persistent-disk, gce-local-ssd.
	ResourceCode string `protobuf:"bytes,2,opt,name=resource_code,json=resourceCode,proto3,oneof"`
}

ResourceIdentifier

type ResourceIdentifier struct {
	ServiceName        string               `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	ResourceName       string               `protobuf:"bytes,2,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
	ResourceAttributes []*ResourceAttribute `protobuf:"bytes,3,rep,name=resource_attributes,json=resourceAttributes,proto3" json:"resource_attributes,omitempty"`
	// contains filtered or unexported fields
}

The identifier for a Google Cloud Platform resource.

func (*ResourceIdentifier) Descriptor

func (*ResourceIdentifier) Descriptor() ([]byte, []int)

Deprecated: Use ResourceIdentifier.ProtoReflect.Descriptor instead.

func (*ResourceIdentifier) GetResourceAttributes

func (x *ResourceIdentifier) GetResourceAttributes() []*ResourceAttribute

func (*ResourceIdentifier) GetResourceName

func (x *ResourceIdentifier) GetResourceName() string

func (*ResourceIdentifier) GetServiceName

func (x *ResourceIdentifier) GetServiceName() string

func (*ResourceIdentifier) ProtoMessage

func (*ResourceIdentifier) ProtoMessage()

func (*ResourceIdentifier) ProtoReflect

func (x *ResourceIdentifier) ProtoReflect() protoreflect.Message

func (*ResourceIdentifier) Reset

func (x *ResourceIdentifier) Reset()

func (*ResourceIdentifier) String

func (x *ResourceIdentifier) String() string

ResourceValue

type ResourceValue struct {
	Unit  Unit   `protobuf:"varint,1,opt,name=unit,proto3,enum=google.cloud.capacityplanner.v1beta.Unit" json:"unit,omitempty"`
	Value *Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ResourceValue) Descriptor

func (*ResourceValue) Descriptor() ([]byte, []int)

Deprecated: Use ResourceValue.ProtoReflect.Descriptor instead.

func (*ResourceValue) GetUnit

func (x *ResourceValue) GetUnit() Unit

func (*ResourceValue) GetValue

func (x *ResourceValue) GetValue() *Value

func (*ResourceValue) ProtoMessage

func (*ResourceValue) ProtoMessage()

func (*ResourceValue) ProtoReflect

func (x *ResourceValue) ProtoReflect() protoreflect.Message

func (*ResourceValue) Reset

func (x *ResourceValue) Reset()

func (*ResourceValue) String

func (x *ResourceValue) String() string

TimeSeries

type TimeSeries struct {

	// Required. The type of location that the time series is summarizing.
	LocationType TimeSeries_LocationType `protobuf:"varint,1,opt,name=location_type,json=locationType,proto3,enum=google.cloud.capacityplanner.v1beta.TimeSeries_LocationType" json:"location_type,omitempty"`
	// Optional. The location of the usage data in time series.
	Location string `protobuf:"bytes,9,opt,name=location,proto3" json:"location,omitempty"`
	// Optional. The location of the usage data in time series.
	IsSpot bool `protobuf:"varint,11,opt,name=is_spot,json=isSpot,proto3" json:"is_spot,omitempty"`
	// The machine family for the time series values to return. Possible values
	// include "n1" and "n2d".
	MachineFamily string `protobuf:"bytes,2,opt,name=machine_family,json=machineFamily,proto3" json:"machine_family,omitempty"`
	// The disk type for the time series values to return.
	DiskType string `protobuf:"bytes,6,opt,name=disk_type,json=diskType,proto3" json:"disk_type,omitempty"`
	// Optional. The confidential mode for disk.
	ConfidentialMode bool `protobuf:"varint,12,opt,name=confidential_mode,json=confidentialMode,proto3" json:"confidential_mode,omitempty"`
	// The GPU type of the time series.
	GpuType string `protobuf:"bytes,7,opt,name=gpu_type,json=gpuType,proto3" json:"gpu_type,omitempty"`
	// The TPU type of the time series.
	TpuType string `protobuf:"bytes,10,opt,name=tpu_type,json=tpuType,proto3" json:"tpu_type,omitempty"`
	// The machine shape of the time series.
	MachineShape *MachineShape `protobuf:"bytes,8,opt,name=machine_shape,json=machineShape,proto3" json:"machine_shape,omitempty"`
	// The resource for the time series values to return. Possible values include
	// "gce-vcpus", "gce-ram", "gce-local-ssd", "gce-persistent-disk", "gce-gpu",
	// "gce-tpu" and "gce-vm".
	CloudResourceType string `protobuf:"bytes,3,opt,name=cloud_resource_type,json=cloudResourceType,proto3" json:"cloud_resource_type,omitempty"`
	// The data points of this time series. When listing time series, points are
	// returned in chronological order.
	Points []*Point `protobuf:"bytes,4,rep,name=points,proto3" json:"points,omitempty"`
	// The units in which the values are reported.
	Unit string `protobuf:"bytes,5,opt,name=unit,proto3" json:"unit,omitempty"`
	// contains filtered or unexported fields
}

A collection of data points that describes the time-varying values of a resource. A time series is identified by its ID. Next : 13

func (*TimeSeries) Descriptor

func (*TimeSeries) Descriptor() ([]byte, []int)

Deprecated: Use TimeSeries.ProtoReflect.Descriptor instead.

func (*TimeSeries) GetCloudResourceType

func (x *TimeSeries) GetCloudResourceType() string

func (*TimeSeries) GetConfidentialMode

func (x *TimeSeries) GetConfidentialMode() bool

func (*TimeSeries) GetDiskType

func (x *TimeSeries) GetDiskType() string

func (*TimeSeries) GetGpuType

func (x *TimeSeries) GetGpuType() string

func (*TimeSeries) GetIsSpot

func (x *TimeSeries) GetIsSpot() bool

func (*TimeSeries) GetLocation

func (x *TimeSeries) GetLocation() string

func (*TimeSeries) GetLocationType

func (x *TimeSeries) GetLocationType() TimeSeries_LocationType

func (*TimeSeries) GetMachineFamily

func (x *TimeSeries) GetMachineFamily() string

func (*TimeSeries) GetMachineShape

func (x *TimeSeries) GetMachineShape() *MachineShape

func (*TimeSeries) GetPoints

func (x *TimeSeries) GetPoints() []*Point

func (*TimeSeries) GetTpuType

func (x *TimeSeries) GetTpuType() string

func (*TimeSeries) GetUnit

func (x *TimeSeries) GetUnit() string

func (*TimeSeries) ProtoMessage

func (*TimeSeries) ProtoMessage()

func (*TimeSeries) ProtoReflect

func (x *TimeSeries) ProtoReflect() protoreflect.Message

func (*TimeSeries) Reset

func (x *TimeSeries) Reset()

func (*TimeSeries) String

func (x *TimeSeries) String() string

TimeSeries_LocationType

type TimeSeries_LocationType int32

The type of location that the time series is summarizing.

TimeSeries_LOCATION_TYPE_UNSPECIFIED, TimeSeries_REGIONAL, TimeSeries_ZONAL

const (
	// No location type was specified.
	TimeSeries_LOCATION_TYPE_UNSPECIFIED TimeSeries_LocationType = 0
	// Time series values represent usage aggregated at the region level.
	TimeSeries_REGIONAL TimeSeries_LocationType = 1
	// Time series values represent usage aggregated at the zone level.
	TimeSeries_ZONAL TimeSeries_LocationType = 2
)

func (TimeSeries_LocationType) Descriptor

func (TimeSeries_LocationType) Enum

func (TimeSeries_LocationType) EnumDescriptor

func (TimeSeries_LocationType) EnumDescriptor() ([]byte, []int)

Deprecated: Use TimeSeries_LocationType.Descriptor instead.

func (TimeSeries_LocationType) Number

func (TimeSeries_LocationType) String

func (x TimeSeries_LocationType) String() string

func (TimeSeries_LocationType) Type

UnimplementedUsageServiceServer

type UnimplementedUsageServiceServer struct {
}

UnimplementedUsageServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedUsageServiceServer) ExportForecasts

func (UnimplementedUsageServiceServer) ExportReservationsUsage

func (UnimplementedUsageServiceServer) ExportUsageHistories

func (UnimplementedUsageServiceServer) QueryForecasts

func (UnimplementedUsageServiceServer) QueryReservations

func (UnimplementedUsageServiceServer) QueryUsageHistories

Unit

type Unit int32

Unit_UNIT_UNSPECIFIED, Unit_UNIT_COUNT, Unit_KB, Unit_GB, Unit_TB, Unit_MIB, Unit_GIB, Unit_TIB, Unit_QPS, Unit_MB, Unit_PIB, Unit_TBPS, Unit_GBPS_BITS, Unit_GIB_BITS, Unit_MBPS_BITS, Unit_MBPS_BYTES, Unit_TBPS_BITS, Unit_TBPS_BYTES, Unit_KOPS

const (
	Unit_UNIT_UNSPECIFIED Unit = 0
	Unit_UNIT_COUNT       Unit = 1
	// Kilobytes (10^3 bytes)
	Unit_KB Unit = 2
	// Gigabytes (10^9 bytes)
	Unit_GB Unit = 3
	// Terabytes (10^12 bytes)
	Unit_TB Unit = 4
	// Mebibytes (2^20 bytes)
	Unit_MIB Unit = 17
	// Gibibytes (2^30 bytes)
	Unit_GIB Unit = 5
	// Tebibytes (2^40 bytes)
	Unit_TIB Unit = 6
	// Queries per second
	Unit_QPS Unit = 7
	// Megabytes (10^6 bytes)
	Unit_MB Unit = 8
	// Pebibytes (2^50 bytes)
	Unit_PIB Unit = 9
	// Terabits (10^12 bits) per second
	//
	// Deprecated: Marked as deprecated in google/cloud/capacityplanner/v1beta/resource.proto.
	Unit_TBPS       Unit = 10
	Unit_GBPS_BITS  Unit = 11
	Unit_GIB_BITS   Unit = 12
	Unit_MBPS_BITS  Unit = 13
	Unit_MBPS_BYTES Unit = 14
	Unit_TBPS_BITS  Unit = 15
	Unit_TBPS_BYTES Unit = 16
	Unit_KOPS       Unit = 18
)

func (Unit) Descriptor

func (Unit) Descriptor() protoreflect.EnumDescriptor

func (Unit) Enum

func (x Unit) Enum() *Unit

func (Unit) EnumDescriptor

func (Unit) EnumDescriptor() ([]byte, []int)

Deprecated: Use Unit.Descriptor instead.

func (Unit) Number

func (x Unit) Number() protoreflect.EnumNumber

func (Unit) String

func (x Unit) String() string

func (Unit) Type

func (Unit) Type() protoreflect.EnumType

UnsafeUsageServiceServer

type UnsafeUsageServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeUsageServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UsageServiceServer will result in compilation errors.

UsageHistory

type UsageHistory struct {

	// The collection of data points that represent the historical values.
	TimeSeries *TimeSeries `protobuf:"bytes,1,opt,name=time_series,json=timeSeries,proto3" json:"time_series,omitempty"`
	// Method used to convert sampled usage data to time series values.
	AggregationMethod UsageHistory_AggregationMethod `protobuf:"varint,2,opt,name=aggregation_method,json=aggregationMethod,proto3,enum=google.cloud.capacityplanner.v1beta.UsageHistory_AggregationMethod" json:"aggregation_method,omitempty"`
	// contains filtered or unexported fields
}

A collection of data points that describes the historical time-varying values of a resource.

func (*UsageHistory) Descriptor

func (*UsageHistory) Descriptor() ([]byte, []int)

Deprecated: Use UsageHistory.ProtoReflect.Descriptor instead.

func (*UsageHistory) GetAggregationMethod

func (x *UsageHistory) GetAggregationMethod() UsageHistory_AggregationMethod

func (*UsageHistory) GetTimeSeries

func (x *UsageHistory) GetTimeSeries() *TimeSeries

func (*UsageHistory) ProtoMessage

func (*UsageHistory) ProtoMessage()

func (*UsageHistory) ProtoReflect

func (x *UsageHistory) ProtoReflect() protoreflect.Message

func (*UsageHistory) Reset

func (x *UsageHistory) Reset()

func (*UsageHistory) String

func (x *UsageHistory) String() string

UsageHistory_AggregationMethod

type UsageHistory_AggregationMethod int32

Methods for converting sampled data to time series values.

UsageHistory_AGGREGATION_METHOD_UNSPECIFIED, UsageHistory_MEDIAN, UsageHistory_PEAK, UsageHistory_P50, UsageHistory_P75, UsageHistory_P99

const (
	// No aggregation method is specified.
	UsageHistory_AGGREGATION_METHOD_UNSPECIFIED UsageHistory_AggregationMethod = 0
	UsageHistory_MEDIAN                         UsageHistory_AggregationMethod = 1
	// Time series values represent the 99th percentile of the sampled values.
	UsageHistory_PEAK UsageHistory_AggregationMethod = 2
	// Time series values represent the 50th(median) percentile of the sampled
	// values.
	UsageHistory_P50 UsageHistory_AggregationMethod = 3
	// Time series values represent the 75th percentile of the sampled values.
	UsageHistory_P75 UsageHistory_AggregationMethod = 4
	// Time series values represent the 99th percentile of the sampled values.
	UsageHistory_P99 UsageHistory_AggregationMethod = 5
)

func (UsageHistory_AggregationMethod) Descriptor

func (UsageHistory_AggregationMethod) Enum

func (UsageHistory_AggregationMethod) EnumDescriptor

func (UsageHistory_AggregationMethod) EnumDescriptor() ([]byte, []int)

Deprecated: Use UsageHistory_AggregationMethod.Descriptor instead.

func (UsageHistory_AggregationMethod) Number

func (UsageHistory_AggregationMethod) String

func (UsageHistory_AggregationMethod) Type

UsageServiceClient

type UsageServiceClient interface {
	// Returns a list of the usage histories that are in the parent parameter
	// and match your specified filters.
	QueryUsageHistories(ctx context.Context, in *QueryUsageHistoriesRequest, opts ...grpc.CallOption) (*QueryUsageHistoriesResponse, error)
	// Returns a list of the forecasts that are in the parent parameter
	// and match your specified filters.
	QueryForecasts(ctx context.Context, in *QueryForecastsRequest, opts ...grpc.CallOption) (*QueryForecastsResponse, error)
	// Returns a list of the reservations that are in the parent parameter
	// and match your specified filters.
	QueryReservations(ctx context.Context, in *QueryReservationsRequest, opts ...grpc.CallOption) (*QueryReservationsResponse, error)
	// Exports historical usage data requested by user into either an existing
	// Cloud Storage bucket or a BigQuery table.
	ExportUsageHistories(ctx context.Context, in *ExportUsageHistoriesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Exports forecasted usage data requested by user into either an existing
	// Cloud Storage bucket or a BigQuery table.
	ExportForecasts(ctx context.Context, in *ExportForecastsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Exports reservations usage data requested by user into either an existing
	// Cloud Storage bucket or a new/existing BigQuery table.
	ExportReservationsUsage(ctx context.Context, in *ExportReservationsUsageRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
}

UsageServiceClient is the client API for UsageService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewUsageServiceClient

func NewUsageServiceClient(cc grpc.ClientConnInterface) UsageServiceClient

UsageServiceServer

type UsageServiceServer interface {
	// Returns a list of the usage histories that are in the parent parameter
	// and match your specified filters.
	QueryUsageHistories(context.Context, *QueryUsageHistoriesRequest) (*QueryUsageHistoriesResponse, error)
	// Returns a list of the forecasts that are in the parent parameter
	// and match your specified filters.
	QueryForecasts(context.Context, *QueryForecastsRequest) (*QueryForecastsResponse, error)
	// Returns a list of the reservations that are in the parent parameter
	// and match your specified filters.
	QueryReservations(context.Context, *QueryReservationsRequest) (*QueryReservationsResponse, error)
	// Exports historical usage data requested by user into either an existing
	// Cloud Storage bucket or a BigQuery table.
	ExportUsageHistories(context.Context, *ExportUsageHistoriesRequest) (*longrunningpb.Operation, error)
	// Exports forecasted usage data requested by user into either an existing
	// Cloud Storage bucket or a BigQuery table.
	ExportForecasts(context.Context, *ExportForecastsRequest) (*longrunningpb.Operation, error)
	// Exports reservations usage data requested by user into either an existing
	// Cloud Storage bucket or a new/existing BigQuery table.
	ExportReservationsUsage(context.Context, *ExportReservationsUsageRequest) (*longrunningpb.Operation, error)
}

UsageServiceServer is the server API for UsageService service. All implementations should embed UnimplementedUsageServiceServer for forward compatibility

Value

type Value struct {

	// Types that are valid to be assigned to Value:
	//
	//	*Value_Int64Value
	//	*Value_StringValue
	//	*Value_DoubleValue
	//	*Value_BoolValue
	Value isValue_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*Value) Descriptor

func (*Value) Descriptor() ([]byte, []int)

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Value) GetBoolValue

func (x *Value) GetBoolValue() bool

func (*Value) GetDoubleValue

func (x *Value) GetDoubleValue() float64

func (*Value) GetInt64Value

func (x *Value) GetInt64Value() int64

func (*Value) GetStringValue

func (x *Value) GetStringValue() string

func (*Value) GetValue

func (x *Value) GetValue() isValue_Value

func (*Value) ProtoMessage

func (*Value) ProtoMessage()

func (*Value) ProtoReflect

func (x *Value) ProtoReflect() protoreflect.Message

func (*Value) Reset

func (x *Value) Reset()

func (*Value) String

func (x *Value) String() string

Value_BoolValue

type Value_BoolValue struct {
	BoolValue bool `protobuf:"varint,4,opt,name=bool_value,json=boolValue,proto3,oneof"`
}

Value_DoubleValue

type Value_DoubleValue struct {
	DoubleValue float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue,proto3,oneof"`
}

Value_Int64Value

type Value_Int64Value struct {
	Int64Value int64 `protobuf:"varint,1,opt,name=int64_value,json=int64Value,proto3,oneof"`
}

Value_StringValue

type Value_StringValue struct {
	StringValue string `protobuf:"bytes,2,opt,name=string_value,json=stringValue,proto3,oneof"`
}