Class Source.Builder (0.34.0)

public static final class Source.Builder extends GeneratedMessageV3.Builder<Source.Builder> implements SourceOrBuilder

Source represents an object from which asset information is streamed to Migration Center.

Protobuf type google.cloud.migrationcenter.v1.Source

Implements

SourceOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Source build()
Returns
Type Description
Source

buildPartial()

public Source buildPartial()
Returns
Type Description
Source

clear()

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

clearCreateTime()

public Source.Builder clearCreateTime()

Output only. The timestamp when the source was created.

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

Returns
Type Description
Source.Builder

clearDescription()

public Source.Builder clearDescription()

Free-text description.

string description = 5;

Returns
Type Description
Source.Builder

This builder for chaining.

clearDisplayName()

public Source.Builder clearDisplayName()

User-friendly display name.

string display_name = 4;

Returns
Type Description
Source.Builder

This builder for chaining.

clearErrorFrameCount()

public Source.Builder clearErrorFrameCount()

Output only. The number of frames that were reported by the source and contained errors.

int32 error_frame_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Source.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearManaged()

public Source.Builder clearManaged()

If true, the source is managed by other service(s).

bool managed = 8;

Returns
Type Description
Source.Builder

This builder for chaining.

clearName()

public Source.Builder clearName()

Output only. The full name of the source.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Source.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPendingFrameCount()

public Source.Builder clearPendingFrameCount()

Output only. Number of frames that are still being processed.

int32 pending_frame_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Source.Builder

This builder for chaining.

clearPriority()

public Source.Builder clearPriority()

The information confidence of the source. The higher the value, the higher the confidence.

int32 priority = 7;

Returns
Type Description
Source.Builder

This builder for chaining.

clearState()

public Source.Builder clearState()

Output only. The state of the source.

.google.cloud.migrationcenter.v1.Source.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Source.Builder

This builder for chaining.

clearType()

public Source.Builder clearType()

Data source type.

.google.cloud.migrationcenter.v1.Source.SourceType type = 6;

Returns
Type Description
Source.Builder

This builder for chaining.

clearUpdateTime()

public Source.Builder clearUpdateTime()

Output only. The timestamp when the source was last updated.

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

Returns
Type Description
Source.Builder

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp when the source was created.

.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. The timestamp when the source was created.

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp when the source was created.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Source getDefaultInstanceForType()
Returns
Type Description
Source

getDescription()

public String getDescription()

Free-text description.

string description = 5;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Free-text description.

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()

User-friendly display name.

string display_name = 4;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

User-friendly display name.

string display_name = 4;

Returns
Type Description
ByteString

The bytes for displayName.

getErrorFrameCount()

public int getErrorFrameCount()

Output only. The number of frames that were reported by the source and contained errors.

int32 error_frame_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The errorFrameCount.

getManaged()

public boolean getManaged()

If true, the source is managed by other service(s).

bool managed = 8;

Returns
Type Description
boolean

The managed.

getName()

public String getName()

Output only. The full name of the source.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The full name of the source.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getPendingFrameCount()

public int getPendingFrameCount()

Output only. Number of frames that are still being processed.

int32 pending_frame_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The pendingFrameCount.

getPriority()

public int getPriority()

The information confidence of the source. The higher the value, the higher the confidence.

int32 priority = 7;

Returns
Type Description
int

The priority.

getState()

public Source.State getState()

Output only. The state of the source.

.google.cloud.migrationcenter.v1.Source.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Source.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of the source.

.google.cloud.migrationcenter.v1.Source.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getType()

public Source.SourceType getType()

Data source type.

.google.cloud.migrationcenter.v1.Source.SourceType type = 6;

Returns
Type Description
Source.SourceType

The type.

getTypeValue()

public int getTypeValue()

Data source type.

.google.cloud.migrationcenter.v1.Source.SourceType type = 6;

Returns
Type Description
int

The enum numeric value on the wire for type.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The timestamp when the source was last updated.

.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. The timestamp when the source was last updated.

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

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The timestamp when the source was last updated.

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

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The timestamp when the source was created.

.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. The timestamp when the source was last updated.

.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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Source.Builder mergeCreateTime(Timestamp value)

Output only. The timestamp when the source was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Source.Builder

mergeFrom(Source other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Source.Builder mergeUpdateTime(Timestamp value)

Output only. The timestamp when the source was last updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Source.Builder

setCreateTime(Timestamp value)

public Source.Builder setCreateTime(Timestamp value)

Output only. The timestamp when the source was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Source.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Source.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the source was created.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Source.Builder

setDescription(String value)

public Source.Builder setDescription(String value)

Free-text description.

string description = 5;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Source.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Source.Builder setDescriptionBytes(ByteString value)

Free-text description.

string description = 5;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Source.Builder

This builder for chaining.

setDisplayName(String value)

public Source.Builder setDisplayName(String value)

User-friendly display name.

string display_name = 4;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Source.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Source.Builder setDisplayNameBytes(ByteString value)

User-friendly display name.

string display_name = 4;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Source.Builder

This builder for chaining.

setErrorFrameCount(int value)

public Source.Builder setErrorFrameCount(int value)

Output only. The number of frames that were reported by the source and contained errors.

int32 error_frame_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The errorFrameCount to set.

Returns
Type Description
Source.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setManaged(boolean value)

public Source.Builder setManaged(boolean value)

If true, the source is managed by other service(s).

bool managed = 8;

Parameter
Name Description
value boolean

The managed to set.

Returns
Type Description
Source.Builder

This builder for chaining.

setName(String value)

public Source.Builder setName(String value)

Output only. The full name of the source.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Source.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Source.Builder setNameBytes(ByteString value)

Output only. The full name of the source.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Source.Builder

This builder for chaining.

setPendingFrameCount(int value)

public Source.Builder setPendingFrameCount(int value)

Output only. Number of frames that are still being processed.

int32 pending_frame_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The pendingFrameCount to set.

Returns
Type Description
Source.Builder

This builder for chaining.

setPriority(int value)

public Source.Builder setPriority(int value)

The information confidence of the source. The higher the value, the higher the confidence.

int32 priority = 7;

Parameter
Name Description
value int

The priority to set.

Returns
Type Description
Source.Builder

This builder for chaining.

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

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

setState(Source.State value)

public Source.Builder setState(Source.State value)

Output only. The state of the source.

.google.cloud.migrationcenter.v1.Source.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Source.State

The state to set.

Returns
Type Description
Source.Builder

This builder for chaining.

setStateValue(int value)

public Source.Builder setStateValue(int value)

Output only. The state of the source.

.google.cloud.migrationcenter.v1.Source.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
Source.Builder

This builder for chaining.

setType(Source.SourceType value)

public Source.Builder setType(Source.SourceType value)

Data source type.

.google.cloud.migrationcenter.v1.Source.SourceType type = 6;

Parameter
Name Description
value Source.SourceType

The type to set.

Returns
Type Description
Source.Builder

This builder for chaining.

setTypeValue(int value)

public Source.Builder setTypeValue(int value)

Data source type.

.google.cloud.migrationcenter.v1.Source.SourceType type = 6;

Parameter
Name Description
value int

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

Returns
Type Description
Source.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Source.Builder setUpdateTime(Timestamp value)

Output only. The timestamp when the source was last updated.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Source.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Source.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the source was last updated.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Source.Builder