Uh oh!
There was an error while loading. Please reload this page.
Add methods to ResourceName interface - #46
Conversation
andreamlin
commented
Feb 27, 2018
Blocked on googleapis/protoc-java-resource-names-plugin#28. |
andreamlin
commented
Feb 28, 2018
PTAL |
Codecov Report
@@ Coverage Diff @@## master #46 +/- ##
============================================
+ Coverage 60.23% 61.01% +0.78% - Complexity 140 145 +5
============================================
Files 14 14 Lines 606 613 +7 Branches 91 92 +1 ============================================
+ Hits 365 374 +9 + Misses 219 215 -4 - Partials 22 24 +2
Continue to review full report at Codecov.
|
| @Override | ||
| /* Returns a map with an empty String as the sole key, which maps to the raw value of this ResourceName. */ | ||
| public Map<String, String> getFieldValuesMap() { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| } | ||
| @Override | ||
| /* Returns the raw value of this ResourceName, regardless of the fieldName parameter. */ |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| /* Returns the raw value of this ResourceName iff fieldName.equals(""), else returns null. */ | ||
| @Override | ||
| public String getFieldValue(String fieldName) { | ||
| return fieldValuesMap.get(""); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| } | ||
| } | ||
| return fieldValuesMap; | ||
| } |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| @@ -1 +1 @@ | |||
| 1.4.0 | |||
| 1.3.1-SNAPSHOT | |||
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| */ | ||
| package com.google.api.resourcenames; | ||
| public interface ResourceNameFactory<T extends ResourceName> { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| public interface ResourceNameFactory<T extends ResourceName> { | ||
| /* Create a new ResourceName from a formatted String representing a ResourceName. */ | ||
| T parseFrom(String formattedString); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
garrettjonesgoogle
left a comment
There was a problem hiding this comment.
Ok I'm good with this PR, but we should hold off on merging until we have regenerated api-client-staging and released that code in google-cloud-java.
No description provided.