@Generated(value="by gapic-generator-java") public class SourceName extends Object implements com.google.api.resourcenames.ResourceName
Modifier and Type | Class and Description |
---|---|
static class |
SourceName.Builder
Builder for organizations/{organization}/sources/{source}.
|
static class |
SourceName.FolderSourceBuilder
Builder for folders/{folder}/sources/{source}.
|
static class |
SourceName.ProjectSourceBuilder
Builder for projects/{project}/sources/{source}.
|
Modifier | Constructor and Description |
---|---|
protected |
SourceName()
Deprecated.
|
@Deprecated protected SourceName()
public String getOrganization()
public String getSource()
public String getFolder()
public String getProject()
public static SourceName.Builder newBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static SourceName.Builder newOrganizationSourceBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static SourceName.FolderSourceBuilder newFolderSourceBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static SourceName.ProjectSourceBuilder newProjectSourceBuilder()
public SourceName.Builder toBuilder()
public static SourceName of(String organization, String source)
@BetaApi(value="The static create methods are not stable yet and may be changed in the future.") public static SourceName ofOrganizationSourceName(String organization, String source)
@BetaApi(value="The static create methods are not stable yet and may be changed in the future.") public static SourceName ofFolderSourceName(String folder, String source)
@BetaApi(value="The static create methods are not stable yet and may be changed in the future.") public static SourceName ofProjectSourceName(String project, String source)
@BetaApi(value="The static format methods are not stable yet and may be changed in the future.") public static String formatOrganizationSourceName(String organization, String source)
@BetaApi(value="The static format methods are not stable yet and may be changed in the future.") public static String formatFolderSourceName(String folder, String source)
@BetaApi(value="The static format methods are not stable yet and may be changed in the future.") public static String formatProjectSourceName(String project, String source)
public static SourceName parse(String formattedString)
public static List<SourceName> parseList(List<String> formattedStrings)
public static List<String> toStringList(List<SourceName> values)
public static boolean isParsableFrom(String formattedString)
public Map<String,String> getFieldValuesMap()
getFieldValuesMap
in interface com.google.api.resourcenames.ResourceName
public String getFieldValue(String fieldName)
getFieldValue
in interface com.google.api.resourcenames.ResourceName
Copyright © 2022 Google LLC. All rights reserved.