Skip to content

Commit 5a668d0

Browse files
chore: [vertexai] Write in third person for javadoc (googleapis#10501)
PiperOrigin-RevId: 613766333 Co-authored-by: Jaycee Li <[email protected]>
1 parent 88453fd commit 5a668d0

File tree

6 files changed

+62
-60
lines changed

6 files changed

+62
-60
lines changed

java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/ContentMaker.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class ContentMaker {
2424
private static String role = "user";
2525

2626
/**
27-
* Create a ContentMakerForRole for a given role.
27+
* Creates a ContentMakerForRole for a given role.
2828
*
2929
* @param role Currently accepted role values are: "user", "model". No need to call forRole for
3030
* the "user" role since it's the default role.
@@ -53,7 +53,7 @@ private static Content fromMultiModalDataWithRole(String role, Object... multiMo
5353
}
5454

5555
/**
56-
* Create a content from a string, assuming the role is "user".
56+
* Creates a content from a string, assuming the role is "user".
5757
*
5858
* <p>The resulting content will contain one single {@link com.google.cloud.vertexai.api.Part}
5959
* with its text field set.
@@ -65,7 +65,7 @@ public static Content fromString(String text) {
6565
}
6666

6767
/**
68-
* Create a content from an array of Objects, assuming the role is "user".
68+
* Creates a content from an array of Objects, assuming the role is "user".
6969
*
7070
* <p>The resulting content can contain multiple {@link com.google.cloud.vertexai.api.Part}s. Each
7171
* element in the array becomes one part.
@@ -91,7 +91,7 @@ private ContentMakerForRole(String role) {
9191
}
9292

9393
/**
94-
* Create a content from a string.
94+
* Creates a content from a string.
9595
*
9696
* @param text a string which will be converted to a {@link com.google.cloud.vertexai.api.Part}
9797
* with its text field set.
@@ -101,7 +101,7 @@ public Content fromString(String text) {
101101
}
102102

103103
/**
104-
* Create a content from an array of Objects.
104+
* Creates a content from an array of Objects.
105105
*
106106
* @param multiModalData an array which contains the actual payload of each part. The element
107107
* could be either a single String or a Part. When it's a single string, it's converted to a

java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/GenerateContentConfig.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public GenerateContentConfig build() {
6666
}
6767

6868
/**
69-
* Set {@link com.google.cloud.vertexai.api.GenerationConfig} that will be used in the generate
69+
* Sets {@link com.google.cloud.vertexai.api.GenerationConfig} that will be used in the generate
7070
* content API call.
7171
*
7272
* @return builder for the GenerateContentConfig
@@ -78,7 +78,7 @@ public Builder setGenerationConfig(GenerationConfig generationConfig) {
7878
}
7979

8080
/**
81-
* Set a list of {@link com.google.cloud.vertexai.api.SafetySetting} that will be used in the
81+
* Sets a list of {@link com.google.cloud.vertexai.api.SafetySetting} that will be used in the
8282
* generate content API call.
8383
*
8484
* @return builder for the GenerateContentConfig
@@ -90,7 +90,7 @@ public Builder setSafetySettings(List<SafetySetting> safetySettings) {
9090
}
9191

9292
/**
93-
* Set a list of {@link com.google.cloud.vertexai.api.Tool} that will be used in the generate
93+
* Sets a list of {@link com.google.cloud.vertexai.api.Tool} that will be used in the generate
9494
* content API call.
9595
*
9696
* @return builder for the GenerateContentConfig

0 commit comments

Comments
 (0)