-
Notifications
You must be signed in to change notification settings - Fork 30
Add methods to ResourceName interface #46
Conversation
|
Blocked on googleapis/protoc-java-resource-names-plugin#28. |
|
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.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| } | ||
|
|
||
| @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.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| /* 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.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| } | ||
| } | ||
| return fieldValuesMap; | ||
| } |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
version.txt
Outdated
| @@ -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.
| */ | ||
| 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.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| 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.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
garrettjonesgoogle
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.