Class Draft.Builder (0.15.0)

public static final class Draft.Builder extends GeneratedMessageV3.Builder<Draft.Builder> implements DraftOrBuilder

Message describing Draft object

Protobuf type google.events.cloud.visionai.v1.Draft

Implements

DraftOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Draft.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Draft.Builder
Overrides

build()

public Draft build()
Returns
Type Description
Draft

buildPartial()

public Draft buildPartial()
Returns
Type Description
Draft

clear()

public Draft.Builder clear()
Returns
Type Description
Draft.Builder
Overrides

clearCreateTime()

public Draft.Builder clearCreateTime()

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
Draft.Builder

clearDescription()

public Draft.Builder clearDescription()

A description for this application.

string description = 5;

Returns
Type Description
Draft.Builder

This builder for chaining.

clearDisplayName()

public Draft.Builder clearDisplayName()

Required. A user friendly display name for the solution.

string display_name = 4;

Returns
Type Description
Draft.Builder

This builder for chaining.

clearDraftApplicationConfigs()

public Draft.Builder clearDraftApplicationConfigs()

The draft application configs which haven't been updated to an application.

.google.events.cloud.visionai.v1.ApplicationConfigs draft_application_configs = 6;

Returns
Type Description
Draft.Builder

clearField(Descriptors.FieldDescriptor field)

public Draft.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Draft.Builder
Overrides

clearLabels()

public Draft.Builder clearLabels()
Returns
Type Description
Draft.Builder

clearName()

public Draft.Builder clearName()

name of resource

string name = 1;

Returns
Type Description
Draft.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Draft.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Draft.Builder
Overrides

clearUpdateTime()

public Draft.Builder clearUpdateTime()

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp update_time = 7;

Returns
Type Description
Draft.Builder

clone()

public Draft.Builder clone()
Returns
Type Description
Draft.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Labels as key value pairs

map<string, string> labels = 3;

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Draft getDefaultInstanceForType()
Returns
Type Description
Draft

getDescription()

public String getDescription()

A description for this application.

string description = 5;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A description for this application.

string description = 5;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Required. A user friendly display name for the solution.

string display_name = 4;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. A user friendly display name for the solution.

string display_name = 4;

Returns
Type Description
ByteString

The bytes for displayName.

getDraftApplicationConfigs()

public ApplicationConfigs getDraftApplicationConfigs()

The draft application configs which haven't been updated to an application.

.google.events.cloud.visionai.v1.ApplicationConfigs draft_application_configs = 6;

Returns
Type Description
ApplicationConfigs

The draftApplicationConfigs.

getDraftApplicationConfigsBuilder()

public ApplicationConfigs.Builder getDraftApplicationConfigsBuilder()

The draft application configs which haven't been updated to an application.

.google.events.cloud.visionai.v1.ApplicationConfigs draft_application_configs = 6;

Returns
Type Description
ApplicationConfigs.Builder

getDraftApplicationConfigsOrBuilder()

public ApplicationConfigsOrBuilder getDraftApplicationConfigsOrBuilder()

The draft application configs which haven't been updated to an application.

.google.events.cloud.visionai.v1.ApplicationConfigs draft_application_configs = 6;

Returns
Type Description
ApplicationConfigsOrBuilder

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels as key value pairs

map<string, string> labels = 3;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels as key value pairs

map<string, string> labels = 3;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels as key value pairs

map<string, string> labels = 3;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels as key value pairs

map<string, string> labels = 3;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

name of resource

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

name of resource

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp update_time = 7;

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp update_time = 7;

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp update_time = 7;

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
boolean

Whether the createTime field is set.

hasDraftApplicationConfigs()

public boolean hasDraftApplicationConfigs()

The draft application configs which haven't been updated to an application.

.google.events.cloud.visionai.v1.ApplicationConfigs draft_application_configs = 6;

Returns
Type Description
boolean

Whether the draftApplicationConfigs field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp update_time = 7;

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Draft.Builder mergeCreateTime(Timestamp value)

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp create_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
Draft.Builder

mergeDraftApplicationConfigs(ApplicationConfigs value)

public Draft.Builder mergeDraftApplicationConfigs(ApplicationConfigs value)

The draft application configs which haven't been updated to an application.

.google.events.cloud.visionai.v1.ApplicationConfigs draft_application_configs = 6;

Parameter
Name Description
value ApplicationConfigs
Returns
Type Description
Draft.Builder

mergeFrom(Draft other)

public Draft.Builder mergeFrom(Draft other)
Parameter
Name Description
other Draft
Returns
Type Description
Draft.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Draft.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Draft.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Draft.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Draft.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Draft.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Draft.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Draft.Builder mergeUpdateTime(Timestamp value)

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp update_time = 7;

Parameter
Name Description
value Timestamp
Returns
Type Description
Draft.Builder

putAllLabels(Map<String,String> values)

public Draft.Builder putAllLabels(Map<String,String> values)

Labels as key value pairs

map<string, string> labels = 3;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Draft.Builder

putLabels(String key, String value)

public Draft.Builder putLabels(String key, String value)

Labels as key value pairs

map<string, string> labels = 3;

Parameters
Name Description
key String
value String
Returns
Type Description
Draft.Builder

removeLabels(String key)

public Draft.Builder removeLabels(String key)

Labels as key value pairs

map<string, string> labels = 3;

Parameter
Name Description
key String
Returns
Type Description
Draft.Builder

setCreateTime(Timestamp value)

public Draft.Builder setCreateTime(Timestamp value)

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp create_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
Draft.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Draft.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp create_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Draft.Builder

setDescription(String value)

public Draft.Builder setDescription(String value)

A description for this application.

string description = 5;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Draft.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Draft.Builder setDescriptionBytes(ByteString value)

A description for this application.

string description = 5;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Draft.Builder

This builder for chaining.

setDisplayName(String value)

public Draft.Builder setDisplayName(String value)

Required. A user friendly display name for the solution.

string display_name = 4;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Draft.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Draft.Builder setDisplayNameBytes(ByteString value)

Required. A user friendly display name for the solution.

string display_name = 4;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Draft.Builder

This builder for chaining.

setDraftApplicationConfigs(ApplicationConfigs value)

public Draft.Builder setDraftApplicationConfigs(ApplicationConfigs value)

The draft application configs which haven't been updated to an application.

.google.events.cloud.visionai.v1.ApplicationConfigs draft_application_configs = 6;

Parameter
Name Description
value ApplicationConfigs
Returns
Type Description
Draft.Builder

setDraftApplicationConfigs(ApplicationConfigs.Builder builderForValue)

public Draft.Builder setDraftApplicationConfigs(ApplicationConfigs.Builder builderForValue)

The draft application configs which haven't been updated to an application.

.google.events.cloud.visionai.v1.ApplicationConfigs draft_application_configs = 6;

Parameter
Name Description
builderForValue ApplicationConfigs.Builder
Returns
Type Description
Draft.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Draft.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Draft.Builder
Overrides

setName(String value)

public Draft.Builder setName(String value)

name of resource

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Draft.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Draft.Builder setNameBytes(ByteString value)

name of resource

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Draft.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Draft.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Draft.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Draft.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Draft.Builder
Overrides

setUpdateTime(Timestamp value)

public Draft.Builder setUpdateTime(Timestamp value)

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp update_time = 7;

Parameter
Name Description
value Timestamp
Returns
Type Description
Draft.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Draft.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp update_time = 7;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Draft.Builder