// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/dataproc/v1/clusters.proto package dataproc // import "google.golang.org/genproto/googleapis/cloud/dataproc/v1" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import duration "github.com/golang/protobuf/ptypes/duration" import timestamp "github.com/golang/protobuf/ptypes/timestamp" import _ "google.golang.org/genproto/googleapis/api/annotations" import longrunning "google.golang.org/genproto/googleapis/longrunning" import field_mask "google.golang.org/genproto/protobuf/field_mask" import ( context "golang.org/x/net/context" grpc "google.golang.org/grpc" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package // The cluster state. type ClusterStatus_State int32 const ( // The cluster state is unknown. ClusterStatus_UNKNOWN ClusterStatus_State = 0 // The cluster is being created and set up. It is not ready for use. ClusterStatus_CREATING ClusterStatus_State = 1 // The cluster is currently running and healthy. It is ready for use. ClusterStatus_RUNNING ClusterStatus_State = 2 // The cluster encountered an error. It is not ready for use. ClusterStatus_ERROR ClusterStatus_State = 3 // The cluster is being deleted. It cannot be used. ClusterStatus_DELETING ClusterStatus_State = 4 // The cluster is being updated. It continues to accept and process jobs. ClusterStatus_UPDATING ClusterStatus_State = 5 ) var ClusterStatus_State_name = map[int32]string{ 0: "UNKNOWN", 1: "CREATING", 2: "RUNNING", 3: "ERROR", 4: "DELETING", 5: "UPDATING", } var ClusterStatus_State_value = map[string]int32{ "UNKNOWN": 0, "CREATING": 1, "RUNNING": 2, "ERROR": 3, "DELETING": 4, "UPDATING": 5, } func (x ClusterStatus_State) String() string { return proto.EnumName(ClusterStatus_State_name, int32(x)) } func (ClusterStatus_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor_clusters_0d7d2ad50ad8bea3, []int{8, 0} } type ClusterStatus_Substate int32 const ( ClusterStatus_UNSPECIFIED ClusterStatus_Substate = 0 // The cluster is known to be in an unhealthy state // (for example, critical daemons are not running or HDFS capacity is // exhausted). // // Applies to RUNNING state. ClusterStatus_UNHEALTHY ClusterStatus_Substate = 1 // The agent-reported status is out of date (may occur if // Cloud Dataproc loses communication with Agent). // // Applies to RUNNING state. ClusterStatus_STALE_STATUS ClusterStatus_Substate = 2 ) var ClusterStatus_Substate_name = map[int32]string{ 0: "UNSPECIFIED", 1: "UNHEALTHY", 2: "STALE_STATUS", } var ClusterStatus_Substate_value = map[string]int32{ "UNSPECIFIED": 0, "UNHEALTHY": 1, "STALE_STATUS": 2, } func (x ClusterStatus_Substate) String() string { return proto.EnumName(ClusterStatus_Substate_name, int32(x)) } func (ClusterStatus_Substate) EnumDescriptor() ([]byte, []int) { return fileDescriptor_clusters_0d7d2ad50ad8bea3, []int{8, 1} } // Describes the identifying information, config, and status of // a cluster of Google Compute Engine instances. type Cluster struct { // Required. The Google Cloud Platform project ID that the cluster belongs to. ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` // Required. The cluster name. Cluster names within a project must be // unique. Names of deleted clusters can be reused. ClusterName string `protobuf:"bytes,2,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` // Required. The cluster config. Note that Cloud Dataproc may set // default values, and values may change when clusters are updated. Config *ClusterConfig `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"` // Optional. The labels to associate with this cluster. // Label **keys** must contain 1 to 63 characters, and must conform to // [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). // Label **values** may be empty, but, if present, must contain 1 to 63 // characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). // No more than 32 labels can be associated with a cluster. Labels map[string]string `protobuf:"bytes,8,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Output-only. Cluster status. Status *ClusterStatus `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` // Output-only. The previous cluster status. StatusHistory []*ClusterStatus `protobuf:"bytes,7,rep,name=status_history,json=statusHistory,proto3" json:"status_history,omitempty"` // Output-only. A cluster UUID (Unique Universal Identifier). Cloud Dataproc // generates this value when it creates the cluster. ClusterUuid string `protobuf:"bytes,6,opt,name=cluster_uuid,json=clusterUuid,proto3" json:"cluster_uuid,omitempty"` // Contains cluster daemon metrics such as HDFS and YARN stats. // // **Beta Feature**: This report is available for testing purposes only. It may // be changed before final release. Metrics *ClusterMetrics `protobuf:"bytes,9,opt,name=metrics,proto3" json:"metrics,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Cluster) Reset() { *m = Cluster{} } func (m *Cluster) String() string { return proto.CompactTextString(m) } func (*Cluster) ProtoMessage() {} func (*Cluster) Descriptor() ([]byte, []int) { return fileDescriptor_clusters_0d7d2ad50ad8bea3, []int{0} } func (m *Cluster) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Cluster.Unmarshal(m, b) } func (m *Cluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Cluster.Marshal(b, m, deterministic) } func (dst *Cluster) XXX_Merge(src proto.Message) { xxx_messageInfo_Cluster.Merge(dst, src) } func (m *Cluster) XXX_Size() int { return xxx_messageInfo_Cluster.Size(m) } func (m *Cluster) XXX_DiscardUnknown() { xxx_messageInfo_Cluster.DiscardUnknown(m) } var xxx_messageInfo_Cluster proto.InternalMessageInfo func (m *Cluster) GetProjectId() string { if m != nil { return m.ProjectId } return "" } func (m *Cluster) GetClusterName() string { if m != nil { return m.ClusterName } return "" } func (m *Cluster) GetConfig() *ClusterConfig { if m != nil { return m.Config } return nil } func (m *Cluster) GetLabels() map[string]string { if m != nil { return m.Labels } return nil } func (m *Cluster) GetStatus() *ClusterStatus { if m != nil { return m.Status } return nil } func (m *Cluster) GetStatusHistory() []*ClusterStatus { if m != nil { return m.StatusHistory } return nil } func (m *Cluster) GetClusterUuid() string { if m != nil { return m.ClusterUuid } return "" } func (m *Cluster) GetMetrics() *ClusterMetrics { if m != nil { return m.Metrics } return nil } // The cluster config. type ClusterConfig struct { // Optional. A Google Cloud Storage staging bucket used for sharing generated // SSH keys and config. If you do not specify a staging bucket, Cloud // Dataproc will determine an appropriate Cloud Storage location (US, // ASIA, or EU) for your cluster's staging bucket according to the Google // Compute Engine zone where your cluster is deployed, and then it will create // and manage this project-level, per-location bucket for you. ConfigBucket string `protobuf:"bytes,1,opt,name=config_bucket,json=configBucket,proto3" json:"config_bucket,omitempty"` // Required. The shared Google Compute Engine config settings for // all instances in a cluster. GceClusterConfig *GceClusterConfig `protobuf:"bytes,8,opt,name=gce_cluster_config,json=gceClusterConfig,proto3" json:"gce_cluster_config,omitempty"` // Optional. The Google Compute Engine config settings for // the master instance in a cluster. MasterConfig *InstanceGroupConfig `protobuf:"bytes,9,opt,name=master_config,json=masterConfig,proto3" json:"master_config,omitempty"` // Optional. The Google Compute Engine config settings for // worker instances in a cluster. WorkerConfig *InstanceGroupConfig `protobuf:"bytes,10,opt,name=worker_config,json=workerConfig,proto3" json:"worker_config,omitempty"` // Optional. The Google Compute Engine config settings for // additional worker instances in a cluster. SecondaryWorkerConfig *InstanceGroupConfig `protobuf:"bytes,12,opt,name=secondary_worker_config,json=secondaryWorkerConfig,proto3" json:"secondary_worker_config,omitempty"` // Optional. The config settings for software inside the cluster. SoftwareConfig *SoftwareConfig `protobuf:"bytes,13,opt,name=software_config,json=softwareConfig,proto3" json:"software_config,omitempty"` // Optional. Commands to execute on each node after config is // completed. By default, executables are run on master and all worker nodes. // You can test a node's `role` metadata to run an executable on // a master or worker node, as shown below using `curl` (you can also use `wget`): // // ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/instance/attributes/dataproc-role) // if [[ "${ROLE}" == 'Master' ]]; then // ... master specific actions ... // else // ... worker specific actions ... // fi InitializationActions []*NodeInitializationAction `protobuf:"bytes,11,rep,name=initialization_actions,json=initializationActions,proto3" json:"initialization_actions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ClusterConfig) Reset() { *m = ClusterConfig{} } func (m *ClusterConfig) String() string { return proto.CompactTextString(m) } func (*ClusterConfig) ProtoMessage() {} func (*ClusterConfig) Descriptor() ([]byte, []int) { return fileDescriptor_clusters_0d7d2ad50ad8bea3, []int{1} } func (m *ClusterConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ClusterConfig.Unmarshal(m, b) } func (m *ClusterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ClusterConfig.Marshal(b, m, deterministic) } func (dst *ClusterConfig) XXX_Merge(src proto.Message) { xxx_messageInfo_ClusterConfig.Merge(dst, src) } func (m *ClusterConfig) XXX_Size() int { return xxx_messageInfo_ClusterConfig.Size(m) } func (m *ClusterConfig) XXX_DiscardUnknown() { xxx_messageInfo_ClusterConfig.DiscardUnknown(m) } var xxx_messageInfo_ClusterConfig proto.InternalMessageInfo func (m *ClusterConfig) GetConfigBucket() string { if m != nil { return m.ConfigBucket } return "" } func (m *ClusterConfig) GetGceClusterConfig() *GceClusterConfig { if m != nil { return m.GceClusterConfig } return nil } func (m *ClusterConfig) GetMasterConfig() *InstanceGroupConfig { if m != nil { return m.MasterConfig } return nil } func (m *ClusterConfig) GetWorkerConfig() *InstanceGroupConfig { if m != nil { return m.WorkerConfig } return nil } func (m *ClusterConfig) GetSecondaryWorkerConfig() *InstanceGroupConfig { if m != nil { return m.SecondaryWorkerConfig } return nil } func (m *ClusterConfig) GetSoftwareConfig() *SoftwareConfig { if m != nil { return m.SoftwareConfig } return nil } func (m *ClusterConfig) GetInitializationActions() []*NodeInitializationAction { if m != nil { return m.InitializationActions } return nil } // Common config settings for resources of Google Compute Engine cluster // instances, applicable to all instances in the cluster. type GceClusterConfig struct { // Optional. The zone where the Google Compute Engine cluster will be located. // On a create request, it is required in the "global" region. If omitted // in a non-global Cloud Dataproc region, the service will pick a zone in the // corresponding Compute Engine region. On a get request, zone will // always be present. // // A full URL, partial URI, or short name are valid. Examples: // // * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]` // * `projects/[project_id]/zones/[zone]` // * `us-central1-f` ZoneUri string `protobuf:"bytes,1,opt,name=zone_uri,json=zoneUri,proto3" json:"zone_uri,omitempty"` // Optional. The Google Compute Engine network to be used for machine // communications. Cannot be specified with subnetwork_uri. If neither // `network_uri` nor `subnetwork_uri` is specified, the "default" network of // the project is used, if it exists. Cannot be a "Custom Subnet Network" (see // [Using Subnetworks](/compute/docs/subnetworks) for more information). // // A full URL, partial URI, or short name are valid. Examples: // // * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default` // * `projects/[project_id]/regions/global/default` // * `default` NetworkUri string `protobuf:"bytes,2,opt,name=network_uri,json=networkUri,proto3" json:"network_uri,omitempty"` // Optional. The Google Compute Engine subnetwork to be used for machine // communications. Cannot be specified with network_uri. // // A full URL, partial URI, or short name are valid. Examples: // // * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub0` // * `projects/[project_id]/regions/us-east1/sub0` // * `sub0` SubnetworkUri string `protobuf:"bytes,6,opt,name=subnetwork_uri,json=subnetworkUri,proto3" json:"subnetwork_uri,omitempty"` // Optional. If true, all instances in the cluster will only have internal IP // addresses. By default, clusters are not restricted to internal IP addresses, // and will have ephemeral external IP addresses assigned to each instance. // This `internal_ip_only` restriction can only be enabled for subnetwork // enabled networks, and all off-cluster dependencies must be configured to be // accessible without external IP addresses. InternalIpOnly bool `protobuf:"varint,7,opt,name=internal_ip_only,json=internalIpOnly,proto3" json:"internal_ip_only,omitempty"` // Optional. The service account of the instances. Defaults to the default // Google Compute Engine service account. Custom service accounts need // permissions equivalent to the folloing IAM roles: // // * roles/logging.logWriter // * roles/storage.objectAdmin // // (see https://cloud.google.com/compute/docs/access/service-accounts#custom_service_accounts // for more information). // Example: `[account_id]@[project_id].iam.gserviceaccount.com` ServiceAccount string `protobuf:"bytes,8,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"` // Optional. The URIs of service account scopes to be included in Google // Compute Engine instances. The following base set of scopes is always // included: // // * https://www.googleapis.com/auth/cloud.useraccounts.readonly // * https://www.googleapis.com/auth/devstorage.read_write // * https://www.googleapis.com/auth/logging.write // // If no scopes are specified, the following defaults are also provided: // // * https://www.googleapis.com/auth/bigquery // * https://www.googleapis.com/auth/bigtable.admin.table // * https://www.googleapis.com/auth/bigtable.data // * https://www.googleapis.com/auth/devstorage.full_control ServiceAccountScopes []string `protobuf:"bytes,3,rep,name=service_account_scopes,json=serviceAccountScopes,proto3" json:"service_account_scopes,omitempty"` // The Google Compute Engine tags to add to all instances (see // [Tagging instances](/compute/docs/label-or-tag-resources#tags)). Tags []string `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"` // The Google Compute Engine metadata entries to add to all instances (see // [Project and instance metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)). Metadata map[string]string `protobuf:"bytes,5,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *GceClusterConfig) Reset() { *m = GceClusterConfig{} } func (m *GceClusterConfig) String() string { return proto.CompactTextString(m) } func (*GceClusterConfig) ProtoMessage() {} func (*GceClusterConfig) Descriptor() ([]byte, []int) { return fileDescriptor_clusters_0d7d2ad50ad8bea3, []int{2} } func (m *GceClusterConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GceClusterConfig.Unmarshal(m, b) } func (m *GceClusterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GceClusterConfig.Marshal(b, m, deterministic) } func (dst *GceClusterConfig) XXX_Merge(src proto.Message) { xxx_messageInfo_GceClusterConfig.Merge(dst, src) } func (m *GceClusterConfig) XXX_Size() int { return xxx_messageInfo_GceClusterConfig.Size(m) } func (m *GceClusterConfig) XXX_DiscardUnknown() { xxx_messageInfo_GceClusterConfig.DiscardUnknown(m) } var xxx_messageInfo_GceClusterConfig proto.InternalMessageInfo func (m *GceClusterConfig) GetZoneUri() string { if m != nil { return m.ZoneUri } return "" } func (m *GceClusterConfig) GetNetworkUri() string { if m != nil { return m.NetworkUri } return "" } func (m *GceClusterConfig) GetSubnetworkUri() string { if m != nil { return m.SubnetworkUri } return "" } func (m *GceClusterConfig) GetInternalIpOnly() bool { if m != nil { return m.InternalIpOnly } return false } func (m *GceClusterConfig) GetServiceAccount() string { if m != nil { return m.ServiceAccount } return "" } func (m *GceClusterConfig) GetServiceAccountScopes() []string { if m != nil { return m.ServiceAccountScopes } return nil } func (m *GceClusterConfig) GetTags() []string { if m != nil { return m.Tags } return nil } func (m *GceClusterConfig) GetMetadata() map[string]string { if m != nil { return m.Metadata } return nil } // Optional. The config settings for Google Compute Engine resources in // an instance group, such as a master or worker group. type InstanceGroupConfig struct { // Optional. The number of VM instances in the instance group. // For master instance groups, must be set to 1. NumInstances int32 `protobuf:"varint,1,opt,name=num_instances,json=numInstances,proto3" json:"num_instances,omitempty"` // Optional. The list of instance names. Cloud Dataproc derives the names from // `cluster_name`, `num_instances`, and the instance group if not set by user // (recommended practice is to let Cloud Dataproc derive the name). InstanceNames []string `protobuf:"bytes,2,rep,name=instance_names,json=instanceNames,proto3" json:"instance_names,omitempty"` // Output-only. The Google Compute Engine image resource used for cluster // instances. Inferred from `SoftwareConfig.image_version`. ImageUri string `protobuf:"bytes,3,opt,name=image_uri,json=imageUri,proto3" json:"image_uri,omitempty"` // Optional. The Google Compute Engine machine type used for cluster instances. // // A full URL, partial URI, or short name are valid. Examples: // // * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2` // * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2` // * `n1-standard-2` MachineTypeUri string `protobuf:"bytes,4,opt,name=machine_type_uri,json=machineTypeUri,proto3" json:"machine_type_uri,omitempty"` // Optional. Disk option config settings. DiskConfig *DiskConfig `protobuf:"bytes,5,opt,name=disk_config,json=diskConfig,proto3" json:"disk_config,omitempty"` // Optional. Specifies that this instance group contains preemptible instances. IsPreemptible bool `protobuf:"varint,6,opt,name=is_preemptible,json=isPreemptible,proto3" json:"is_preemptible,omitempty"` // Output-only. The config for Google Compute Engine Instance Group // Manager that manages this group. // This is only used for preemptible instance groups. ManagedGroupConfig *ManagedGroupConfig `protobuf:"bytes,7,opt,name=managed_group_config,json=managedGroupConfig,proto3" json:"managed_group_config,omitempty"` // Optional. The Google Compute Engine accelerator configuration for these // instances. // // **Beta Feature**: This feature is still under development. It may be // changed before final release. Accelerators []*AcceleratorConfig `protobuf:"bytes,8,rep,name=accelerators,proto3" json:"accelerators,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *InstanceGroupConfig) Reset() { *m = InstanceGroupConfig{} } func (m *InstanceGroupConfig) String() string { return proto.CompactTextString(m) } func (*InstanceGroupConfig) ProtoMessage() {} func (*InstanceGroupConfig) Descriptor() ([]byte, []int) { return fileDescriptor_clusters_0d7d2ad50ad8bea3, []int{3} } func (m *InstanceGroupConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_InstanceGroupConfig.Unmarshal(m, b) } func (m *InstanceGroupConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_InstanceGroupConfig.Marshal(b, m, deterministic) } func (dst *InstanceGroupConfig) XXX_Merge(src proto.Message) { xxx_messageInfo_InstanceGroupConfig.Merge(dst, src) } func (m *InstanceGroupConfig) XXX_Size() int { return xxx_messageInfo_InstanceGroupConfig.Size(m) } func (m *InstanceGroupConfig) XXX_DiscardUnknown() { xxx_messageInfo_InstanceGroupConfig.DiscardUnknown(m) } var xxx_messageInfo_InstanceGroupConfig proto.InternalMessageInfo func (m *InstanceGroupConfig) GetNumInstances() int32 { if m != nil { return m.NumInstances } return 0 } func (m *InstanceGroupConfig) GetInstanceNames() []string { if m != nil { return m.InstanceNames } return nil } func (m *InstanceGroupConfig) GetImageUri() string { if m != nil { return m.ImageUri } return "" } func (m *InstanceGroupConfig) GetMachineTypeUri() string { if m != nil { return m.MachineTypeUri } return "" } func (m *InstanceGroupConfig) GetDiskConfig() *DiskConfig { if m != nil { return m.DiskConfig } return nil } func (m *InstanceGroupConfig) GetIsPreemptible() bool { if m != nil { return m.IsPreemptible } return false } func (m *InstanceGroupConfig) GetManagedGroupConfig() *ManagedGroupConfig { if m != nil { return m.ManagedGroupConfig } return nil } func (m *InstanceGroupConfig) GetAccelerators() []*AcceleratorConfig { if m != nil { return m.Accelerators } return nil } // Specifies the resources used to actively manage an instance group. type ManagedGroupConfig struct { // Output-only. The name of the Instance Template used for the Managed // Instance Group. InstanceTemplateName string `protobuf:"bytes,1,opt,name=instance_template_name,json=instanceTemplateName,proto3" json:"instance_template_name,omitempty"` // Output-only. The name of the Instance Group Manager for this group. InstanceGroupManagerName string `protobuf:"bytes,2,opt,name=instance_group_manager_name,json=instanceGroupManagerName,proto3" json:"instance_group_manager_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ManagedGroupConfig) Reset() { *m = ManagedGroupConfig{} } func (m *ManagedGroupConfig) String() string { return proto.CompactTextString(m) } func (*ManagedGroupConfig) ProtoMessage() {} func (*ManagedGroupConfig) Descriptor() ([]byte, []int) { return fileDescriptor_clusters_0d7d2ad50ad8bea3, []int{4} } func (m *ManagedGroupConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ManagedGroupConfig.Unmarshal(m, b) } func (m *ManagedGroupConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ManagedGroupConfig.Marshal(b, m, deterministic) } func (dst *ManagedGroupConfig) XXX_Merge(src proto.Message) { xxx_messageInfo_ManagedGroupConfig.Merge(dst, src) } func (m *ManagedGroupConfig) XXX_Size() int { return xxx_messageInfo_ManagedGroupConfig.Size(m) } func (m *ManagedGroupConfig) XXX_DiscardUnknown() { xxx_messageInfo_ManagedGroupConfig.DiscardUnknown(m) } var xxx_messageInfo_ManagedGroupConfig proto.InternalMessageInfo func (m *ManagedGroupConfig) GetInstanceTemplateName() string { if m != nil { return m.InstanceTemplateName } return "" } func (m *ManagedGroupConfig) GetInstanceGroupManagerName() string { if m != nil { return m.InstanceGroupManagerName } return "" } // Specifies the type and number of accelerator cards attached to the instances // of an instance group (see [GPUs on Compute Engine](/compute/docs/gpus/)). type AcceleratorConfig struct { // Full URL, partial URI, or short name of the accelerator type resource to // expose to this instance. See [Google Compute Engine AcceleratorTypes]( // /compute/docs/reference/beta/acceleratorTypes) // // Examples // * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80` // * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80` // * `nvidia-tesla-k80` AcceleratorTypeUri string `protobuf:"bytes,1,opt,name=accelerator_type_uri,json=acceleratorTypeUri,proto3" json:"accelerator_type_uri,omitempty"` // The number of the accelerator cards of this type exposed to this instance. AcceleratorCount int32 `protobuf:"varint,2,opt,name=accelerator_count,json=acceleratorCount,proto3" json:"accelerator_count,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *AcceleratorConfig) Reset() { *m = AcceleratorConfig{} } func (m *AcceleratorConfig) String() string { return proto.CompactTextString(m) } func (*AcceleratorConfig) ProtoMessage() {} func (*AcceleratorConfig) Descriptor() ([]byte, []int) { return fileDescriptor_clusters_0d7d2ad50ad8bea3, []int{5} } func (m *AcceleratorConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AcceleratorConfig.Unmarshal(m, b) } func (m *AcceleratorConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_AcceleratorConfig.Marshal(b, m, deterministic) } func (dst *AcceleratorConfig) XXX_Merge(src proto.Message) { xxx_messageInfo_AcceleratorConfig.Merge(dst, src) } func (m *AcceleratorConfig) XXX_Size() int { return xxx_messageInfo_AcceleratorConfig.Size(m) } func (m *AcceleratorConfig) XXX_DiscardUnknown() { xxx_messageInfo_AcceleratorConfig.DiscardUnknown(m) } var xxx_messageInfo_AcceleratorConfig proto.InternalMessageInfo func (m *AcceleratorConfig) GetAcceleratorTypeUri() string { if m != nil { return m.AcceleratorTypeUri } return "" } func (m *AcceleratorConfig) GetAcceleratorCount() int32 { if m != nil { return m.AcceleratorCount } return 0 } // Specifies the config of disk options for a group of VM instances. type DiskConfig struct { // Optional. Size in GB of the boot disk (default is 500GB). BootDiskSizeGb int32 `protobuf:"varint,1,opt,name=boot_disk_size_gb,json=bootDiskSizeGb,proto3" json:"boot_disk_size_gb,omitempty"` // Optional. Number of attached SSDs, from 0 to 4 (default is 0). // If SSDs are not attached, the boot disk is used to store runtime logs and // [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. // If one or more SSDs are attached, this runtime bulk // data is spread across them, and the boot disk contains only basic // config and installed binaries. NumLocalSsds int32 `protobuf:"varint,2,opt,name=num_local_ssds,json=numLocalSsds,proto3" json:"num_local_ssds,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *DiskConfig) Reset() { *m = DiskConfig{} } func (m *DiskConfig) String() string { return proto.CompactTextString(m) } func (*DiskConfig) ProtoMessage() {} func (*DiskConfig) Descriptor() ([]byte, []int) { return fileDescriptor_clusters_0d7d2ad50ad8bea3, []int{6} } func (m *DiskConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DiskConfig.Unmarshal(m, b) } func (m *DiskConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DiskConfig.Marshal(b, m, deterministic) } func (dst *DiskConfig) XXX_Merge(src proto.Message) { xxx_messageInfo_DiskConfig.Merge(dst, src) } func (m *DiskConfig) XXX_Size() int { return xxx_messageInfo_DiskConfig.Size(m) } func (m *DiskConfig) XXX_DiscardUnknown() { xxx_messageInfo_DiskConfig.DiscardUnknown(m) } var xxx_messageInfo_DiskConfig proto.InternalMessageInfo func (m *DiskConfig) GetBootDiskSizeGb() int32 { if m != nil { return m.BootDiskSizeGb } return 0 } func (m *DiskConfig) GetNumLocalSsds() int32 { if m != nil { return m.NumLocalSsds } return 0 } // Specifies an executable to run on a fully configured node and a // timeout period for executable completion. type NodeInitializationAction struct { // Required. Google Cloud Storage URI of executable file. ExecutableFile string `protobuf:"bytes,1,opt,name=executable_file,json=executableFile,proto3" json:"executable_file,omitempty"` // Optional. Amount of time executable has to complete. Default is // 10 minutes. Cluster creation fails with an explanatory error message (the // name of the executable that caused the error and the exceeded timeout // period) if the executable is not completed at end of the timeout period. ExecutionTimeout *duration.Duration `protobuf:"bytes,2,opt,name=execution_timeout,json=executionTimeout,proto3" json:"execution_timeout,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *NodeInitializationAction) Reset() { *m = NodeInitializationAction{} } func (m *NodeInitializationAction) String() string { return proto.CompactTextString(m) } func (*NodeInitializationAction) ProtoMessage() {} func (*NodeInitializationAction) Descriptor() ([]byte, []int) { return fileDescriptor_clusters_0d7d2ad50ad8bea3, []int{7} } func (m *NodeInitializationAction) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_NodeInitializationAction.Unmarshal(m, b) } func (m *NodeInitializationAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_NodeInitializationAction.Marshal(b, m, deterministic) } func (dst *NodeInitializationAction) XXX_Merge(src proto.Message) { xxx_messageInfo_NodeInitializationAction.Merge(dst, src) } func (m *NodeInitializationAction) XXX_Size() int { return xxx_messageInfo_NodeInitializationAction.Size(m) } func (m *NodeInitializationAction) XXX_DiscardUnknown() { xxx_messageInfo_NodeInitializationAction.DiscardUnknown(m) } var xxx_messageInfo_NodeInitializationAction proto.InternalMessageInfo func (m *NodeInitializationAction) GetExecutableFile() string { if m != nil { return m.ExecutableFile } return "" } func (m *NodeInitializationAction) GetExecutionTimeout() *duration.Duration { if m != nil { return m.ExecutionTimeout } return nil } // The status of a cluster and its instances. type ClusterStatus struct { // Output-only. The cluster's state. State ClusterStatus_State `protobuf:"varint,1,opt,name=state,proto3,enum=google.cloud.dataproc.v1.ClusterStatus_State" json:"state,omitempty"` // Output-only. Optional details of cluster's state. Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` // Output-only. Time when this state was entered. StateStartTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=state_start_time,json=stateStartTime,proto3" json:"state_start_time,omitempty"` // Output-only. Additional state information that includes // status reported by the agent. Substate ClusterStatus_Substate `protobuf:"varint,4,opt,name=substate,proto3,enum=google.cloud.dataproc.v1.ClusterStatus_Substate" json:"substate,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ClusterStatus) Reset() { *m = ClusterStatus{} } func (m *ClusterStatus) String() string { return proto.CompactTextString(m) } func (*ClusterStatus) ProtoMessage() {} func (*ClusterStatus) Descriptor() ([]byte, []int) { return fileDescriptor_clusters_0d7d2ad50ad8bea3, []int{8} } func (m *ClusterStatus) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ClusterStatus.Unmarshal(m, b) } func (m *ClusterStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ClusterStatus.Marshal(b, m, deterministic) } func (dst *ClusterStatus) XXX_Merge(src proto.Message) { xxx_messageInfo_ClusterStatus.Merge(dst, src) } func (m *ClusterStatus) XXX_Size() int { return xxx_messageInfo_ClusterStatus.Size(m) } func (m *ClusterStatus) XXX_DiscardUnknown() { xxx_messageInfo_ClusterStatus.DiscardUnknown(m) } var xxx_messageInfo_ClusterStatus proto.InternalMessageInfo func (m *ClusterStatus) GetState() ClusterStatus_State { if m != nil { return m.State } return ClusterStatus_UNKNOWN } func (m *ClusterStatus) GetDetail() string { if m != nil { return m.Detail } return "" } func (m *ClusterStatus) GetStateStartTime() *timestamp.Timestamp { if m != nil { return m.StateStartTime } return nil } func (m *ClusterStatus) GetSubstate() ClusterStatus_Substate { if m != nil { return m.Substate } return ClusterStatus_UNSPECIFIED } // Specifies the selection and config of software inside the cluster. type SoftwareConfig struct { // Optional. The version of software inside the cluster. It must match the // regular expression `[0-9]+\.[0-9]+`. If unspecified, it defaults to the // latest version (see [Cloud Dataproc Versioning](/dataproc/versioning)). ImageVersion string `protobuf:"bytes,1,opt,name=image_version,json=imageVersion,proto3" json:"image_version,omitempty"` // Optional. The properties to set on daemon config files. // // Property keys are specified in `prefix:property` format, such as // `core:fs.defaultFS`. The following are supported prefixes // and their mappings: // // * capacity-scheduler: `capacity-scheduler.xml` // * core: `core-site.xml` // * distcp: `distcp-default.xml` // * hdfs: `hdfs-site.xml` // * hive: `hive-site.xml` // * mapred: `mapred-site.xml` // * pig: `pig.properties` // * spark: `spark-defaults.conf` // * yarn: `yarn-site.xml` // // For more information, see // [Cluster properties](/dataproc/docs/concepts/cluster-properties). Properties map[string]string `protobuf:"bytes,2,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *SoftwareConfig) Reset() { *m = SoftwareConfig{} } func (m *SoftwareConfig) String() string { return proto.CompactTextString(m) } func (*SoftwareConfig) ProtoMessage() {} func (*SoftwareConfig) Descriptor() ([]byte, []int) { return fileDescriptor_clusters_0d7d2ad50ad8bea3, []int{9} } func (m *SoftwareConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SoftwareConfig.Unmarshal(m, b) } func (m *SoftwareConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SoftwareConfig.Marshal(b, m, deterministic) } func (dst *SoftwareConfig) XXX_Merge(src proto.Message) { xxx_messageInfo_SoftwareConfig.Merge(dst, src) } func (m *SoftwareConfig) XXX_Size() int { return xxx_messageInfo_SoftwareConfig.Size(m) } func (m *SoftwareConfig) XXX_DiscardUnknown() { xxx_messageInfo_SoftwareConfig.DiscardUnknown(m) } var xxx_messageInfo_SoftwareConfig proto.InternalMessageInfo func (m *SoftwareConfig) GetImageVersion() string { if m != nil { return m.ImageVersion } return "" } func (m *SoftwareConfig) GetProperties() map[string]string { if m != nil { return m.Properties } return nil } // Contains cluster daemon metrics, such as HDFS and YARN stats. // // **Beta Feature**: This report is available for testing purposes only. It may // be changed before final release. type ClusterMetrics struct { // The HDFS metrics. HdfsMetrics map[string]int64 `protobuf:"bytes,1,rep,name=hdfs_metrics,json=hdfsMetrics,proto3" json:"hdfs_metrics,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // The YARN metrics. YarnMetrics map[string]int64 `protobuf:"bytes,2,rep,name=yarn_metrics,json=yarnMetrics,proto3" json:"yarn_metrics,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ClusterMetrics) Reset() { *m = ClusterMetrics{} } func (m *ClusterMetrics) String() string { return proto.CompactTextString(m) } func (*ClusterMetrics) ProtoMessage() {} func (*ClusterMetrics) Descriptor() ([]byte, []int) { return fileDescriptor_clusters_0d7d2ad50ad8bea3, []int{10} } func (m *ClusterMetrics) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ClusterMetrics.Unmarshal(m, b) } func (m *ClusterMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ClusterMetrics.Marshal(b, m, deterministic) } func (dst *ClusterMetrics) XXX_Merge(src proto.Message) { xxx_messageInfo_ClusterMetrics.Merge(dst, src) } func (m *ClusterMetrics) XXX_Size() int { return xxx_messageInfo_ClusterMetrics.Size(m) } func (m *ClusterMetrics) XXX_DiscardUnknown() { xxx_messageInfo_ClusterMetrics.DiscardUnknown(m) } var xxx_messageInfo_ClusterMetrics proto.InternalMessageInfo func (m *ClusterMetrics) GetHdfsMetrics() map[string]int64 { if m != nil { return m.HdfsMetrics } return nil } func (m *ClusterMetrics) GetYarnMetrics() map[string]int64 { if m != nil { return m.YarnMetrics } return nil } // A request to create a cluster. type CreateClusterRequest struct { // Required. The ID of the Google Cloud Platform project that the cluster // belongs to. ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` // Required. The Cloud Dataproc region in which to handle the request. Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"` // Required. The cluster to create. Cluster *Cluster `protobuf:"bytes,2,opt,name=cluster,proto3" json:"cluster,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *CreateClusterRequest) Reset() { *m = CreateClusterRequest{} } func (m *CreateClusterRequest) String() string { return proto.CompactTextString(m) } func (*CreateClusterRequest) ProtoMessage() {} func (*CreateClusterRequest) Descriptor() ([]byte, []int) { return fileDescriptor_clusters_0d7d2ad50ad8bea3, []int{11} } func (m *CreateClusterRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CreateClusterRequest.Unmarshal(m, b) } func (m *CreateClusterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CreateClusterRequest.Marshal(b, m, deterministic) } func (dst *CreateClusterRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_CreateClusterRequest.Merge(dst, src) } func (m *CreateClusterRequest) XXX_Size() int { return xxx_messageInfo_CreateClusterRequest.Size(m) } func (m *CreateClusterRequest) XXX_DiscardUnknown() { xxx_messageInfo_CreateClusterRequest.DiscardUnknown(m) } var xxx_messageInfo_CreateClusterRequest proto.InternalMessageInfo func (m *CreateClusterRequest) GetProjectId() string { if m != nil { return m.ProjectId } return "" } func (m *CreateClusterRequest) GetRegion() string { if m != nil { return m.Region } return "" } func (m *CreateClusterRequest) GetCluster() *Cluster { if m != nil { return m.Cluster } return nil } // A request to update a cluster. type UpdateClusterRequest struct { // Required. The ID of the Google Cloud Platform project the // cluster belongs to. ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` // Required. The Cloud Dataproc region in which to handle the request. Region string `protobuf:"bytes,5,opt,name=region,proto3" json:"region,omitempty"` // Required. The cluster name. ClusterName string `protobuf:"bytes,2,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` // Required. The changes to the cluster. Cluster *Cluster `protobuf:"bytes,3,opt,name=cluster,proto3" json:"cluster,omitempty"` // Required. Specifies the path, relative to `Cluster`, of // the field to update. For example, to change the number of workers // in a cluster to 5, the `update_mask` parameter would be // specified as `config.worker_config.num_instances`, // and the `PATCH` request body would specify the new value, as follows: // // { // "config":{ // "workerConfig":{ // "numInstances":"5" // } // } // } // Similarly, to change the number of preemptible workers in a cluster to 5, // the `update_mask` parameter would be // `config.secondary_worker_config.num_instances`, and the `PATCH` request // body would be set as follows: // // { // "config":{ // "secondaryWorkerConfig":{ // "numInstances":"5" // } // } // } // Note: Currently, only the following fields can be updated: // //
Mask | //Purpose | //
labels | //Update labels | //
config.worker_config.num_instances | //Resize primary worker group | //
config.secondary_worker_config.num_instances | //Resize secondary worker group | //