Class Source.Builder (0.24.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Source.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Source.Builder
Overrides

build()

public Source build()
Returns
TypeDescription
Source

buildPartial()

public Source buildPartial()
Returns
TypeDescription
Source

clear()

public Source.Builder clear()
Returns
TypeDescription
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
TypeDescription
Source.Builder

clearDescription()

public Source.Builder clearDescription()

Free-text description.

string description = 5;

Returns
TypeDescription
Source.Builder

This builder for chaining.

clearDisplayName()

public Source.Builder clearDisplayName()

User-friendly display name.

string display_name = 4;

Returns
TypeDescription
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
TypeDescription
Source.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Source.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Source.Builder
Overrides

clearManaged()

public Source.Builder clearManaged()

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

bool managed = 8;

Returns
TypeDescription
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
TypeDescription
Source.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Source.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Source.Builder

This builder for chaining.

clearType()

public Source.Builder clearType()

Data source type.

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

Returns
TypeDescription
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
TypeDescription
Source.Builder

clone()

public Source.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Source getDefaultInstanceForType()
Returns
TypeDescription
Source

getDescription()

public String getDescription()

Free-text description.

string description = 5;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Free-text description.

string description = 5;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

User-friendly display name.

string display_name = 4;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

User-friendly display name.

string display_name = 4;

Returns
TypeDescription
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
TypeDescription
int

The errorFrameCount.

getManaged()

public boolean getManaged()

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

bool managed = 8;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Source.SourceType

The type.

getTypeValue()

public int getTypeValue()

Data source type.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Source.Builder

mergeFrom(Source other)

public Source.Builder mergeFrom(Source other)
Parameter
NameDescription
otherSource
Returns
TypeDescription
Source.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Source.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Source.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Source.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Source.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Source.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Source.Builder

setDescription(String value)

public Source.Builder setDescription(String value)

Free-text description.

string description = 5;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Source.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Source.Builder setDescriptionBytes(ByteString value)

Free-text description.

string description = 5;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Source.Builder

This builder for chaining.

setDisplayName(String value)

public Source.Builder setDisplayName(String value)

User-friendly display name.

string display_name = 4;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
Source.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Source.Builder setDisplayNameBytes(ByteString value)

User-friendly display name.

string display_name = 4;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
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
NameDescription
valueint

The errorFrameCount to set.

Returns
TypeDescription
Source.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Source.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueboolean

The managed to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueint

The pendingFrameCount to set.

Returns
TypeDescription
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
NameDescription
valueint

The priority to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSource.State

The state to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueSource.SourceType

The type to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
Source.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Source.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Source.Builder