Class AnnotationName.Builder (0.12.0)

public static class AnnotationName.Builder

Builder for projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}.

Inheritance

java.lang.Object > AnnotationName.Builder

Constructors

Builder()

protected Builder()

Methods

build()

public AnnotationName build()
Returns
Type Description
AnnotationName

getAnnotation()

public String getAnnotation()
Returns
Type Description
String

getAsset()

public String getAsset()
Returns
Type Description
String

getCorpus()

public String getCorpus()
Returns
Type Description
String

getLocation()

public String getLocation()
Returns
Type Description
String

getProjectNumber()

public String getProjectNumber()
Returns
Type Description
String

setAnnotation(String annotation)

public AnnotationName.Builder setAnnotation(String annotation)
Parameter
Name Description
annotation String
Returns
Type Description
AnnotationName.Builder

setAsset(String asset)

public AnnotationName.Builder setAsset(String asset)
Parameter
Name Description
asset String
Returns
Type Description
AnnotationName.Builder

setCorpus(String corpus)

public AnnotationName.Builder setCorpus(String corpus)
Parameter
Name Description
corpus String
Returns
Type Description
AnnotationName.Builder

setLocation(String location)

public AnnotationName.Builder setLocation(String location)
Parameter
Name Description
location String
Returns
Type Description
AnnotationName.Builder

setProjectNumber(String projectNumber)

public AnnotationName.Builder setProjectNumber(String projectNumber)
Parameter
Name Description
projectNumber String
Returns
Type Description
AnnotationName.Builder