Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaGetDefaultBranchResponse

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

Overview

Response message of CatalogService.GetDefaultBranch.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2betaGetDefaultBranchResponse

Returns a new instance of GoogleCloudRetailV2betaGetDefaultBranchResponse.



2067
2068
2069
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2067

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)


2054
2055
2056
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2054

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)


2060
2061
2062
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2060

def note
  @note
end

#set_timeString

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

Returns:

  • (String)


2065
2066
2067
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2065

def set_time
  @set_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2072
2073
2074
2075
2076
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2072

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