From 51b41edb1c88844c4a639476065f9e2f812dccee Mon Sep 17 00:00:00 2001 From: Steve Bazyl Date: Fri, 31 Mar 2017 12:27:30 -0700 Subject: [PATCH] #474 - Clarify that base64 properties are automatically encoded/decoded. --- lib/google/apis/generator/templates/_class.tmpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/google/apis/generator/templates/_class.tmpl b/lib/google/apis/generator/templates/_class.tmpl index 77b6022bb..5658483d3 100644 --- a/lib/google/apis/generator/templates/_class.tmpl +++ b/lib/google/apis/generator/templates/_class.tmpl @@ -7,6 +7,9 @@ class <%= cls.generated_class_name %><% if cls.base_ref %> < <%= cls.base_ref.ge # <%= block_comment(property.description, 2, 1) %> # Corresponds to the JSON property `<%= property.name %>` +<% if property.format == 'byte' -%> + # NOTE: Values are automatically base64 encoded/decoded in the client library. +<% end -%> # @return [<%= property.generated_type %>] attr_accessor :<%= property.generated_name %> <% if property.type == 'boolean' -%>