-
Couldn't load subscription status.
- Fork 71
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Description
-
Per-pattern Builders
- Example: https://github.com/googleapis/sdk-platform-java/blame/decd7f60017d45288e6c12493fa21e06f9c5f77c/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbName.java#L372
- Example: https://github.com/googleapis/sdk-platform-java/blame/decd7f60017d45288e6c12493fa21e06f9c5f77c/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbName.java#L403
- Generation logic: https://github.com/googleapis/sdk-platform-java/blame/decd7f60017d45288e6c12493fa21e06f9c5f77c/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/resourcename/ResourceNameHelperClassComposer.java#L510
-
Static factory methods
- Example:
Lines 149 to 171 in decd7f6
@BetaApi("The static create methods are not stable yet and may be changed in the future.") public static BlurbName ofUserLegacyUserBlurbName(String user, String legacyUser, String blurb) { return newBuilder().setUser(user).setLegacyUser(legacyUser).setBlurb(blurb).build(); } @BetaApi("The static create methods are not stable yet and may be changed in the future.") public static BlurbName ofUserBlurbName(String user, String blurb) { return newUserBlurbBuilder().setUser(user).setBlurb(blurb).build(); } @BetaApi("The static create methods are not stable yet and may be changed in the future.") public static BlurbName ofRoomBlurbName(String room, String blurb) { return newRoomBlurbBuilder().setRoom(room).setBlurb(blurb).build(); } @BetaApi("The static create methods are not stable yet and may be changed in the future.") public static BlurbName ofRoomLegacyRoomBlurbName(String room, String legacyRoom, String blurb) { return newRoomLegacyRoomBlurbBuilder() .setRoom(room) .setLegacyRoom(legacyRoom) .setBlurb(blurb) .build(); } - Generation logic: https://github.com/googleapis/sdk-platform-java/blob/main/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/resourcename/ResourceNameHelperClassComposer.java#L604-L606
- Example:
-
Static format methods
- Example: https://github.com/googleapis/sdk-platform-java/blob/decd7f60017d45288e6c12493fa21e06f9c5f77c/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbName.java#L177C13-L200
- Generation logic: https://github.com/googleapis/sdk-platform-java/blob/main/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/resourcename/ResourceNameHelperClassComposer.java#L604-L606
Metadata
Metadata
Assignees
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.