Class BranchName (0.30.0)

public class BranchName implements ResourceName

Inheritance

Object > BranchName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project, String location, String dataStore, String branch)

public static String format(String project, String location, String dataStore, String branch)
Parameters
NameDescription
projectString
locationString
dataStoreString
branchString
Returns
TypeDescription
String

formatProjectLocationCollectionDataStoreBranchName(String project, String location, String collection, String dataStore, String branch)

public static String formatProjectLocationCollectionDataStoreBranchName(String project, String location, String collection, String dataStore, String branch)
Parameters
NameDescription
projectString
locationString
collectionString
dataStoreString
branchString
Returns
TypeDescription
String

formatProjectLocationDataStoreBranchName(String project, String location, String dataStore, String branch)

public static String formatProjectLocationDataStoreBranchName(String project, String location, String dataStore, String branch)
Parameters
NameDescription
projectString
locationString
dataStoreString
branchString
Returns
TypeDescription
String

isParsableFrom(String formattedString)

public static boolean isParsableFrom(String formattedString)
Parameter
NameDescription
formattedStringString
Returns
TypeDescription
boolean

newBuilder()

public static BranchName.Builder newBuilder()
Returns
TypeDescription
BranchName.Builder

newProjectLocationCollectionDataStoreBranchBuilder()

public static BranchName.ProjectLocationCollectionDataStoreBranchBuilder newProjectLocationCollectionDataStoreBranchBuilder()
Returns
TypeDescription
BranchName.ProjectLocationCollectionDataStoreBranchBuilder

newProjectLocationDataStoreBranchBuilder()

public static BranchName.Builder newProjectLocationDataStoreBranchBuilder()
Returns
TypeDescription
BranchName.Builder

of(String project, String location, String dataStore, String branch)

public static BranchName of(String project, String location, String dataStore, String branch)
Parameters
NameDescription
projectString
locationString
dataStoreString
branchString
Returns
TypeDescription
BranchName

ofProjectLocationCollectionDataStoreBranchName(String project, String location, String collection, String dataStore, String branch)

public static BranchName ofProjectLocationCollectionDataStoreBranchName(String project, String location, String collection, String dataStore, String branch)
Parameters
NameDescription
projectString
locationString
collectionString
dataStoreString
branchString
Returns
TypeDescription
BranchName

ofProjectLocationDataStoreBranchName(String project, String location, String dataStore, String branch)

public static BranchName ofProjectLocationDataStoreBranchName(String project, String location, String dataStore, String branch)
Parameters
NameDescription
projectString
locationString
dataStoreString
branchString
Returns
TypeDescription
BranchName

parse(String formattedString)

public static BranchName parse(String formattedString)
Parameter
NameDescription
formattedStringString
Returns
TypeDescription
BranchName

parseList(List<String> formattedStrings)

public static List<BranchName> parseList(List<String> formattedStrings)
Parameter
NameDescription
formattedStringsList<String>
Returns
TypeDescription
List<BranchName>

toStringList(List<BranchName> values)

public static List<String> toStringList(List<BranchName> values)
Parameter
NameDescription
valuesList<BranchName>
Returns
TypeDescription
List<String>

Constructors

BranchName() (deprecated)

protected BranchName()

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

getBranch()

public String getBranch()
Returns
TypeDescription
String

getCollection()

public String getCollection()
Returns
TypeDescription
String

getDataStore()

public String getDataStore()
Returns
TypeDescription
String

getFieldValue(String fieldName)

public String getFieldValue(String fieldName)
Parameter
NameDescription
fieldNameString
Returns
TypeDescription
String

getFieldValuesMap()

public Map<String,String> getFieldValuesMap()
Returns
TypeDescription
Map<String,String>

getLocation()

public String getLocation()
Returns
TypeDescription
String

getProject()

public String getProject()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

public BranchName.Builder toBuilder()
Returns
TypeDescription
BranchName.Builder

toString()

public String toString()
Returns
TypeDescription
String
Overrides