Class: Google::Apis::RetailV2::GoogleCloudRetailV2GetDefaultBranchResponse

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

Overview

Response message of CatalogService.GetDefaultBranch.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2GetDefaultBranchResponse

Returns a new instance of GoogleCloudRetailV2GetDefaultBranchResponse.



1558
1559
1560
# File 'lib/google/apis/retail_v2/classes.rb', line 1558

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

Instance Attribute Details

#branchString

Full resource name of the branch id currently set as default branch. Corresponds to the JSON property branch

Returns:

  • (String)


1545
1546
1547
# File 'lib/google/apis/retail_v2/classes.rb', line 1545

def branch
  @branch
end

#noteString

This corresponds to SetDefaultBranchRequest.note field, when this branch was set as default. Corresponds to the JSON property note

Returns:

  • (String)


1551
1552
1553
# File 'lib/google/apis/retail_v2/classes.rb', line 1551

def note
  @note
end

#set_timeString

The time when this branch is set to default. Corresponds to the JSON property setTime

Returns:

  • (String)


1556
1557
1558
# File 'lib/google/apis/retail_v2/classes.rb', line 1556

def set_time
  @set_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1563
1564
1565
1566
1567
# File 'lib/google/apis/retail_v2/classes.rb', line 1563

def update!(**args)
  @branch = args[:branch] if args.key?(:branch)
  @note = args[:note] if args.key?(:note)
  @set_time = args[:set_time] if args.key?(:set_time)
end