Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaGetDefaultBranchResponse

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

Overview

Response message of CatalogService.GetDefaultBranch.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2alphaGetDefaultBranchResponse

Returns a new instance of GoogleCloudRetailV2alphaGetDefaultBranchResponse.



3478
3479
3480
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3478

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)


3465
3466
3467
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3465

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)


3471
3472
3473
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3471

def note
  @note
end

#set_timeString

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

Returns:

  • (String)


3476
3477
3478
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3476

def set_time
  @set_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3483
3484
3485
3486
3487
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3483

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