Class: Google::Apis::CloudsearchV1::SquareProto

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

Overview

Represents the set of members (of a given type) in a Google+ Square (see http:/ /go/squares). A Square with default member_type is currently (1/2012) identical to the GaiaGroup with the same ID, but that is expected to change soon (see http://go/superglue). Support for this principal type is currently ( 1/2012) incomplete -- e.g., Keystore does not support it yet (see b/5703421).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SquareProto

Returns a new instance of SquareProto.



19329
19330
19331
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19329

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

Instance Attribute Details

#member_typeFixnum

The type of Square members to consider, e.g. "all members" vs. "owners" vs. " admins". These are defined by legacy_relation_id values in social.graph. storage.EdgeTypeEnum.EdgeType enum options in social/graph/storage/proto/id. proto. See square.pb (defined in production/config/cdd/socialgraph/ mixer_config/prod/node_type_config) for all valid edge types associated with square. Currently required. Corresponds to the JSON property memberType

Returns:

  • (Fixnum)


19322
19323
19324
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19322

def member_type
  @member_type
end

#square_idFixnum

Currently required. Corresponds to the JSON property squareId

Returns:

  • (Fixnum)


19327
19328
19329
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19327

def square_id
  @square_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19334
19335
19336
19337
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19334

def update!(**args)
  @member_type = args[:member_type] if args.key?(:member_type)
  @square_id = args[:square_id] if args.key?(:square_id)
end