Class Annotation.Builder (0.30.0)

public static final class Annotation.Builder extends GeneratedMessageV3.Builder<Annotation.Builder> implements AnnotationOrBuilder

Message describing an Annotation

Protobuf type google.cloud.rapidmigrationassessment.v1.Annotation

Implements

AnnotationOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Annotation build()
Returns
Type Description
Annotation

buildPartial()

public Annotation buildPartial()
Returns
Type Description
Annotation

clear()

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

clearCreateTime()

public Annotation.Builder clearCreateTime()

Output only. Create time stamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Annotation.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

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

clearName()

public Annotation.Builder clearName()

name of resource.

string name = 1;

Returns
Type Description
Annotation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearType()

public Annotation.Builder clearType()

Type of an annotation.

.google.cloud.rapidmigrationassessment.v1.Annotation.Type type = 5;

Returns
Type Description
Annotation.Builder

This builder for chaining.

clearUpdateTime()

public Annotation.Builder clearUpdateTime()

Output only. Update time stamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Annotation.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Labels as key value pairs.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. Create time stamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Create time stamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Create time stamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Annotation getDefaultInstanceForType()
Returns
Type Description
Annotation

getDescriptorForType()

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

getLabels() (deprecated)

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 = 4;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels as key value pairs.

map<string, string> labels = 4;

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 = 4;

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 = 4;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

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.

getType()

public Annotation.Type getType()

Type of an annotation.

.google.cloud.rapidmigrationassessment.v1.Annotation.Type type = 5;

Returns
Type Description
Annotation.Type

The type.

getTypeValue()

public int getTypeValue()

Type of an annotation.

.google.cloud.rapidmigrationassessment.v1.Annotation.Type type = 5;

Returns
Type Description
int

The enum numeric value on the wire for type.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Update time stamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Update time stamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Update time stamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Create time stamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Update time stamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Annotation.Builder mergeCreateTime(Timestamp value)

Output only. Create time stamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Annotation.Builder

mergeFrom(Annotation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Annotation.Builder mergeUpdateTime(Timestamp value)

Output only. Update time stamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Annotation.Builder

putAllLabels(Map<String,String> values)

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

Labels as key value pairs.

map<string, string> labels = 4;

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

putLabels(String key, String value)

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

Labels as key value pairs.

map<string, string> labels = 4;

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

removeLabels(String key)

public Annotation.Builder removeLabels(String key)

Labels as key value pairs.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
Annotation.Builder

setCreateTime(Timestamp value)

public Annotation.Builder setCreateTime(Timestamp value)

Output only. Create time stamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Annotation.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Annotation.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Create time stamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Annotation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Annotation.Builder setName(String value)

name of resource.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Annotation.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Annotation.Builder setNameBytes(ByteString value)

name of resource.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Annotation.Builder

This builder for chaining.

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

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

setType(Annotation.Type value)

public Annotation.Builder setType(Annotation.Type value)

Type of an annotation.

.google.cloud.rapidmigrationassessment.v1.Annotation.Type type = 5;

Parameter
Name Description
value Annotation.Type

The type to set.

Returns
Type Description
Annotation.Builder

This builder for chaining.

setTypeValue(int value)

public Annotation.Builder setTypeValue(int value)

Type of an annotation.

.google.cloud.rapidmigrationassessment.v1.Annotation.Type type = 5;

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
Annotation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Annotation.Builder setUpdateTime(Timestamp value)

Output only. Update time stamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Annotation.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Annotation.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Update time stamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Annotation.Builder