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.



926
927
928
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 926

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

Instance Attribute Details

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

Corresponds to the JSON property enumType



904
905
906
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 904

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



909
910
911
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 909

def message_type
  @message_type
end

#nameString

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

Returns:

  • (String)


914
915
916
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 914

def name
  @name
end

#packageString

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

Returns:

  • (String)


919
920
921
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 919

def package
  @package
end

#syntaxString

The syntax of the proto file. The supported values are "proto2" and "proto3". Corresponds to the JSON property syntax

Returns:

  • (String)


924
925
926
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 924

def syntax
  @syntax
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



931
932
933
934
935
936
937
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 931

def update!(**args)
  @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