class Google::Apis::ServicenetworkingV1::Type

A protocol buffer message type.

Attributes

fields[RW]

The list of fields. Corresponds to the JSON property `fields` @return [Array<Google::Apis::ServicenetworkingV1::Field>]

name[RW]

The fully qualified message name. Corresponds to the JSON property `name` @return [String]

oneofs[RW]

The list of types appearing in `oneof` definitions in this type. Corresponds to the JSON property `oneofs` @return [Array<String>]

options[RW]

The protocol buffer options. Corresponds to the JSON property `options` @return [Array<Google::Apis::ServicenetworkingV1::Option>]

source_context[RW]

`SourceContext` represents information about the source of a protobuf element, like the file in which it is defined. Corresponds to the JSON property `sourceContext` @return [Google::Apis::ServicenetworkingV1::SourceContext]

syntax[RW]

The source syntax. Corresponds to the JSON property `syntax` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/servicenetworking_v1/classes.rb, line 4048
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/servicenetworking_v1/classes.rb, line 4053
def update!(**args)
  @fields = args[:fields] if args.key?(:fields)
  @name = args[:name] if args.key?(:name)
  @oneofs = args[:oneofs] if args.key?(:oneofs)
  @options = args[:options] if args.key?(:options)
  @source_context = args[:source_context] if args.key?(:source_context)
  @syntax = args[:syntax] if args.key?(:syntax)
end