Class: Google::Apis::ChromepolicyV1::Proto2FileDescriptorProto

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/chromepolicy_v1/classes.rb,
lib/google/apis/chromepolicy_v1/representations.rb,
lib/google/apis/chromepolicy_v1/representations.rb

Overview

Describes a complete .proto file.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Proto2FileDescriptorProto

Returns a new instance of Proto2FileDescriptorProto.



1657
1658
1659
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1657

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#edition_deprecatedString

BEGIN GOOGLE-INTERNAL TODO(b/297898292) Deprecate and remove this field in favor of enums. END GOOGLE-INTERNAL Corresponds to the JSON property editionDeprecated

Returns:

  • (String)


1629
1630
1631
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1629

def edition_deprecated
  @edition_deprecated
end

#enum_typeArray<Google::Apis::ChromepolicyV1::Proto2EnumDescriptorProto>

Corresponds to the JSON property enumType



1634
1635
1636
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1634

def enum_type
  @enum_type
end

#message_typeArray<Google::Apis::ChromepolicyV1::Proto2DescriptorProto>

All top-level definitions in this file. Corresponds to the JSON property messageType



1639
1640
1641
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1639

def message_type
  @message_type
end

#nameString

file name, relative to root of source tree Corresponds to the JSON property name

Returns:

  • (String)


1644
1645
1646
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1644

def name
  @name
end

#packageString

e.g. "foo", "foo.bar", etc. Corresponds to the JSON property package

Returns:

  • (String)


1649
1650
1651
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1649

def package
  @package
end

#syntaxString

The syntax of the proto file. The supported values are "proto2", "proto3", and "editions". If edition is present, this value must be "editions". Corresponds to the JSON property syntax

Returns:

  • (String)


1655
1656
1657
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1655

def syntax
  @syntax
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1662
1663
1664
1665
1666
1667
1668
1669
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1662

def update!(**args)
  @edition_deprecated = args[:edition_deprecated] if args.key?(:edition_deprecated)
  @enum_type = args[:enum_type] if args.key?(:enum_type)
  @message_type = args[:message_type] if args.key?(:message_type)
  @name = args[:name] if args.key?(:name)
  @package = args[:package] if args.key?(:package)
  @syntax = args[:syntax] if args.key?(:syntax)
end