Class RegionTag
java.lang.Object
com.google.api.generator.gapic.model.RegionTag
This model represents a code sample region tag. Matching region start and end region tag comments
are used to determine the boundaries of code snippets to be used in documentation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Stringabstract Stringstatic RegionTag.Builderbuilder()generate()Method to generate region tag comment textstatic CommentStatementgenerateTag(RegionTag.RegionTagRegion regionTagRegion, String regionTagContent) abstract Booleanabstract Stringabstract StringrpcName()abstract Stringabstract RegionTag.Builderfinal RegionTagwithApiShortName(String apiShortName) Helper method to easily update region tag apiShortName.final RegionTagwithApiVersion(String apiVersion) Helper method to easily update region tag apiVersion.final RegionTagwithOverloadDisambiguation(String overloadDisambiguation) Helper method to easily update region tag overloadDisambiguation.
-
Constructor Details
-
RegionTag
public RegionTag()
-
-
Method Details
-
apiShortName
-
apiVersion
-
serviceName
-
rpcName
-
overloadDisambiguation
-
isAsynchronous
-
builder
-
toBuilder
-
withApiVersion
Helper method to easily update region tag apiVersion.- Parameters:
apiVersion- String to replace region tag apiVersion- Returns:
- RegionTag with updated apiVersion
-
withApiShortName
Helper method to easily update region tag apiShortName.- Parameters:
apiShortName- String to replace region tag apiShortName- Returns:
- RegionTag with updated apiShortName
-
withOverloadDisambiguation
Helper method to easily update region tag overloadDisambiguation.- Parameters:
overloadDisambiguation- String to replace region tag overloadDisambiguation- Returns:
- RegionTag with updated overloadDisambiguation
-
generate
Method to generate region tag comment text- Returns:
- region tag comment text
-
generateTag
public static CommentStatement generateTag(RegionTag.RegionTagRegion regionTagRegion, String regionTagContent)
-