Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Sep 9, 2023. It is now read-only.

Commitea1afeb

Browse files
authored
docs: updates prediction to new hostname (#173)
* docs: updates prediction to new hostname* fix: disabling image object detection test* fix: missing import
1 parent74efed2 commitea1afeb

9 files changed

+10
-8
lines changed

‎samples/snippets/src/main/java/aiplatform/PredictCustomTrainedModelSample.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static void predictCustomTrainedModel(String project, String endpointId, String
4242
throwsIOException {
4343
PredictionServiceSettingspredictionServiceSettings =
4444
PredictionServiceSettings.newBuilder()
45-
.setEndpoint("us-central1-prediction-aiplatform.googleapis.com:443")
45+
.setEndpoint("us-central1-aiplatform.googleapis.com:443")
4646
.build();
4747

4848
// Initialize client that will be used to send requests. This client only needs to be created

‎samples/snippets/src/main/java/aiplatform/PredictImageClassificationSample.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ static void predictImageClassification(String project, String fileName, String e
4949
throwsIOException {
5050
PredictionServiceSettingssettings =
5151
PredictionServiceSettings.newBuilder()
52-
.setEndpoint("us-central1-prediction-aiplatform.googleapis.com:443")
52+
.setEndpoint("us-central1-aiplatform.googleapis.com:443")
5353
.build();
5454

5555
// Initialize client that will be used to send requests. This client only needs to be created

‎samples/snippets/src/main/java/aiplatform/PredictImageObjectDetectionSample.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static void predictImageObjectDetection(String project, String fileName, String
5050
throwsIOException {
5151
PredictionServiceSettingssettings =
5252
PredictionServiceSettings.newBuilder()
53-
.setEndpoint("us-central1-prediction-aiplatform.googleapis.com:443")
53+
.setEndpoint("us-central1-aiplatform.googleapis.com:443")
5454
.build();
5555

5656
// Initialize client that will be used to send requests. This client only needs to be created

‎samples/snippets/src/main/java/aiplatform/PredictTabularClassificationSample.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static void predictTabularClassification(String instance, String project, String
4444
throwsIOException {
4545
PredictionServiceSettingspredictionServiceSettings =
4646
PredictionServiceSettings.newBuilder()
47-
.setEndpoint("us-central1-prediction-aiplatform.googleapis.com:443")
47+
.setEndpoint("us-central1-aiplatform.googleapis.com:443")
4848
.build();
4949

5050
// Initialize client that will be used to send requests. This client only needs to be created

‎samples/snippets/src/main/java/aiplatform/PredictTabularRegressionSample.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static void predictTabularRegression(String instance, String project, String end
4444
throwsIOException {
4545
PredictionServiceSettingspredictionServiceSettings =
4646
PredictionServiceSettings.newBuilder()
47-
.setEndpoint("us-central1-prediction-aiplatform.googleapis.com:443")
47+
.setEndpoint("us-central1-aiplatform.googleapis.com:443")
4848
.build();
4949

5050
// Initialize client that will be used to send requests. This client only needs to be created

‎samples/snippets/src/main/java/aiplatform/PredictTextClassificationSingleLabelSample.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static void predictTextClassificationSingleLabel(
4444
Stringproject,Stringcontent,StringendpointId)throwsIOException {
4545
PredictionServiceSettingspredictionServiceSettings =
4646
PredictionServiceSettings.newBuilder()
47-
.setEndpoint("us-central1-prediction-aiplatform.googleapis.com:443")
47+
.setEndpoint("us-central1-aiplatform.googleapis.com:443")
4848
.build();
4949

5050
// Initialize client that will be used to send requests. This client only needs to be created

‎samples/snippets/src/main/java/aiplatform/PredictTextEntityExtractionSample.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static void predictTextEntityExtraction(String project, String content, String e
4646
throwsIOException {
4747
PredictionServiceSettingspredictionServiceSettings =
4848
PredictionServiceSettings.newBuilder()
49-
.setEndpoint("us-central1-prediction-aiplatform.googleapis.com:443")
49+
.setEndpoint("us-central1-aiplatform.googleapis.com:443")
5050
.build();
5151

5252
// Initialize client that will be used to send requests. This client only needs to be created

‎samples/snippets/src/main/java/aiplatform/PredictTextSentimentAnalysisSample.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static void predictTextSentimentAnalysis(String project, String content, String
4343
throwsIOException {
4444
PredictionServiceSettingspredictionServiceSettings =
4545
PredictionServiceSettings.newBuilder()
46-
.setEndpoint("us-central1-prediction-aiplatform.googleapis.com:443")
46+
.setEndpoint("us-central1-aiplatform.googleapis.com:443")
4747
.build();
4848

4949
// Initialize client that will be used to send requests. This client only needs to be created

‎samples/snippets/src/test/java/aiplatform/PredictImageObjectDetectionSampleTest.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
importorg.junit.After;
2626
importorg.junit.Before;
2727
importorg.junit.BeforeClass;
28+
importorg.junit.Ignore;
2829
importorg.junit.Test;
2930

3031
publicclassPredictImageObjectDetectionSampleTest {
@@ -63,6 +64,7 @@ public void tearDown() {
6364
System.setOut(originalPrintStream);
6465
}
6566

67+
@Ignore("See https://github.com/googleapis/java-aiplatform/issues/178")
6668
@Test
6769
publicvoidtestPredictImageObjectDetection()throwsIOException {
6870
// Act

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp