You've already forked dart-viz-sdk
72 lines
3.0 KiB
Dart
72 lines
3.0 KiB
Dart
// This is a generated file - do not edit.
|
|
//
|
|
// Generated from google/protobuf/source_context.proto.
|
|
|
|
// @dart = 3.3
|
|
|
|
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
|
// ignore_for_file: constant_identifier_names
|
|
// ignore_for_file: curly_braces_in_flow_control_structures
|
|
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
|
// ignore_for_file: non_constant_identifier_names
|
|
|
|
import 'dart:core' as $core;
|
|
|
|
import 'package:protobuf/protobuf.dart' as $pb;
|
|
|
|
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
|
|
|
/// `SourceContext` represents information about the source of a
|
|
/// protobuf element, like the file in which it is defined.
|
|
class SourceContext extends $pb.GeneratedMessage {
|
|
factory SourceContext({
|
|
$core.String? fileName,
|
|
}) {
|
|
final result = create();
|
|
if (fileName != null) result.fileName = fileName;
|
|
return result;
|
|
}
|
|
|
|
SourceContext._();
|
|
|
|
factory SourceContext.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
|
factory SourceContext.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
|
|
|
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SourceContext', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create)
|
|
..aOS(1, _omitFieldNames ? '' : 'fileName')
|
|
..hasRequiredFields = false
|
|
;
|
|
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
SourceContext clone() => SourceContext()..mergeFromMessage(this);
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
SourceContext copyWith(void Function(SourceContext) updates) => super.copyWith((message) => updates(message as SourceContext)) as SourceContext;
|
|
|
|
@$core.override
|
|
$pb.BuilderInfo get info_ => _i;
|
|
|
|
@$core.pragma('dart2js:noInline')
|
|
static SourceContext create() => SourceContext._();
|
|
@$core.override
|
|
SourceContext createEmptyInstance() => create();
|
|
static $pb.PbList<SourceContext> createRepeated() => $pb.PbList<SourceContext>();
|
|
@$core.pragma('dart2js:noInline')
|
|
static SourceContext getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<SourceContext>(create);
|
|
static SourceContext? _defaultInstance;
|
|
|
|
/// The path-qualified name of the .proto file that contained the associated
|
|
/// protobuf element. For example: `"google/protobuf/source_context.proto"`.
|
|
@$pb.TagNumber(1)
|
|
$core.String get fileName => $_getSZ(0);
|
|
@$pb.TagNumber(1)
|
|
set fileName($core.String value) => $_setString(0, value);
|
|
@$pb.TagNumber(1)
|
|
$core.bool hasFileName() => $_has(0);
|
|
@$pb.TagNumber(1)
|
|
void clearFileName() => $_clearField(1);
|
|
}
|
|
|
|
|
|
const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
|
const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|