Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: [dataproc] updated docs and code sturcture for Dataproc metric configuration #8462

Merged
merged 2 commits into from
Sep 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions java-dataproc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-dataproc</artifactId>
<version>4.0.5</version>
<version>4.0.6</version>
</dependency>
```

If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-dataproc:4.0.5'
implementation 'com.google.cloud:google-cloud-dataproc:4.0.6'
```

If you are using SBT, add this to your dependencies:

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.0.5"
libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.0.6"
```

## Authentication
Expand Down
6 changes: 3 additions & 3 deletions java-dataproc/google-cloud-dataproc-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,17 @@
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-dataproc</artifactId>
<version>4.0.3-SNAPSHOT</version><!-- {x-version-update:google-cloud-dataproc:current} -->
<version>4.0.7-SNAPSHOT</version><!-- {x-version-update:google-cloud-dataproc:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-cloud-dataproc-v1</artifactId>
<version>4.0.3-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-dataproc-v1:current} -->
<version>4.0.7-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-dataproc-v1:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-dataproc-v1</artifactId>
<version>4.0.3-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-dataproc-v1:current} -->
<version>4.0.7-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-dataproc-v1:current} -->
</dependency>
</dependencies>
</dependencyManagement>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ private ClusterConfig(

break;
}
case 170:
case 186:
{
com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder subBuilder = null;
if (dataprocMetricConfig_ != null) {
Expand Down Expand Up @@ -1222,17 +1222,17 @@ public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigO
return getMetastoreConfig();
}

public static final int DATAPROC_METRIC_CONFIG_FIELD_NUMBER = 21;
public static final int DATAPROC_METRIC_CONFIG_FIELD_NUMBER = 23;
private com.google.cloud.dataproc.v1.DataprocMetricConfig dataprocMetricConfig_;
/**
*
*
* <pre>
* Optional. Dataproc metrics configuration.
* Optional. The config for Dataproc metrics.
* </pre>
*
* <code>
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 21 [(.google.api.field_behavior) = OPTIONAL];
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*
* @return Whether the dataprocMetricConfig field is set.
Expand All @@ -1245,11 +1245,11 @@ public boolean hasDataprocMetricConfig() {
*
*
* <pre>
* Optional. Dataproc metrics configuration.
* Optional. The config for Dataproc metrics.
* </pre>
*
* <code>
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 21 [(.google.api.field_behavior) = OPTIONAL];
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*
* @return The dataprocMetricConfig.
Expand All @@ -1264,11 +1264,11 @@ public com.google.cloud.dataproc.v1.DataprocMetricConfig getDataprocMetricConfig
*
*
* <pre>
* Optional. Dataproc metrics configuration.
* Optional. The config for Dataproc metrics.
* </pre>
*
* <code>
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 21 [(.google.api.field_behavior) = OPTIONAL];
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*/
@java.lang.Override
Expand Down Expand Up @@ -1334,7 +1334,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
output.writeMessage(20, getMetastoreConfig());
}
if (dataprocMetricConfig_ != null) {
output.writeMessage(21, getDataprocMetricConfig());
output.writeMessage(23, getDataprocMetricConfig());
}
unknownFields.writeTo(output);
}
Expand Down Expand Up @@ -1392,7 +1392,7 @@ public int getSerializedSize() {
}
if (dataprocMetricConfig_ != null) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(21, getDataprocMetricConfig());
com.google.protobuf.CodedOutputStream.computeMessageSize(23, getDataprocMetricConfig());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
Expand Down Expand Up @@ -5232,11 +5232,11 @@ public com.google.cloud.dataproc.v1.MetastoreConfigOrBuilder getMetastoreConfigO
*
*
* <pre>
* Optional. Dataproc metrics configuration.
* Optional. The config for Dataproc metrics.
* </pre>
*
* <code>
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 21 [(.google.api.field_behavior) = OPTIONAL];
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*
* @return Whether the dataprocMetricConfig field is set.
Expand All @@ -5248,11 +5248,11 @@ public boolean hasDataprocMetricConfig() {
*
*
* <pre>
* Optional. Dataproc metrics configuration.
* Optional. The config for Dataproc metrics.
* </pre>
*
* <code>
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 21 [(.google.api.field_behavior) = OPTIONAL];
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*
* @return The dataprocMetricConfig.
Expand All @@ -5270,11 +5270,11 @@ public com.google.cloud.dataproc.v1.DataprocMetricConfig getDataprocMetricConfig
*
*
* <pre>
* Optional. Dataproc metrics configuration.
* Optional. The config for Dataproc metrics.
* </pre>
*
* <code>
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 21 [(.google.api.field_behavior) = OPTIONAL];
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*/
public Builder setDataprocMetricConfig(
Expand All @@ -5295,11 +5295,11 @@ public Builder setDataprocMetricConfig(
*
*
* <pre>
* Optional. Dataproc metrics configuration.
* Optional. The config for Dataproc metrics.
* </pre>
*
* <code>
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 21 [(.google.api.field_behavior) = OPTIONAL];
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*/
public Builder setDataprocMetricConfig(
Expand All @@ -5317,11 +5317,11 @@ public Builder setDataprocMetricConfig(
*
*
* <pre>
* Optional. Dataproc metrics configuration.
* Optional. The config for Dataproc metrics.
* </pre>
*
* <code>
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 21 [(.google.api.field_behavior) = OPTIONAL];
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*/
public Builder mergeDataprocMetricConfig(
Expand All @@ -5346,11 +5346,11 @@ public Builder mergeDataprocMetricConfig(
*
*
* <pre>
* Optional. Dataproc metrics configuration.
* Optional. The config for Dataproc metrics.
* </pre>
*
* <code>
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 21 [(.google.api.field_behavior) = OPTIONAL];
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*/
public Builder clearDataprocMetricConfig() {
Expand All @@ -5368,11 +5368,11 @@ public Builder clearDataprocMetricConfig() {
*
*
* <pre>
* Optional. Dataproc metrics configuration.
* Optional. The config for Dataproc metrics.
* </pre>
*
* <code>
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 21 [(.google.api.field_behavior) = OPTIONAL];
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*/
public com.google.cloud.dataproc.v1.DataprocMetricConfig.Builder
Expand All @@ -5385,11 +5385,11 @@ public Builder clearDataprocMetricConfig() {
*
*
* <pre>
* Optional. Dataproc metrics configuration.
* Optional. The config for Dataproc metrics.
* </pre>
*
* <code>
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 21 [(.google.api.field_behavior) = OPTIONAL];
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*/
public com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder
Expand All @@ -5406,11 +5406,11 @@ public Builder clearDataprocMetricConfig() {
*
*
* <pre>
* Optional. Dataproc metrics configuration.
* Optional. The config for Dataproc metrics.
* </pre>
*
* <code>
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 21 [(.google.api.field_behavior) = OPTIONAL];
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -706,11 +706,11 @@ com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder getInitialization
*
*
* <pre>
* Optional. Dataproc metrics configuration.
* Optional. The config for Dataproc metrics.
* </pre>
*
* <code>
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 21 [(.google.api.field_behavior) = OPTIONAL];
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*
* @return Whether the dataprocMetricConfig field is set.
Expand All @@ -720,11 +720,11 @@ com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder getInitialization
*
*
* <pre>
* Optional. Dataproc metrics configuration.
* Optional. The config for Dataproc metrics.
* </pre>
*
* <code>
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 21 [(.google.api.field_behavior) = OPTIONAL];
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*
* @return The dataprocMetricConfig.
Expand All @@ -734,11 +734,11 @@ com.google.cloud.dataproc.v1.NodeInitializationActionOrBuilder getInitialization
*
*
* <pre>
* Optional. Dataproc metrics configuration.
* Optional. The config for Dataproc metrics.
* </pre>
*
* <code>
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 21 [(.google.api.field_behavior) = OPTIONAL];
* .google.cloud.dataproc.v1.DataprocMetricConfig dataproc_metric_config = 23 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*/
com.google.cloud.dataproc.v1.DataprocMetricConfigOrBuilder getDataprocMetricConfigOrBuilder();
Expand Down
Loading