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.



19508
19509
19510
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19508

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)


19501
19502
19503
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19501

def member_type
  @member_type
end

#square_idFixnum

Currently required. Corresponds to the JSON property squareId

Returns:

  • (Fixnum)


19506
19507
19508
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19506

def square_id
  @square_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19513
19514
19515
19516
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19513

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