id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
132,500 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java | InstanceClient.setDiskAutoDeleteInstance | @BetaApi
public final Operation setDiskAutoDeleteInstance(
ProjectZoneInstanceName instance, Boolean autoDelete, String deviceName) {
SetDiskAutoDeleteInstanceHttpRequest request =
SetDiskAutoDeleteInstanceHttpRequest.newBuilder()
.setInstance(instance == null ? null : instance.toString... | java | @BetaApi
public final Operation setDiskAutoDeleteInstance(
ProjectZoneInstanceName instance, Boolean autoDelete, String deviceName) {
SetDiskAutoDeleteInstanceHttpRequest request =
SetDiskAutoDeleteInstanceHttpRequest.newBuilder()
.setInstance(instance == null ? null : instance.toString... | [
"@",
"BetaApi",
"public",
"final",
"Operation",
"setDiskAutoDeleteInstance",
"(",
"ProjectZoneInstanceName",
"instance",
",",
"Boolean",
"autoDelete",
",",
"String",
"deviceName",
")",
"{",
"SetDiskAutoDeleteInstanceHttpRequest",
"request",
"=",
"SetDiskAutoDeleteInstanceHttp... | Sets the auto-delete flag for a disk attached to an instance.
<p>Sample code:
<pre><code>
try (InstanceClient instanceClient = InstanceClient.create()) {
ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
Boolean autoDelete = false;
String deviceName = "";
Operation re... | [
"Sets",
"the",
"auto",
"-",
"delete",
"flag",
"for",
"a",
"disk",
"attached",
"to",
"an",
"instance",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java#L1948-L1959 |
132,501 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java | InstanceClient.setShieldedInstanceIntegrityPolicyInstance | @BetaApi
public final Operation setShieldedInstanceIntegrityPolicyInstance(
ProjectZoneInstanceName instance,
ShieldedInstanceIntegrityPolicy shieldedInstanceIntegrityPolicyResource,
List<String> fieldMask) {
SetShieldedInstanceIntegrityPolicyInstanceHttpRequest request =
SetShieldedIns... | java | @BetaApi
public final Operation setShieldedInstanceIntegrityPolicyInstance(
ProjectZoneInstanceName instance,
ShieldedInstanceIntegrityPolicy shieldedInstanceIntegrityPolicyResource,
List<String> fieldMask) {
SetShieldedInstanceIntegrityPolicyInstanceHttpRequest request =
SetShieldedIns... | [
"@",
"BetaApi",
"public",
"final",
"Operation",
"setShieldedInstanceIntegrityPolicyInstance",
"(",
"ProjectZoneInstanceName",
"instance",
",",
"ShieldedInstanceIntegrityPolicy",
"shieldedInstanceIntegrityPolicyResource",
",",
"List",
"<",
"String",
">",
"fieldMask",
")",
"{",
... | Sets the Shielded Instance integrity policy for an instance. You can only use this method on a
running instance. This method supports PATCH semantics and uses the JSON merge patch format and
processing rules.
<p>Sample code:
<pre><code>
try (InstanceClient instanceClient = InstanceClient.create()) {
ProjectZoneInstan... | [
"Sets",
"the",
"Shielded",
"Instance",
"integrity",
"policy",
"for",
"an",
"instance",
".",
"You",
"can",
"only",
"use",
"this",
"method",
"on",
"a",
"running",
"instance",
".",
"This",
"method",
"supports",
"PATCH",
"semantics",
"and",
"uses",
"the",
"JSON"... | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java#L2997-L3010 |
132,502 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java | InstanceClient.updateAccessConfigInstance | @BetaApi
public final Operation updateAccessConfigInstance(
ProjectZoneInstanceName instance,
String networkInterface,
AccessConfig accessConfigResource) {
UpdateAccessConfigInstanceHttpRequest request =
UpdateAccessConfigInstanceHttpRequest.newBuilder()
.setInstance(instanc... | java | @BetaApi
public final Operation updateAccessConfigInstance(
ProjectZoneInstanceName instance,
String networkInterface,
AccessConfig accessConfigResource) {
UpdateAccessConfigInstanceHttpRequest request =
UpdateAccessConfigInstanceHttpRequest.newBuilder()
.setInstance(instanc... | [
"@",
"BetaApi",
"public",
"final",
"Operation",
"updateAccessConfigInstance",
"(",
"ProjectZoneInstanceName",
"instance",
",",
"String",
"networkInterface",
",",
"AccessConfig",
"accessConfigResource",
")",
"{",
"UpdateAccessConfigInstanceHttpRequest",
"request",
"=",
"Update... | Updates the specified access config from an instance's network interface with the data included
in the request. This method supports PATCH semantics and uses the JSON merge patch format and
processing rules.
<p>Sample code:
<pre><code>
try (InstanceClient instanceClient = InstanceClient.create()) {
ProjectZoneInstanc... | [
"Updates",
"the",
"specified",
"access",
"config",
"from",
"an",
"instance",
"s",
"network",
"interface",
"with",
"the",
"data",
"included",
"in",
"the",
"request",
".",
"This",
"method",
"supports",
"PATCH",
"semantics",
"and",
"uses",
"the",
"JSON",
"merge",... | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java#L3790-L3803 |
132,503 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java | InstanceClient.updateNetworkInterfaceInstance | @BetaApi
public final Operation updateNetworkInterfaceInstance(
ProjectZoneInstanceName instance,
String networkInterface,
NetworkInterface networkInterfaceResource,
List<String> fieldMask) {
UpdateNetworkInterfaceInstanceHttpRequest request =
UpdateNetworkInterfaceInstanceHttpReq... | java | @BetaApi
public final Operation updateNetworkInterfaceInstance(
ProjectZoneInstanceName instance,
String networkInterface,
NetworkInterface networkInterfaceResource,
List<String> fieldMask) {
UpdateNetworkInterfaceInstanceHttpRequest request =
UpdateNetworkInterfaceInstanceHttpReq... | [
"@",
"BetaApi",
"public",
"final",
"Operation",
"updateNetworkInterfaceInstance",
"(",
"ProjectZoneInstanceName",
"instance",
",",
"String",
"networkInterface",
",",
"NetworkInterface",
"networkInterfaceResource",
",",
"List",
"<",
"String",
">",
"fieldMask",
")",
"{",
... | Updates an instance's network interface. This method follows PATCH semantics.
<p>Sample code:
<pre><code>
try (InstanceClient instanceClient = InstanceClient.create()) {
ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
String networkInterface = "";
NetworkInterface n... | [
"Updates",
"an",
"instance",
"s",
"network",
"interface",
".",
"This",
"method",
"follows",
"PATCH",
"semantics",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java#L3926-L3941 |
132,504 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java | InstanceClient.updateShieldedInstanceConfigInstance | @BetaApi
public final Operation updateShieldedInstanceConfigInstance(
ProjectZoneInstanceName instance,
ShieldedInstanceConfig shieldedInstanceConfigResource,
List<String> fieldMask) {
UpdateShieldedInstanceConfigInstanceHttpRequest request =
UpdateShieldedInstanceConfigInstanceHttpRequ... | java | @BetaApi
public final Operation updateShieldedInstanceConfigInstance(
ProjectZoneInstanceName instance,
ShieldedInstanceConfig shieldedInstanceConfigResource,
List<String> fieldMask) {
UpdateShieldedInstanceConfigInstanceHttpRequest request =
UpdateShieldedInstanceConfigInstanceHttpRequ... | [
"@",
"BetaApi",
"public",
"final",
"Operation",
"updateShieldedInstanceConfigInstance",
"(",
"ProjectZoneInstanceName",
"instance",
",",
"ShieldedInstanceConfig",
"shieldedInstanceConfigResource",
",",
"List",
"<",
"String",
">",
"fieldMask",
")",
"{",
"UpdateShieldedInstance... | Updates the Shielded Instance config for an instance. You can only use this method on a stopped
instance. This method supports PATCH semantics and uses the JSON merge patch format and
processing rules.
<p>Sample code:
<pre><code>
try (InstanceClient instanceClient = InstanceClient.create()) {
ProjectZoneInstanceName ... | [
"Updates",
"the",
"Shielded",
"Instance",
"config",
"for",
"an",
"instance",
".",
"You",
"can",
"only",
"use",
"this",
"method",
"on",
"a",
"stopped",
"instance",
".",
"This",
"method",
"supports",
"PATCH",
"semantics",
"and",
"uses",
"the",
"JSON",
"merge",... | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java#L4071-L4084 |
132,505 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/QueryDocumentSnapshot.java | QueryDocumentSnapshot.getData | @Nonnull
@Override
public Map<String, Object> getData() {
Map<String, Object> result = super.getData();
Preconditions.checkNotNull(result, "Data in a QueryDocumentSnapshot should be non-null");
return result;
} | java | @Nonnull
@Override
public Map<String, Object> getData() {
Map<String, Object> result = super.getData();
Preconditions.checkNotNull(result, "Data in a QueryDocumentSnapshot should be non-null");
return result;
} | [
"@",
"Nonnull",
"@",
"Override",
"public",
"Map",
"<",
"String",
",",
"Object",
">",
"getData",
"(",
")",
"{",
"Map",
"<",
"String",
",",
"Object",
">",
"result",
"=",
"super",
".",
"getData",
"(",
")",
";",
"Preconditions",
".",
"checkNotNull",
"(",
... | Returns the fields of the document as a Map. Field values will be converted to their native
Java representation.
@return The fields of the document as a Map. | [
"Returns",
"the",
"fields",
"of",
"the",
"document",
"as",
"a",
"Map",
".",
"Field",
"values",
"will",
"be",
"converted",
"to",
"their",
"native",
"Java",
"representation",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/QueryDocumentSnapshot.java#L67-L73 |
132,506 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java | IamCredentialsClient.generateAccessToken | public final GenerateAccessTokenResponse generateAccessToken(
ServiceAccountName name, List<String> delegates, List<String> scope, Duration lifetime) {
GenerateAccessTokenRequest request =
GenerateAccessTokenRequest.newBuilder()
.setName(name == null ? null : name.toString())
... | java | public final GenerateAccessTokenResponse generateAccessToken(
ServiceAccountName name, List<String> delegates, List<String> scope, Duration lifetime) {
GenerateAccessTokenRequest request =
GenerateAccessTokenRequest.newBuilder()
.setName(name == null ? null : name.toString())
... | [
"public",
"final",
"GenerateAccessTokenResponse",
"generateAccessToken",
"(",
"ServiceAccountName",
"name",
",",
"List",
"<",
"String",
">",
"delegates",
",",
"List",
"<",
"String",
">",
"scope",
",",
"Duration",
"lifetime",
")",
"{",
"GenerateAccessTokenRequest",
"... | Generates an OAuth 2.0 access token for a service account.
<p>Sample code:
<pre><code>
try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
List<String> delegates = new ArrayList<>();
List<St... | [
"Generates",
"an",
"OAuth",
"2",
".",
"0",
"access",
"token",
"for",
"a",
"service",
"account",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java#L193-L204 |
132,507 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java | IamCredentialsClient.generateIdToken | public final GenerateIdTokenResponse generateIdToken(
ServiceAccountName name, List<String> delegates, String audience, boolean includeEmail) {
GenerateIdTokenRequest request =
GenerateIdTokenRequest.newBuilder()
.setName(name == null ? null : name.toString())
.addAllDelegates... | java | public final GenerateIdTokenResponse generateIdToken(
ServiceAccountName name, List<String> delegates, String audience, boolean includeEmail) {
GenerateIdTokenRequest request =
GenerateIdTokenRequest.newBuilder()
.setName(name == null ? null : name.toString())
.addAllDelegates... | [
"public",
"final",
"GenerateIdTokenResponse",
"generateIdToken",
"(",
"ServiceAccountName",
"name",
",",
"List",
"<",
"String",
">",
"delegates",
",",
"String",
"audience",
",",
"boolean",
"includeEmail",
")",
"{",
"GenerateIdTokenRequest",
"request",
"=",
"GenerateId... | Generates an OpenID Connect ID token for a service account.
<p>Sample code:
<pre><code>
try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
List<String> delegates = new ArrayList<>();
String au... | [
"Generates",
"an",
"OpenID",
"Connect",
"ID",
"token",
"for",
"a",
"service",
"account",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java#L333-L344 |
132,508 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java | IamCredentialsClient.signBlob | public final SignBlobResponse signBlob(
ServiceAccountName name, List<String> delegates, ByteString payload) {
SignBlobRequest request =
SignBlobRequest.newBuilder()
.setName(name == null ? null : name.toString())
.addAllDelegates(delegates)
.setPayload(payload)
... | java | public final SignBlobResponse signBlob(
ServiceAccountName name, List<String> delegates, ByteString payload) {
SignBlobRequest request =
SignBlobRequest.newBuilder()
.setName(name == null ? null : name.toString())
.addAllDelegates(delegates)
.setPayload(payload)
... | [
"public",
"final",
"SignBlobResponse",
"signBlob",
"(",
"ServiceAccountName",
"name",
",",
"List",
"<",
"String",
">",
"delegates",
",",
"ByteString",
"payload",
")",
"{",
"SignBlobRequest",
"request",
"=",
"SignBlobRequest",
".",
"newBuilder",
"(",
")",
".",
"s... | Signs a blob using a service account's system-managed private key.
<p>Sample code:
<pre><code>
try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
List<String> delegates = new ArrayList<>();
By... | [
"Signs",
"a",
"blob",
"using",
"a",
"service",
"account",
"s",
"system",
"-",
"managed",
"private",
"key",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java#L467-L477 |
132,509 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java | IamCredentialsClient.signJwt | public final SignJwtResponse signJwt(
ServiceAccountName name, List<String> delegates, String payload) {
SignJwtRequest request =
SignJwtRequest.newBuilder()
.setName(name == null ? null : name.toString())
.addAllDelegates(delegates)
.setPayload(payload)
... | java | public final SignJwtResponse signJwt(
ServiceAccountName name, List<String> delegates, String payload) {
SignJwtRequest request =
SignJwtRequest.newBuilder()
.setName(name == null ? null : name.toString())
.addAllDelegates(delegates)
.setPayload(payload)
... | [
"public",
"final",
"SignJwtResponse",
"signJwt",
"(",
"ServiceAccountName",
"name",
",",
"List",
"<",
"String",
">",
"delegates",
",",
"String",
"payload",
")",
"{",
"SignJwtRequest",
"request",
"=",
"SignJwtRequest",
".",
"newBuilder",
"(",
")",
".",
"setName",... | Signs a JWT using a service account's system-managed private key.
<p>Sample code:
<pre><code>
try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
List<String> delegates = new ArrayList<>();
Str... | [
"Signs",
"a",
"JWT",
"using",
"a",
"service",
"account",
"s",
"system",
"-",
"managed",
"private",
"key",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java#L593-L603 |
132,510 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java | IamCredentialsClient.generateIdentityBindingAccessToken | public final GenerateIdentityBindingAccessTokenResponse generateIdentityBindingAccessToken(
ServiceAccountName name, List<String> scope, String jwt) {
GenerateIdentityBindingAccessTokenRequest request =
GenerateIdentityBindingAccessTokenRequest.newBuilder()
.setName(name == null ? null : ... | java | public final GenerateIdentityBindingAccessTokenResponse generateIdentityBindingAccessToken(
ServiceAccountName name, List<String> scope, String jwt) {
GenerateIdentityBindingAccessTokenRequest request =
GenerateIdentityBindingAccessTokenRequest.newBuilder()
.setName(name == null ? null : ... | [
"public",
"final",
"GenerateIdentityBindingAccessTokenResponse",
"generateIdentityBindingAccessToken",
"(",
"ServiceAccountName",
"name",
",",
"List",
"<",
"String",
">",
"scope",
",",
"String",
"jwt",
")",
"{",
"GenerateIdentityBindingAccessTokenRequest",
"request",
"=",
"... | Exchange a JWT signed by third party identity provider to an OAuth 2.0 access token
<p>Sample code:
<pre><code>
try (IamCredentialsClient iamCredentialsClient = IamCredentialsClient.create()) {
ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
List<String> scope = new ArrayList&... | [
"Exchange",
"a",
"JWT",
"signed",
"by",
"third",
"party",
"identity",
"provider",
"to",
"an",
"OAuth",
"2",
".",
"0",
"access",
"token"
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java#L736-L746 |
132,511 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/deprecated/Image.java | Image.deprecate | public Operation deprecate(
DeprecationStatus<ImageId> deprecationStatus, OperationOption... options) {
return compute.deprecate(getImageId(), deprecationStatus, options);
} | java | public Operation deprecate(
DeprecationStatus<ImageId> deprecationStatus, OperationOption... options) {
return compute.deprecate(getImageId(), deprecationStatus, options);
} | [
"public",
"Operation",
"deprecate",
"(",
"DeprecationStatus",
"<",
"ImageId",
">",
"deprecationStatus",
",",
"OperationOption",
"...",
"options",
")",
"{",
"return",
"compute",
".",
"deprecate",
"(",
"getImageId",
"(",
")",
",",
"deprecationStatus",
",",
"options"... | Deprecates this image.
@return a global operation if the deprecation request was successfully sent, {@code null} if
the image was not found
@throws ComputeException upon failure or if this image is a publicly-available image | [
"Deprecates",
"this",
"image",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/deprecated/Image.java#L169-L172 |
132,512 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageClient.java | BigQueryStorageClient.createReadSession | public final ReadSession createReadSession(
TableReference tableReference, String parent, int requestedStreams) {
CreateReadSessionRequest request =
CreateReadSessionRequest.newBuilder()
.setTableReference(tableReference)
.setParent(parent)
.setRequestedStreams(req... | java | public final ReadSession createReadSession(
TableReference tableReference, String parent, int requestedStreams) {
CreateReadSessionRequest request =
CreateReadSessionRequest.newBuilder()
.setTableReference(tableReference)
.setParent(parent)
.setRequestedStreams(req... | [
"public",
"final",
"ReadSession",
"createReadSession",
"(",
"TableReference",
"tableReference",
",",
"String",
"parent",
",",
"int",
"requestedStreams",
")",
"{",
"CreateReadSessionRequest",
"request",
"=",
"CreateReadSessionRequest",
".",
"newBuilder",
"(",
")",
".",
... | Creates a new read session. A read session divides the contents of a BigQuery table into one or
more streams, which can then be used to read data from the table. The read session also
specifies properties of the data to be read, such as a list of columns or a push-down filter
describing the rows to be returned.
<p>A p... | [
"Creates",
"a",
"new",
"read",
"session",
".",
"A",
"read",
"session",
"divides",
"the",
"contents",
"of",
"a",
"BigQuery",
"table",
"into",
"one",
"or",
"more",
"streams",
"which",
"can",
"then",
"be",
"used",
"to",
"read",
"data",
"from",
"the",
"table... | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageClient.java#L194-L204 |
132,513 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageClient.java | BigQueryStorageClient.batchCreateReadSessionStreams | public final BatchCreateReadSessionStreamsResponse batchCreateReadSessionStreams(
ReadSession session, int requestedStreams) {
BatchCreateReadSessionStreamsRequest request =
BatchCreateReadSessionStreamsRequest.newBuilder()
.setSession(session)
.setRequestedStreams(requestedSt... | java | public final BatchCreateReadSessionStreamsResponse batchCreateReadSessionStreams(
ReadSession session, int requestedStreams) {
BatchCreateReadSessionStreamsRequest request =
BatchCreateReadSessionStreamsRequest.newBuilder()
.setSession(session)
.setRequestedStreams(requestedSt... | [
"public",
"final",
"BatchCreateReadSessionStreamsResponse",
"batchCreateReadSessionStreams",
"(",
"ReadSession",
"session",
",",
"int",
"requestedStreams",
")",
"{",
"BatchCreateReadSessionStreamsRequest",
"request",
"=",
"BatchCreateReadSessionStreamsRequest",
".",
"newBuilder",
... | Creates additional streams for a ReadSession. This API can be used to dynamically adjust the
parallelism of a batch processing task upwards by adding additional workers.
<p>Sample code:
<pre><code>
try (BigQueryStorageClient bigQueryStorageClient = BigQueryStorageClient.create()) {
ReadSession session = ReadSession.n... | [
"Creates",
"additional",
"streams",
"for",
"a",
"ReadSession",
".",
"This",
"API",
"can",
"be",
"used",
"to",
"dynamically",
"adjust",
"the",
"parallelism",
"of",
"a",
"batch",
"processing",
"task",
"upwards",
"by",
"adding",
"additional",
"workers",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageClient.java#L325-L334 |
132,514 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageClient.java | BigQueryStorageClient.finalizeStream | public final void finalizeStream(Stream stream) {
FinalizeStreamRequest request = FinalizeStreamRequest.newBuilder().setStream(stream).build();
finalizeStream(request);
} | java | public final void finalizeStream(Stream stream) {
FinalizeStreamRequest request = FinalizeStreamRequest.newBuilder().setStream(stream).build();
finalizeStream(request);
} | [
"public",
"final",
"void",
"finalizeStream",
"(",
"Stream",
"stream",
")",
"{",
"FinalizeStreamRequest",
"request",
"=",
"FinalizeStreamRequest",
".",
"newBuilder",
"(",
")",
".",
"setStream",
"(",
"stream",
")",
".",
"build",
"(",
")",
";",
"finalizeStream",
... | Triggers the graceful termination of a single stream in a ReadSession. This API can be used to
dynamically adjust the parallelism of a batch processing task downwards without losing data.
<p>This API does not delete the stream -- it remains visible in the ReadSession, and any data
processed by the stream is not releas... | [
"Triggers",
"the",
"graceful",
"termination",
"of",
"a",
"single",
"stream",
"in",
"a",
"ReadSession",
".",
"This",
"API",
"can",
"be",
"used",
"to",
"dynamically",
"adjust",
"the",
"parallelism",
"of",
"a",
"batch",
"processing",
"task",
"downwards",
"without... | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageClient.java#L416-L419 |
132,515 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageClient.java | BigQueryStorageClient.splitReadStream | public final SplitReadStreamResponse splitReadStream(Stream originalStream) {
SplitReadStreamRequest request =
SplitReadStreamRequest.newBuilder().setOriginalStream(originalStream).build();
return splitReadStream(request);
} | java | public final SplitReadStreamResponse splitReadStream(Stream originalStream) {
SplitReadStreamRequest request =
SplitReadStreamRequest.newBuilder().setOriginalStream(originalStream).build();
return splitReadStream(request);
} | [
"public",
"final",
"SplitReadStreamResponse",
"splitReadStream",
"(",
"Stream",
"originalStream",
")",
"{",
"SplitReadStreamRequest",
"request",
"=",
"SplitReadStreamRequest",
".",
"newBuilder",
"(",
")",
".",
"setOriginalStream",
"(",
"originalStream",
")",
".",
"build... | Splits a given read stream into two Streams. These streams are referred to as the primary and
the residual of the split. The original stream can still be read from in the same manner as
before. Both of the returned streams can also be read from, and the total rows return by both
child streams will be the same as the ro... | [
"Splits",
"a",
"given",
"read",
"stream",
"into",
"two",
"Streams",
".",
"These",
"streams",
"are",
"referred",
"to",
"as",
"the",
"primary",
"and",
"the",
"residual",
"of",
"the",
"split",
".",
"The",
"original",
"stream",
"can",
"still",
"be",
"read",
... | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageClient.java#L512-L516 |
132,516 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ViewDefinition.java | ViewDefinition.newBuilder | public static Builder newBuilder(String query, List<UserDefinedFunction> functions) {
return newBuilder(query).setUserDefinedFunctions(functions);
} | java | public static Builder newBuilder(String query, List<UserDefinedFunction> functions) {
return newBuilder(query).setUserDefinedFunctions(functions);
} | [
"public",
"static",
"Builder",
"newBuilder",
"(",
"String",
"query",
",",
"List",
"<",
"UserDefinedFunction",
">",
"functions",
")",
"{",
"return",
"newBuilder",
"(",
"query",
")",
".",
"setUserDefinedFunctions",
"(",
"functions",
")",
";",
"}"
] | Returns a builder for a BigQuery view definition.
@param query the query used to generate the table
@param functions user-defined functions that can be used by the query | [
"Returns",
"a",
"builder",
"for",
"a",
"BigQuery",
"view",
"definition",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ViewDefinition.java#L155-L157 |
132,517 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ViewDefinition.java | ViewDefinition.of | public static ViewDefinition of(String query, List<UserDefinedFunction> functions) {
return newBuilder(query, functions).build();
} | java | public static ViewDefinition of(String query, List<UserDefinedFunction> functions) {
return newBuilder(query, functions).build();
} | [
"public",
"static",
"ViewDefinition",
"of",
"(",
"String",
"query",
",",
"List",
"<",
"UserDefinedFunction",
">",
"functions",
")",
"{",
"return",
"newBuilder",
"(",
"query",
",",
"functions",
")",
".",
"build",
"(",
")",
";",
"}"
] | Creates a BigQuery view definition given a query and some user-defined functions.
@param query the query used to generate the table
@param functions user-defined functions that can be used by the query | [
"Creates",
"a",
"BigQuery",
"view",
"definition",
"given",
"a",
"query",
"and",
"some",
"user",
"-",
"defined",
"functions",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ViewDefinition.java#L184-L186 |
132,518 | googleapis/google-cloud-java | google-cloud-examples/src/main/java/com/google/cloud/examples/nio/ParallelCountBytes.java | ParallelCountBytes.countFile | private static void countFile(String fname) throws Exception {
// large buffers pay off
final int bufSize = 50 * 1024 * 1024;
Queue<Future<WorkUnit>> work = new ArrayDeque<>();
Path path = Paths.get(new URI(fname));
long size = Files.size(path);
System.out.println(fname + ": " + size + " bytes."... | java | private static void countFile(String fname) throws Exception {
// large buffers pay off
final int bufSize = 50 * 1024 * 1024;
Queue<Future<WorkUnit>> work = new ArrayDeque<>();
Path path = Paths.get(new URI(fname));
long size = Files.size(path);
System.out.println(fname + ": " + size + " bytes."... | [
"private",
"static",
"void",
"countFile",
"(",
"String",
"fname",
")",
"throws",
"Exception",
"{",
"// large buffers pay off",
"final",
"int",
"bufSize",
"=",
"50",
"*",
"1024",
"*",
"1024",
";",
"Queue",
"<",
"Future",
"<",
"WorkUnit",
">",
">",
"work",
"... | Print the length and MD5 of the indicated file.
<p>This uses the normal Java NIO Api, so it can take advantage of any installed NIO Filesystem
provider without any extra effort. | [
"Print",
"the",
"length",
"and",
"MD5",
"of",
"the",
"indicated",
"file",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-examples/src/main/java/com/google/cloud/examples/nio/ParallelCountBytes.java#L118-L162 |
132,519 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java | CloudTasksClient.updateQueue | public final Queue updateQueue(Queue queue, FieldMask updateMask) {
UpdateQueueRequest request =
UpdateQueueRequest.newBuilder().setQueue(queue).setUpdateMask(updateMask).build();
return updateQueue(request);
} | java | public final Queue updateQueue(Queue queue, FieldMask updateMask) {
UpdateQueueRequest request =
UpdateQueueRequest.newBuilder().setQueue(queue).setUpdateMask(updateMask).build();
return updateQueue(request);
} | [
"public",
"final",
"Queue",
"updateQueue",
"(",
"Queue",
"queue",
",",
"FieldMask",
"updateMask",
")",
"{",
"UpdateQueueRequest",
"request",
"=",
"UpdateQueueRequest",
".",
"newBuilder",
"(",
")",
".",
"setQueue",
"(",
"queue",
")",
".",
"setUpdateMask",
"(",
... | Updates a queue.
<p>This method creates the queue if it does not exist and updates the queue if it does exist.
<p>Queues created with this method allow tasks to live for a maximum of 31 days. After a task
is 31 days old, the task will be deleted regardless of whether it was dispatched or not.
<p>WARNING: Using this ... | [
"Updates",
"a",
"queue",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java#L572-L577 |
132,520 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/UpdateBuilder.java | UpdateBuilder.addMutation | private Mutation addMutation() {
Preconditions.checkState(
!committed, "Cannot modify a WriteBatch that has already been committed.");
Mutation mutation = new Mutation();
mutations.add(mutation);
return mutation;
} | java | private Mutation addMutation() {
Preconditions.checkState(
!committed, "Cannot modify a WriteBatch that has already been committed.");
Mutation mutation = new Mutation();
mutations.add(mutation);
return mutation;
} | [
"private",
"Mutation",
"addMutation",
"(",
")",
"{",
"Preconditions",
".",
"checkState",
"(",
"!",
"committed",
",",
"\"Cannot modify a WriteBatch that has already been committed.\"",
")",
";",
"Mutation",
"mutation",
"=",
"new",
"Mutation",
"(",
")",
";",
"mutations"... | Adds a new mutation to the batch. | [
"Adds",
"a",
"new",
"mutation",
"to",
"the",
"batch",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/UpdateBuilder.java#L140-L146 |
132,521 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/UpdateBuilder.java | UpdateBuilder.applyFieldMask | private Map<FieldPath, Object> applyFieldMask(
Map<String, Object> fields, List<FieldPath> fieldMask) {
List<FieldPath> remainingFields = new ArrayList<>(fieldMask);
Map<FieldPath, Object> filteredData =
applyFieldMask(fields, remainingFields, FieldPath.empty());
if (!remainingFields.isEmpty(... | java | private Map<FieldPath, Object> applyFieldMask(
Map<String, Object> fields, List<FieldPath> fieldMask) {
List<FieldPath> remainingFields = new ArrayList<>(fieldMask);
Map<FieldPath, Object> filteredData =
applyFieldMask(fields, remainingFields, FieldPath.empty());
if (!remainingFields.isEmpty(... | [
"private",
"Map",
"<",
"FieldPath",
",",
"Object",
">",
"applyFieldMask",
"(",
"Map",
"<",
"String",
",",
"Object",
">",
"fields",
",",
"List",
"<",
"FieldPath",
">",
"fieldMask",
")",
"{",
"List",
"<",
"FieldPath",
">",
"remainingFields",
"=",
"new",
"A... | Removes all values in 'fields' that are not specified in 'fieldMask'. | [
"Removes",
"all",
"values",
"in",
"fields",
"that",
"are",
"not",
"specified",
"in",
"fieldMask",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/UpdateBuilder.java#L279-L293 |
132,522 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/UpdateBuilder.java | UpdateBuilder.applyFieldMask | private Map<FieldPath, Object> applyFieldMask(
Map<String, Object> fields, List<FieldPath> fieldMask, FieldPath root) {
Map<FieldPath, Object> filteredMap = new HashMap<>();
for (Entry<String, Object> entry : fields.entrySet()) {
FieldPath currentField = root.append(FieldPath.of(entry.getKey()));
... | java | private Map<FieldPath, Object> applyFieldMask(
Map<String, Object> fields, List<FieldPath> fieldMask, FieldPath root) {
Map<FieldPath, Object> filteredMap = new HashMap<>();
for (Entry<String, Object> entry : fields.entrySet()) {
FieldPath currentField = root.append(FieldPath.of(entry.getKey()));
... | [
"private",
"Map",
"<",
"FieldPath",
",",
"Object",
">",
"applyFieldMask",
"(",
"Map",
"<",
"String",
",",
"Object",
">",
"fields",
",",
"List",
"<",
"FieldPath",
">",
"fieldMask",
",",
"FieldPath",
"root",
")",
"{",
"Map",
"<",
"FieldPath",
",",
"Object"... | Strips all values in 'fields' that are not specified in 'fieldMask'. Modifies 'fieldMask'
inline and removes all matched fields. | [
"Strips",
"all",
"values",
"in",
"fields",
"that",
"are",
"not",
"specified",
"in",
"fieldMask",
".",
"Modifies",
"fieldMask",
"inline",
"and",
"removes",
"all",
"matched",
"fields",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/UpdateBuilder.java#L299-L318 |
132,523 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClient.java | ImageAnnotatorClient.batchAnnotateImages | public final BatchAnnotateImagesResponse batchAnnotateImages(
List<AnnotateImageRequest> requests) {
BatchAnnotateImagesRequest request =
BatchAnnotateImagesRequest.newBuilder().addAllRequests(requests).build();
return batchAnnotateImages(request);
} | java | public final BatchAnnotateImagesResponse batchAnnotateImages(
List<AnnotateImageRequest> requests) {
BatchAnnotateImagesRequest request =
BatchAnnotateImagesRequest.newBuilder().addAllRequests(requests).build();
return batchAnnotateImages(request);
} | [
"public",
"final",
"BatchAnnotateImagesResponse",
"batchAnnotateImages",
"(",
"List",
"<",
"AnnotateImageRequest",
">",
"requests",
")",
"{",
"BatchAnnotateImagesRequest",
"request",
"=",
"BatchAnnotateImagesRequest",
".",
"newBuilder",
"(",
")",
".",
"addAllRequests",
"(... | Run image detection and annotation for a batch of images.
<p>Sample code:
<pre><code>
try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
List<AnnotateImageRequest> requests = new ArrayList<>();
BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(r... | [
"Run",
"image",
"detection",
"and",
"annotation",
"for",
"a",
"batch",
"of",
"images",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClient.java#L183-L189 |
132,524 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java | MetricServiceClient.listTimeSeries | public final ListTimeSeriesPagedResponse listTimeSeries(
ProjectName name,
String filter,
TimeInterval interval,
ListTimeSeriesRequest.TimeSeriesView view) {
ListTimeSeriesRequest request =
ListTimeSeriesRequest.newBuilder()
.setName(name == null ? null : name.toString())... | java | public final ListTimeSeriesPagedResponse listTimeSeries(
ProjectName name,
String filter,
TimeInterval interval,
ListTimeSeriesRequest.TimeSeriesView view) {
ListTimeSeriesRequest request =
ListTimeSeriesRequest.newBuilder()
.setName(name == null ? null : name.toString())... | [
"public",
"final",
"ListTimeSeriesPagedResponse",
"listTimeSeries",
"(",
"ProjectName",
"name",
",",
"String",
"filter",
",",
"TimeInterval",
"interval",
",",
"ListTimeSeriesRequest",
".",
"TimeSeriesView",
"view",
")",
"{",
"ListTimeSeriesRequest",
"request",
"=",
"Lis... | Lists time series that match a filter. This method does not require a Stackdriver account.
<p>Sample code:
<pre><code>
try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) {
ProjectName name = ProjectName.of("[PROJECT]");
String filter = "";
TimeInterval interval = TimeInterval.newBuilder().bu... | [
"Lists",
"time",
"series",
"that",
"match",
"a",
"filter",
".",
"This",
"method",
"does",
"not",
"require",
"a",
"Stackdriver",
"account",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java#L907-L920 |
132,525 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java | BackendServiceClient.deleteSignedUrlKeyBackendService | @BetaApi
public final Operation deleteSignedUrlKeyBackendService(String backendService, String keyName) {
DeleteSignedUrlKeyBackendServiceHttpRequest request =
DeleteSignedUrlKeyBackendServiceHttpRequest.newBuilder()
.setBackendService(backendService)
.setKeyName(keyName)
... | java | @BetaApi
public final Operation deleteSignedUrlKeyBackendService(String backendService, String keyName) {
DeleteSignedUrlKeyBackendServiceHttpRequest request =
DeleteSignedUrlKeyBackendServiceHttpRequest.newBuilder()
.setBackendService(backendService)
.setKeyName(keyName)
... | [
"@",
"BetaApi",
"public",
"final",
"Operation",
"deleteSignedUrlKeyBackendService",
"(",
"String",
"backendService",
",",
"String",
"keyName",
")",
"{",
"DeleteSignedUrlKeyBackendServiceHttpRequest",
"request",
"=",
"DeleteSignedUrlKeyBackendServiceHttpRequest",
".",
"newBuilde... | Deletes a key for validating requests with signed URLs for this backend service.
<p>Sample code:
<pre><code>
try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
String k... | [
"Deletes",
"a",
"key",
"for",
"validating",
"requests",
"with",
"signed",
"URLs",
"for",
"this",
"backend",
"service",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java#L568-L577 |
132,526 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java | BackendServiceClient.patchBackendService | @BetaApi
public final Operation patchBackendService(
String backendService, BackendService backendServiceResource, List<String> fieldMask) {
PatchBackendServiceHttpRequest request =
PatchBackendServiceHttpRequest.newBuilder()
.setBackendService(backendService)
.setBackendSer... | java | @BetaApi
public final Operation patchBackendService(
String backendService, BackendService backendServiceResource, List<String> fieldMask) {
PatchBackendServiceHttpRequest request =
PatchBackendServiceHttpRequest.newBuilder()
.setBackendService(backendService)
.setBackendSer... | [
"@",
"BetaApi",
"public",
"final",
"Operation",
"patchBackendService",
"(",
"String",
"backendService",
",",
"BackendService",
"backendServiceResource",
",",
"List",
"<",
"String",
">",
"fieldMask",
")",
"{",
"PatchBackendServiceHttpRequest",
"request",
"=",
"PatchBacke... | Patches the specified BackendService resource with the data included in the request. There are
several restrictions and guidelines to keep in mind when updating a backend service. Read
Restrictions and Guidelines for more information. This method supports PATCH semantics and uses
the JSON merge patch format and process... | [
"Patches",
"the",
"specified",
"BackendService",
"resource",
"with",
"the",
"data",
"included",
"in",
"the",
"request",
".",
"There",
"are",
"several",
"restrictions",
"and",
"guidelines",
"to",
"keep",
"in",
"mind",
"when",
"updating",
"a",
"backend",
"service"... | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java#L1179-L1190 |
132,527 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceClient.java | ApplicationServiceClient.updateApplication | public final Application updateApplication(Application application) {
UpdateApplicationRequest request =
UpdateApplicationRequest.newBuilder().setApplication(application).build();
return updateApplication(request);
} | java | public final Application updateApplication(Application application) {
UpdateApplicationRequest request =
UpdateApplicationRequest.newBuilder().setApplication(application).build();
return updateApplication(request);
} | [
"public",
"final",
"Application",
"updateApplication",
"(",
"Application",
"application",
")",
"{",
"UpdateApplicationRequest",
"request",
"=",
"UpdateApplicationRequest",
".",
"newBuilder",
"(",
")",
".",
"setApplication",
"(",
"application",
")",
".",
"build",
"(",
... | Updates specified application.
<p>Sample code:
<pre><code>
try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
Application application = Application.newBuilder().build();
Application response = applicationServiceClient.updateApplication(application);
}
</code></pre>
@param a... | [
"Updates",
"specified",
"application",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceClient.java#L387-L392 |
132,528 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java | BigtableInstanceAdminClient.getProjectName | @Deprecated
@SuppressWarnings("WeakerAccess")
public com.google.bigtable.admin.v2.ProjectName getProjectName() {
return com.google.bigtable.admin.v2.ProjectName.of(projectId);
} | java | @Deprecated
@SuppressWarnings("WeakerAccess")
public com.google.bigtable.admin.v2.ProjectName getProjectName() {
return com.google.bigtable.admin.v2.ProjectName.of(projectId);
} | [
"@",
"Deprecated",
"@",
"SuppressWarnings",
"(",
"\"WeakerAccess\"",
")",
"public",
"com",
".",
"google",
".",
"bigtable",
".",
"admin",
".",
"v2",
".",
"ProjectName",
"getProjectName",
"(",
")",
"{",
"return",
"com",
".",
"google",
".",
"bigtable",
".",
"... | Gets the ProjectName this client is associated with.
@deprecated Please use {@link #getProjectId()}. | [
"Gets",
"the",
"ProjectName",
"this",
"client",
"is",
"associated",
"with",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java#L161-L165 |
132,529 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java | BigtableInstanceAdminClient.createInstanceAsync | @SuppressWarnings("WeakerAccess")
public ApiFuture<Instance> createInstanceAsync(CreateInstanceRequest request) {
return ApiFutures.transform(
stub.createInstanceOperationCallable().futureCall(request.toProto(projectId)),
new ApiFunction<com.google.bigtable.admin.v2.Instance, Instance>() {
... | java | @SuppressWarnings("WeakerAccess")
public ApiFuture<Instance> createInstanceAsync(CreateInstanceRequest request) {
return ApiFutures.transform(
stub.createInstanceOperationCallable().futureCall(request.toProto(projectId)),
new ApiFunction<com.google.bigtable.admin.v2.Instance, Instance>() {
... | [
"@",
"SuppressWarnings",
"(",
"\"WeakerAccess\"",
")",
"public",
"ApiFuture",
"<",
"Instance",
">",
"createInstanceAsync",
"(",
"CreateInstanceRequest",
"request",
")",
"{",
"return",
"ApiFutures",
".",
"transform",
"(",
"stub",
".",
"createInstanceOperationCallable",
... | Asynchronously creates a new instance and returns its representation wrapped in a future.
<p>Sample code:
<pre>{@code
ApiFuture<Instance> instanceFuture = client.createInstanceAsync(
CreateInstanceRequest.of("my-instance")
.addCluster("my-cluster", "us-east1-c", 3, StorageType.SSD)
);
Instance instance = instanceFut... | [
"Asynchronously",
"creates",
"a",
"new",
"instance",
"and",
"returns",
"its",
"representation",
"wrapped",
"in",
"a",
"future",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java#L208-L219 |
132,530 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java | BigtableInstanceAdminClient.updateInstanceAsync | @SuppressWarnings("WeakerAccess")
public ApiFuture<Instance> updateInstanceAsync(UpdateInstanceRequest request) {
return ApiFutures.transform(
stub.partialUpdateInstanceOperationCallable().futureCall(request.toProto(projectId)),
new ApiFunction<com.google.bigtable.admin.v2.Instance, Instance>() {
... | java | @SuppressWarnings("WeakerAccess")
public ApiFuture<Instance> updateInstanceAsync(UpdateInstanceRequest request) {
return ApiFutures.transform(
stub.partialUpdateInstanceOperationCallable().futureCall(request.toProto(projectId)),
new ApiFunction<com.google.bigtable.admin.v2.Instance, Instance>() {
... | [
"@",
"SuppressWarnings",
"(",
"\"WeakerAccess\"",
")",
"public",
"ApiFuture",
"<",
"Instance",
">",
"updateInstanceAsync",
"(",
"UpdateInstanceRequest",
"request",
")",
"{",
"return",
"ApiFutures",
".",
"transform",
"(",
"stub",
".",
"partialUpdateInstanceOperationCalla... | Asynchronously updates a new instance and returns its representation wrapped in a future.
<p>Sample code:
<pre>{@code
ApiFuture<Instance> instanceFuture = client.updateInstanceAsync(
UpdateInstanceRequest.of("my-instance")
.setProductionType()
);
Instance instance = instanceFuture.get();
}</pre>
@see UpdateInstance... | [
"Asynchronously",
"updates",
"a",
"new",
"instance",
"and",
"returns",
"its",
"representation",
"wrapped",
"in",
"a",
"future",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java#L256-L267 |
132,531 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java | BigtableInstanceAdminClient.getInstanceAsync | @SuppressWarnings("WeakerAccess")
public ApiFuture<Instance> getInstanceAsync(String instanceId) {
String name = NameUtil.formatInstanceName(projectId, instanceId);
com.google.bigtable.admin.v2.GetInstanceRequest request =
com.google.bigtable.admin.v2.GetInstanceRequest.newBuilder().setName(name).bui... | java | @SuppressWarnings("WeakerAccess")
public ApiFuture<Instance> getInstanceAsync(String instanceId) {
String name = NameUtil.formatInstanceName(projectId, instanceId);
com.google.bigtable.admin.v2.GetInstanceRequest request =
com.google.bigtable.admin.v2.GetInstanceRequest.newBuilder().setName(name).bui... | [
"@",
"SuppressWarnings",
"(",
"\"WeakerAccess\"",
")",
"public",
"ApiFuture",
"<",
"Instance",
">",
"getInstanceAsync",
"(",
"String",
"instanceId",
")",
"{",
"String",
"name",
"=",
"NameUtil",
".",
"formatInstanceName",
"(",
"projectId",
",",
"instanceId",
")",
... | Asynchronously gets the instance representation by ID wrapped in a future.
<p>Sample code:
<pre>{@code
ApiFuture<Instance> instanceFuture = client.getInstanceAsync("my-instance");
Instance instance = instanceFuture.get();
}</pre> | [
"Asynchronously",
"gets",
"the",
"instance",
"representation",
"by",
"ID",
"wrapped",
"in",
"a",
"future",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java#L293-L309 |
132,532 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java | BigtableInstanceAdminClient.listInstancesAsync | @SuppressWarnings("WeakerAccess")
public ApiFuture<List<Instance>> listInstancesAsync() {
com.google.bigtable.admin.v2.ListInstancesRequest request =
com.google.bigtable.admin.v2.ListInstancesRequest.newBuilder()
.setParent(NameUtil.formatProjectName(projectId))
.build();
ApiF... | java | @SuppressWarnings("WeakerAccess")
public ApiFuture<List<Instance>> listInstancesAsync() {
com.google.bigtable.admin.v2.ListInstancesRequest request =
com.google.bigtable.admin.v2.ListInstancesRequest.newBuilder()
.setParent(NameUtil.formatProjectName(projectId))
.build();
ApiF... | [
"@",
"SuppressWarnings",
"(",
"\"WeakerAccess\"",
")",
"public",
"ApiFuture",
"<",
"List",
"<",
"Instance",
">",
">",
"listInstancesAsync",
"(",
")",
"{",
"com",
".",
"google",
".",
"bigtable",
".",
"admin",
".",
"v2",
".",
"ListInstancesRequest",
"request",
... | Asynchronously lists all of the instances in the current project.
<p>This method will throw a {@link PartialListInstancesException} when any zone is unavailable.
If partial listing are ok, the exception can be caught and inspected.
<p>Sample code:
<pre>{@code
ApiFuture<Instance> instancesFuture = client.listInstance... | [
"Asynchronously",
"lists",
"all",
"of",
"the",
"instances",
"in",
"the",
"current",
"project",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java#L361-L401 |
132,533 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java | BigtableInstanceAdminClient.deleteInstanceAsync | @SuppressWarnings("WeakerAccess")
public ApiFuture<Void> deleteInstanceAsync(String instanceId) {
String instanceName = NameUtil.formatInstanceName(projectId, instanceId);
com.google.bigtable.admin.v2.DeleteInstanceRequest request =
com.google.bigtable.admin.v2.DeleteInstanceRequest.newBuilder()
... | java | @SuppressWarnings("WeakerAccess")
public ApiFuture<Void> deleteInstanceAsync(String instanceId) {
String instanceName = NameUtil.formatInstanceName(projectId, instanceId);
com.google.bigtable.admin.v2.DeleteInstanceRequest request =
com.google.bigtable.admin.v2.DeleteInstanceRequest.newBuilder()
... | [
"@",
"SuppressWarnings",
"(",
"\"WeakerAccess\"",
")",
"public",
"ApiFuture",
"<",
"Void",
">",
"deleteInstanceAsync",
"(",
"String",
"instanceId",
")",
"{",
"String",
"instanceName",
"=",
"NameUtil",
".",
"formatInstanceName",
"(",
"projectId",
",",
"instanceId",
... | Asynchronously deletes the specified instance.
<p>Sample code:
<pre>{@code
ApiFuture<Void> deleteFuture = client.deleteInstanceAsync("my-instance");
deleteFuture.get();
}</pre> | [
"Asynchronously",
"deletes",
"the",
"specified",
"instance",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java#L427-L445 |
132,534 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java | BigtableInstanceAdminClient.existsAsync | public ApiFuture<Boolean> existsAsync(String instanceId) {
ApiFuture<Instance> protoFuture = getInstanceAsync(instanceId);
ApiFuture<Boolean> existsFuture =
ApiFutures.transform(
protoFuture,
new ApiFunction<Instance, Boolean>() {
@Override
public Boo... | java | public ApiFuture<Boolean> existsAsync(String instanceId) {
ApiFuture<Instance> protoFuture = getInstanceAsync(instanceId);
ApiFuture<Boolean> existsFuture =
ApiFutures.transform(
protoFuture,
new ApiFunction<Instance, Boolean>() {
@Override
public Boo... | [
"public",
"ApiFuture",
"<",
"Boolean",
">",
"existsAsync",
"(",
"String",
"instanceId",
")",
"{",
"ApiFuture",
"<",
"Instance",
">",
"protoFuture",
"=",
"getInstanceAsync",
"(",
"instanceId",
")",
";",
"ApiFuture",
"<",
"Boolean",
">",
"existsFuture",
"=",
"Ap... | Asynchronously checks if the instance specified by the instanceId exists
<p>Sample code:
<pre>{@code
ApiFuture<Boolean> found = client.existsAsync("my-instance");
ApiFutures.addCallback(
found,
new ApiFutureCallback<Boolean>() {
public void onSuccess(Boolean found) {
if (found) {
System.out.println("Instance exists"... | [
"Asynchronously",
"checks",
"if",
"the",
"instance",
"specified",
"by",
"the",
"instanceId",
"exists"
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java#L489-L513 |
132,535 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java | BigtableInstanceAdminClient.createClusterAsync | @SuppressWarnings("WeakerAccess")
public ApiFuture<Cluster> createClusterAsync(CreateClusterRequest request) {
return ApiFutures.transform(
stub.createClusterOperationCallable().futureCall(request.toProto(projectId)),
new ApiFunction<com.google.bigtable.admin.v2.Cluster, Cluster>() {
@Ov... | java | @SuppressWarnings("WeakerAccess")
public ApiFuture<Cluster> createClusterAsync(CreateClusterRequest request) {
return ApiFutures.transform(
stub.createClusterOperationCallable().futureCall(request.toProto(projectId)),
new ApiFunction<com.google.bigtable.admin.v2.Cluster, Cluster>() {
@Ov... | [
"@",
"SuppressWarnings",
"(",
"\"WeakerAccess\"",
")",
"public",
"ApiFuture",
"<",
"Cluster",
">",
"createClusterAsync",
"(",
"CreateClusterRequest",
"request",
")",
"{",
"return",
"ApiFutures",
".",
"transform",
"(",
"stub",
".",
"createClusterOperationCallable",
"("... | Asynchronously creates a new cluster in the specified instance.
<p>Sample code:
<pre>{@code
ApiFuture<Cluster> clusterFuture = client.createClusterAsync(
CreateClusterRequest.of("my-instance", "my-new-cluster")
.setZone("us-east1-c")
.setServeNodes(3)
.setStorageType(StorageType.SSD)
);
Cluster cluster = clusterFutu... | [
"Asynchronously",
"creates",
"a",
"new",
"cluster",
"in",
"the",
"specified",
"instance",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java#L550-L561 |
132,536 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java | BigtableInstanceAdminClient.getCluster | @SuppressWarnings("WeakerAccess")
public Cluster getCluster(String instanceId, String clusterId) {
return ApiExceptions.callAndTranslateApiException(getClusterAsync(instanceId, clusterId));
} | java | @SuppressWarnings("WeakerAccess")
public Cluster getCluster(String instanceId, String clusterId) {
return ApiExceptions.callAndTranslateApiException(getClusterAsync(instanceId, clusterId));
} | [
"@",
"SuppressWarnings",
"(",
"\"WeakerAccess\"",
")",
"public",
"Cluster",
"getCluster",
"(",
"String",
"instanceId",
",",
"String",
"clusterId",
")",
"{",
"return",
"ApiExceptions",
".",
"callAndTranslateApiException",
"(",
"getClusterAsync",
"(",
"instanceId",
",",... | Get the cluster representation by ID.
<p>Sample code:
<pre>{@code
Cluster cluster = client.getCluster("my-instance", "my-cluster");
}</pre> | [
"Get",
"the",
"cluster",
"representation",
"by",
"ID",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java#L572-L575 |
132,537 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java | BigtableInstanceAdminClient.getClusterAsync | @SuppressWarnings("WeakerAccess")
public ApiFuture<Cluster> getClusterAsync(String instanceId, String clusterId) {
String name = NameUtil.formatClusterName(projectId, instanceId, clusterId);
com.google.bigtable.admin.v2.GetClusterRequest request =
com.google.bigtable.admin.v2.GetClusterRequest.newBui... | java | @SuppressWarnings("WeakerAccess")
public ApiFuture<Cluster> getClusterAsync(String instanceId, String clusterId) {
String name = NameUtil.formatClusterName(projectId, instanceId, clusterId);
com.google.bigtable.admin.v2.GetClusterRequest request =
com.google.bigtable.admin.v2.GetClusterRequest.newBui... | [
"@",
"SuppressWarnings",
"(",
"\"WeakerAccess\"",
")",
"public",
"ApiFuture",
"<",
"Cluster",
">",
"getClusterAsync",
"(",
"String",
"instanceId",
",",
"String",
"clusterId",
")",
"{",
"String",
"name",
"=",
"NameUtil",
".",
"formatClusterName",
"(",
"projectId",
... | Asynchronously gets the cluster representation by ID.
<p>Sample code:
<pre>{@code
ApiFuture<Cluster> clusterFuture = client.getClusterAsync("my-instance", "my-cluster");
Cluster cluster = clusterFuture.get();
}</pre> | [
"Asynchronously",
"gets",
"the",
"cluster",
"representation",
"by",
"ID",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java#L587-L603 |
132,538 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java | BigtableInstanceAdminClient.listClusters | @SuppressWarnings("WeakerAccess")
public List<Cluster> listClusters(String instanceId) {
return ApiExceptions.callAndTranslateApiException(listClustersAsync(instanceId));
} | java | @SuppressWarnings("WeakerAccess")
public List<Cluster> listClusters(String instanceId) {
return ApiExceptions.callAndTranslateApiException(listClustersAsync(instanceId));
} | [
"@",
"SuppressWarnings",
"(",
"\"WeakerAccess\"",
")",
"public",
"List",
"<",
"Cluster",
">",
"listClusters",
"(",
"String",
"instanceId",
")",
"{",
"return",
"ApiExceptions",
".",
"callAndTranslateApiException",
"(",
"listClustersAsync",
"(",
"instanceId",
")",
")"... | Lists all clusters in the specified instance.
<p>This method will throw a {@link PartialListClustersException} when any zone is unavailable.
If partial listing are ok, the exception can be caught and inspected.
<p>Sample code:
<pre>{@code
try {
List<Cluster> clusters = client.listClusters("my-instance");
} catch (Pa... | [
"Lists",
"all",
"clusters",
"in",
"the",
"specified",
"instance",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java#L622-L625 |
132,539 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java | BigtableInstanceAdminClient.listClustersAsync | @SuppressWarnings("WeakerAccess")
public ApiFuture<List<Cluster>> listClustersAsync(String instanceId) {
String name = NameUtil.formatInstanceName(projectId, instanceId);
com.google.bigtable.admin.v2.ListClustersRequest request =
com.google.bigtable.admin.v2.ListClustersRequest.newBuilder().setParent(... | java | @SuppressWarnings("WeakerAccess")
public ApiFuture<List<Cluster>> listClustersAsync(String instanceId) {
String name = NameUtil.formatInstanceName(projectId, instanceId);
com.google.bigtable.admin.v2.ListClustersRequest request =
com.google.bigtable.admin.v2.ListClustersRequest.newBuilder().setParent(... | [
"@",
"SuppressWarnings",
"(",
"\"WeakerAccess\"",
")",
"public",
"ApiFuture",
"<",
"List",
"<",
"Cluster",
">",
">",
"listClustersAsync",
"(",
"String",
"instanceId",
")",
"{",
"String",
"name",
"=",
"NameUtil",
".",
"formatInstanceName",
"(",
"projectId",
",",
... | Asynchronously lists all clusters in the specified instance.
<p>This method will throw a {@link PartialListClustersException} when any zone is unavailable.
If partial listing are ok, the exception can be caught and inspected.
<p>Sample code:
<pre>{@code
ApiFuture<Cluster> clustersFuture = client.listClustersAsync("m... | [
"Asynchronously",
"lists",
"all",
"clusters",
"in",
"the",
"specified",
"instance",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java#L655-L691 |
132,540 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java | BigtableInstanceAdminClient.resizeCluster | @SuppressWarnings("WeakerAccess")
public Cluster resizeCluster(String instanceId, String clusterId, int numServeNodes) {
return ApiExceptions.callAndTranslateApiException(
resizeClusterAsync(instanceId, clusterId, numServeNodes));
} | java | @SuppressWarnings("WeakerAccess")
public Cluster resizeCluster(String instanceId, String clusterId, int numServeNodes) {
return ApiExceptions.callAndTranslateApiException(
resizeClusterAsync(instanceId, clusterId, numServeNodes));
} | [
"@",
"SuppressWarnings",
"(",
"\"WeakerAccess\"",
")",
"public",
"Cluster",
"resizeCluster",
"(",
"String",
"instanceId",
",",
"String",
"clusterId",
",",
"int",
"numServeNodes",
")",
"{",
"return",
"ApiExceptions",
".",
"callAndTranslateApiException",
"(",
"resizeClu... | Resizes the cluster's node count. Please note that only clusters that belong to a PRODUCTION
instance can be resized.
<p>Sample code:
<pre>{@code
Cluster cluster = client.resizeCluster("my-instance", "my-cluster", 30);
}</pre> | [
"Resizes",
"the",
"cluster",
"s",
"node",
"count",
".",
"Please",
"note",
"that",
"only",
"clusters",
"that",
"belong",
"to",
"a",
"PRODUCTION",
"instance",
"can",
"be",
"resized",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java#L703-L707 |
132,541 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java | BigtableInstanceAdminClient.createAppProfileAsync | @SuppressWarnings("WeakerAccess")
public ApiFuture<AppProfile> createAppProfileAsync(CreateAppProfileRequest request) {
return ApiFutures.transform(
stub.createAppProfileCallable().futureCall(request.toProto(projectId)),
new ApiFunction<com.google.bigtable.admin.v2.AppProfile, AppProfile>() {
... | java | @SuppressWarnings("WeakerAccess")
public ApiFuture<AppProfile> createAppProfileAsync(CreateAppProfileRequest request) {
return ApiFutures.transform(
stub.createAppProfileCallable().futureCall(request.toProto(projectId)),
new ApiFunction<com.google.bigtable.admin.v2.AppProfile, AppProfile>() {
... | [
"@",
"SuppressWarnings",
"(",
"\"WeakerAccess\"",
")",
"public",
"ApiFuture",
"<",
"AppProfile",
">",
"createAppProfileAsync",
"(",
"CreateAppProfileRequest",
"request",
")",
"{",
"return",
"ApiFutures",
".",
"transform",
"(",
"stub",
".",
"createAppProfileCallable",
... | Asynchronously creates a new app profile.
<p>Sample code:
<pre>{@code
ApiFuture<AppProfile> appProfileFuture = client.createAppProfileAsync(
CreateAppProfileRequest.of("my-instance", "my-new-app-profile")
.setRoutingPolicy(SingleClusterRoutingPolicy.of("my-cluster"))
);
AppProfile appProfile = appProfileFuture.get()... | [
"Asynchronously",
"creates",
"a",
"new",
"app",
"profile",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java#L823-L834 |
132,542 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java | BigtableInstanceAdminClient.getAppProfile | @SuppressWarnings("WeakerAccess")
public AppProfile getAppProfile(String instanceId, String appProfileId) {
return ApiExceptions.callAndTranslateApiException(getAppProfileAsync(instanceId, appProfileId));
} | java | @SuppressWarnings("WeakerAccess")
public AppProfile getAppProfile(String instanceId, String appProfileId) {
return ApiExceptions.callAndTranslateApiException(getAppProfileAsync(instanceId, appProfileId));
} | [
"@",
"SuppressWarnings",
"(",
"\"WeakerAccess\"",
")",
"public",
"AppProfile",
"getAppProfile",
"(",
"String",
"instanceId",
",",
"String",
"appProfileId",
")",
"{",
"return",
"ApiExceptions",
".",
"callAndTranslateApiException",
"(",
"getAppProfileAsync",
"(",
"instanc... | Get the app profile by id.
<p>Sample code:
<pre>{@code
AppProfile appProfile = client.getAppProfile("my-instance", "my-app-profile");
}</pre>
@see AppProfile | [
"Get",
"the",
"app",
"profile",
"by",
"id",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java#L847-L850 |
132,543 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java | BigtableInstanceAdminClient.getAppProfileAsync | @SuppressWarnings("WeakerAccess")
public ApiFuture<AppProfile> getAppProfileAsync(String instanceId, String appProfileId) {
String name = NameUtil.formatAppProfileName(projectId, instanceId, appProfileId);
GetAppProfileRequest request =
GetAppProfileRequest.newBuilder().setName(name.toString()).build... | java | @SuppressWarnings("WeakerAccess")
public ApiFuture<AppProfile> getAppProfileAsync(String instanceId, String appProfileId) {
String name = NameUtil.formatAppProfileName(projectId, instanceId, appProfileId);
GetAppProfileRequest request =
GetAppProfileRequest.newBuilder().setName(name.toString()).build... | [
"@",
"SuppressWarnings",
"(",
"\"WeakerAccess\"",
")",
"public",
"ApiFuture",
"<",
"AppProfile",
">",
"getAppProfileAsync",
"(",
"String",
"instanceId",
",",
"String",
"appProfileId",
")",
"{",
"String",
"name",
"=",
"NameUtil",
".",
"formatAppProfileName",
"(",
"... | Asynchronously get the app profile by id.
<p>Sample code:
<pre>{@code
ApiFuture<AppProfile> appProfileFuture = client.getAppProfileAsync("my-instance", "my-app-profile");
AppProfile appProfile = appProfileFuture.get();
}</pre>
@see AppProfile | [
"Asynchronously",
"get",
"the",
"app",
"profile",
"by",
"id",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java#L865-L881 |
132,544 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java | BigtableInstanceAdminClient.listAppProfiles | @SuppressWarnings("WeakerAccess")
public List<AppProfile> listAppProfiles(String instanceId) {
return ApiExceptions.callAndTranslateApiException(listAppProfilesAsync(instanceId));
} | java | @SuppressWarnings("WeakerAccess")
public List<AppProfile> listAppProfiles(String instanceId) {
return ApiExceptions.callAndTranslateApiException(listAppProfilesAsync(instanceId));
} | [
"@",
"SuppressWarnings",
"(",
"\"WeakerAccess\"",
")",
"public",
"List",
"<",
"AppProfile",
">",
"listAppProfiles",
"(",
"String",
"instanceId",
")",
"{",
"return",
"ApiExceptions",
".",
"callAndTranslateApiException",
"(",
"listAppProfilesAsync",
"(",
"instanceId",
"... | Lists all app profiles of the specified instance.
<p>Sample code:
<pre>{@code
List<AppProfile> appProfiles = client.listAppProfiles("my-instance");
}</pre>
@see AppProfile | [
"Lists",
"all",
"app",
"profiles",
"of",
"the",
"specified",
"instance",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java#L894-L897 |
132,545 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java | BigtableInstanceAdminClient.listAppProfilesAsync | @SuppressWarnings("WeakerAccess")
public ApiFuture<List<AppProfile>> listAppProfilesAsync(String instanceId) {
String instanceName = NameUtil.formatInstanceName(projectId, instanceId);
ListAppProfilesRequest request =
ListAppProfilesRequest.newBuilder().setParent(instanceName).build();
// TODO(i... | java | @SuppressWarnings("WeakerAccess")
public ApiFuture<List<AppProfile>> listAppProfilesAsync(String instanceId) {
String instanceName = NameUtil.formatInstanceName(projectId, instanceId);
ListAppProfilesRequest request =
ListAppProfilesRequest.newBuilder().setParent(instanceName).build();
// TODO(i... | [
"@",
"SuppressWarnings",
"(",
"\"WeakerAccess\"",
")",
"public",
"ApiFuture",
"<",
"List",
"<",
"AppProfile",
">",
">",
"listAppProfilesAsync",
"(",
"String",
"instanceId",
")",
"{",
"String",
"instanceName",
"=",
"NameUtil",
".",
"formatInstanceName",
"(",
"proje... | Asynchronously lists all app profiles of the specified instance.
<p>Sample code:
<pre>{@code
ApiFuture<List<AppProfile>> appProfilesFuture = client.listAppProfilesAsync("my-instance");
List<AppProfile> appProfiles = appProfileFuture.get();
}</pre>
@see AppProfile | [
"Asynchronously",
"lists",
"all",
"app",
"profiles",
"of",
"the",
"specified",
"instance",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java#L912-L975 |
132,546 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java | BigtableInstanceAdminClient.updateAppProfileAsync | @SuppressWarnings("WeakerAccess")
public ApiFuture<AppProfile> updateAppProfileAsync(UpdateAppProfileRequest request) {
return ApiFutures.transform(
stub.updateAppProfileOperationCallable().futureCall(request.toProto(projectId)),
new ApiFunction<com.google.bigtable.admin.v2.AppProfile, AppProfile>... | java | @SuppressWarnings("WeakerAccess")
public ApiFuture<AppProfile> updateAppProfileAsync(UpdateAppProfileRequest request) {
return ApiFutures.transform(
stub.updateAppProfileOperationCallable().futureCall(request.toProto(projectId)),
new ApiFunction<com.google.bigtable.admin.v2.AppProfile, AppProfile>... | [
"@",
"SuppressWarnings",
"(",
"\"WeakerAccess\"",
")",
"public",
"ApiFuture",
"<",
"AppProfile",
">",
"updateAppProfileAsync",
"(",
"UpdateAppProfileRequest",
"request",
")",
"{",
"return",
"ApiFutures",
".",
"transform",
"(",
"stub",
".",
"updateAppProfileOperationCall... | Asynchronously updates an existing app profile.
<p>Sample code:
<pre>{@code
ApiFuture<AppProfile> existingAppProfileFuture = client.getAppProfileAsync("my-instance", "my-app-profile");
ApiFuture<AppProfile> updatedAppProfileFuture = ApiFutures.transformAsync(
existingAppProfileFuture,
new ApiAsyncFunction<AppProfile... | [
"Asynchronously",
"updates",
"an",
"existing",
"app",
"profile",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java#L1024-L1035 |
132,547 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java | BigtableInstanceAdminClient.deleteAppProfile | @SuppressWarnings("WeakerAccess")
public void deleteAppProfile(String instanceId, String appProfileId) {
ApiExceptions.callAndTranslateApiException(deleteAppProfileAsync(instanceId, appProfileId));
} | java | @SuppressWarnings("WeakerAccess")
public void deleteAppProfile(String instanceId, String appProfileId) {
ApiExceptions.callAndTranslateApiException(deleteAppProfileAsync(instanceId, appProfileId));
} | [
"@",
"SuppressWarnings",
"(",
"\"WeakerAccess\"",
")",
"public",
"void",
"deleteAppProfile",
"(",
"String",
"instanceId",
",",
"String",
"appProfileId",
")",
"{",
"ApiExceptions",
".",
"callAndTranslateApiException",
"(",
"deleteAppProfileAsync",
"(",
"instanceId",
",",... | Deletes the specified app profile.
<p>Sample code:
<pre>{@code
client.deleteAppProfile("my-instance", "my-app-profile");
}</pre> | [
"Deletes",
"the",
"specified",
"app",
"profile",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java#L1046-L1049 |
132,548 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java | BigtableInstanceAdminClient.deleteAppProfileAsync | @SuppressWarnings("WeakerAccess")
public ApiFuture<Void> deleteAppProfileAsync(String instanceId, String appProfileId) {
String name = NameUtil.formatAppProfileName(projectId, instanceId, appProfileId);
DeleteAppProfileRequest request = DeleteAppProfileRequest.newBuilder().setName(name).build();
return A... | java | @SuppressWarnings("WeakerAccess")
public ApiFuture<Void> deleteAppProfileAsync(String instanceId, String appProfileId) {
String name = NameUtil.formatAppProfileName(projectId, instanceId, appProfileId);
DeleteAppProfileRequest request = DeleteAppProfileRequest.newBuilder().setName(name).build();
return A... | [
"@",
"SuppressWarnings",
"(",
"\"WeakerAccess\"",
")",
"public",
"ApiFuture",
"<",
"Void",
">",
"deleteAppProfileAsync",
"(",
"String",
"instanceId",
",",
"String",
"appProfileId",
")",
"{",
"String",
"name",
"=",
"NameUtil",
".",
"formatAppProfileName",
"(",
"pro... | Asynchronously deletes the specified app profile.
<p>Sample code:
<pre>{@code
ApiFuture<Void> deleteFuture = client.deleteAppProfileAsync("my-instance", "my-app-profile");
deleteFuture.get();
}</pre> | [
"Asynchronously",
"deletes",
"the",
"specified",
"app",
"profile",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java#L1062-L1076 |
132,549 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java | BigtableInstanceAdminClient.getIamPolicyAsync | @SuppressWarnings("WeakerAccess")
public ApiFuture<Policy> getIamPolicyAsync(String instanceId) {
String name = NameUtil.formatInstanceName(projectId, instanceId);
GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(name).build();
final IamPolicyMarshaller marshaller = new IamPoli... | java | @SuppressWarnings("WeakerAccess")
public ApiFuture<Policy> getIamPolicyAsync(String instanceId) {
String name = NameUtil.formatInstanceName(projectId, instanceId);
GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(name).build();
final IamPolicyMarshaller marshaller = new IamPoli... | [
"@",
"SuppressWarnings",
"(",
"\"WeakerAccess\"",
")",
"public",
"ApiFuture",
"<",
"Policy",
">",
"getIamPolicyAsync",
"(",
"String",
"instanceId",
")",
"{",
"String",
"name",
"=",
"NameUtil",
".",
"formatInstanceName",
"(",
"projectId",
",",
"instanceId",
")",
... | Asynchronously gets the IAM access control policy for the specified instance.
<p>Sample code:
<pre>{@code
ApiFuture<Policy> policyFuture = client.getIamPolicyAsync("my-instance");
ApiFutures.addCallback(policyFuture,
new ApiFutureCallback<Policy>() {
public void onSuccess(Policy policy) {
for (Entry<Role, Set<Identi... | [
"Asynchronously",
"gets",
"the",
"IAM",
"access",
"control",
"policy",
"for",
"the",
"specified",
"instance",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java#L1126-L1143 |
132,550 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java | BigtableInstanceAdminClient.setIamPolicy | @SuppressWarnings("WeakerAccess")
public Policy setIamPolicy(String instanceId, Policy policy) {
return ApiExceptions.callAndTranslateApiException(setIamPolicyAsync(instanceId, policy));
} | java | @SuppressWarnings("WeakerAccess")
public Policy setIamPolicy(String instanceId, Policy policy) {
return ApiExceptions.callAndTranslateApiException(setIamPolicyAsync(instanceId, policy));
} | [
"@",
"SuppressWarnings",
"(",
"\"WeakerAccess\"",
")",
"public",
"Policy",
"setIamPolicy",
"(",
"String",
"instanceId",
",",
"Policy",
"policy",
")",
"{",
"return",
"ApiExceptions",
".",
"callAndTranslateApiException",
"(",
"setIamPolicyAsync",
"(",
"instanceId",
",",... | Replaces the IAM policy associated with the specified instance.
<p>Sample code:
<pre>{@code
Policy newPolicy = client.setIamPolicy("my-instance",
Policy.newBuilder()
.addIdentity(Role.of("bigtable.user"), Identity.user("someone@example.com"))
.addIdentity(Role.of("bigtable.admin"), Identity.group("admins@example.com"... | [
"Replaces",
"the",
"IAM",
"policy",
"associated",
"with",
"the",
"specified",
"instance",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java#L1162-L1165 |
132,551 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java | BigtableInstanceAdminClient.setIamPolicyAsync | @SuppressWarnings("WeakerAccess")
public ApiFuture<Policy> setIamPolicyAsync(String instanceId, Policy policy) {
String name = NameUtil.formatInstanceName(projectId, instanceId);
final IamPolicyMarshaller marshaller = new IamPolicyMarshaller();
SetIamPolicyRequest request =
SetIamPolicyRequest.ne... | java | @SuppressWarnings("WeakerAccess")
public ApiFuture<Policy> setIamPolicyAsync(String instanceId, Policy policy) {
String name = NameUtil.formatInstanceName(projectId, instanceId);
final IamPolicyMarshaller marshaller = new IamPolicyMarshaller();
SetIamPolicyRequest request =
SetIamPolicyRequest.ne... | [
"@",
"SuppressWarnings",
"(",
"\"WeakerAccess\"",
")",
"public",
"ApiFuture",
"<",
"Policy",
">",
"setIamPolicyAsync",
"(",
"String",
"instanceId",
",",
"Policy",
"policy",
")",
"{",
"String",
"name",
"=",
"NameUtil",
".",
"formatInstanceName",
"(",
"projectId",
... | Asynchronously replaces the IAM policy associated with the specified instance.
<p>Sample code:
<pre>{@code
ApiFuture<Policy> newPolicyFuture = client.setIamPolicyAsync("my-instance",
Policy.newBuilder()
.addIdentity(Role.of("bigtable.user"), Identity.user("someone@example.com"))
.addIdentity(Role.of("bigtable.admin")... | [
"Asynchronously",
"replaces",
"the",
"IAM",
"policy",
"associated",
"with",
"the",
"specified",
"instance",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java#L1198-L1218 |
132,552 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/DatasetInfo.java | DatasetInfo.newBuilder | public static Builder newBuilder(String projectId, String datasetId) {
return newBuilder(DatasetId.of(projectId, datasetId));
} | java | public static Builder newBuilder(String projectId, String datasetId) {
return newBuilder(DatasetId.of(projectId, datasetId));
} | [
"public",
"static",
"Builder",
"newBuilder",
"(",
"String",
"projectId",
",",
"String",
"datasetId",
")",
"{",
"return",
"newBuilder",
"(",
"DatasetId",
".",
"of",
"(",
"projectId",
",",
"datasetId",
")",
")",
";",
"}"
] | Returns a builder for the DatasetInfo object given it's user-defined project and dataset ids. | [
"Returns",
"a",
"builder",
"for",
"the",
"DatasetInfo",
"object",
"given",
"it",
"s",
"user",
"-",
"defined",
"project",
"and",
"dataset",
"ids",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/DatasetInfo.java#L502-L504 |
132,553 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/KeySet.java | KeySet.all | public static KeySet all() {
return new KeySet(true, ImmutableList.<Key>of(), ImmutableList.<KeyRange>of());
} | java | public static KeySet all() {
return new KeySet(true, ImmutableList.<Key>of(), ImmutableList.<KeyRange>of());
} | [
"public",
"static",
"KeySet",
"all",
"(",
")",
"{",
"return",
"new",
"KeySet",
"(",
"true",
",",
"ImmutableList",
".",
"<",
"Key",
">",
"of",
"(",
")",
",",
"ImmutableList",
".",
"<",
"KeyRange",
">",
"of",
"(",
")",
")",
";",
"}"
] | Creates a key set that will retrieve all rows of a table or index. | [
"Creates",
"a",
"key",
"set",
"that",
"will",
"retrieve",
"all",
"rows",
"of",
"a",
"table",
"or",
"index",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/KeySet.java#L70-L72 |
132,554 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-errorreporting/src/main/java/com/google/cloud/errorreporting/v1beta1/ErrorGroupServiceClient.java | ErrorGroupServiceClient.updateGroup | public final ErrorGroup updateGroup(ErrorGroup group) {
UpdateGroupRequest request = UpdateGroupRequest.newBuilder().setGroup(group).build();
return updateGroup(request);
} | java | public final ErrorGroup updateGroup(ErrorGroup group) {
UpdateGroupRequest request = UpdateGroupRequest.newBuilder().setGroup(group).build();
return updateGroup(request);
} | [
"public",
"final",
"ErrorGroup",
"updateGroup",
"(",
"ErrorGroup",
"group",
")",
"{",
"UpdateGroupRequest",
"request",
"=",
"UpdateGroupRequest",
".",
"newBuilder",
"(",
")",
".",
"setGroup",
"(",
"group",
")",
".",
"build",
"(",
")",
";",
"return",
"updateGro... | Replace the data for the specified group. Fails if the group does not exist.
<p>Sample code:
<pre><code>
try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
ErrorGroup group = ErrorGroup.newBuilder().build();
ErrorGroup response = errorGroupServiceClient.updateGroup(group);
}
</... | [
"Replace",
"the",
"data",
"for",
"the",
"specified",
"group",
".",
"Fails",
"if",
"the",
"group",
"does",
"not",
"exist",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-errorreporting/src/main/java/com/google/cloud/errorreporting/v1beta1/ErrorGroupServiceClient.java#L270-L274 |
132,555 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerClient.java | RegionAutoscalerClient.updateRegionAutoscaler | @BetaApi
public final Operation updateRegionAutoscaler(
String autoscaler, String region, Autoscaler autoscalerResource, List<String> fieldMask) {
UpdateRegionAutoscalerHttpRequest request =
UpdateRegionAutoscalerHttpRequest.newBuilder()
.setAutoscaler(autoscaler)
.setRegion... | java | @BetaApi
public final Operation updateRegionAutoscaler(
String autoscaler, String region, Autoscaler autoscalerResource, List<String> fieldMask) {
UpdateRegionAutoscalerHttpRequest request =
UpdateRegionAutoscalerHttpRequest.newBuilder()
.setAutoscaler(autoscaler)
.setRegion... | [
"@",
"BetaApi",
"public",
"final",
"Operation",
"updateRegionAutoscaler",
"(",
"String",
"autoscaler",
",",
"String",
"region",
",",
"Autoscaler",
"autoscalerResource",
",",
"List",
"<",
"String",
">",
"fieldMask",
")",
"{",
"UpdateRegionAutoscalerHttpRequest",
"reque... | Updates an autoscaler in the specified project using the data included in the request.
<p>Sample code:
<pre><code>
try (RegionAutoscalerClient regionAutoscalerClient = RegionAutoscalerClient.create()) {
String autoscaler = "";
ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
Autoscaler autosc... | [
"Updates",
"an",
"autoscaler",
"in",
"the",
"specified",
"project",
"using",
"the",
"data",
"included",
"in",
"the",
"request",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerClient.java#L838-L850 |
132,556 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java | AgentsClient.importAgentAsync | @BetaApi(
"The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture<Empty, Struct> importAgentAsync(ImportAgentRequest request) {
return importAgentOperationCallable().futureCall(request);
} | java | @BetaApi(
"The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture<Empty, Struct> importAgentAsync(ImportAgentRequest request) {
return importAgentOperationCallable().futureCall(request);
} | [
"@",
"BetaApi",
"(",
"\"The surface for long-running operations is not stable yet and may change in the future.\"",
")",
"public",
"final",
"OperationFuture",
"<",
"Empty",
",",
"Struct",
">",
"importAgentAsync",
"(",
"ImportAgentRequest",
"request",
")",
"{",
"return",
"impo... | Imports the specified agent from a ZIP file.
<p>Uploads new intents and entity types without deleting the existing ones. Intents and entity
types with the same name are replaced with the new versions from ImportAgentRequest.
<p>Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>
<p>Sample code... | [
"Imports",
"the",
"specified",
"agent",
"from",
"a",
"ZIP",
"file",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java#L740-L744 |
132,557 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java | AgentsClient.restoreAgentAsync | @BetaApi(
"The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture<Empty, Struct> restoreAgentAsync(RestoreAgentRequest request) {
return restoreAgentOperationCallable().futureCall(request);
} | java | @BetaApi(
"The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture<Empty, Struct> restoreAgentAsync(RestoreAgentRequest request) {
return restoreAgentOperationCallable().futureCall(request);
} | [
"@",
"BetaApi",
"(",
"\"The surface for long-running operations is not stable yet and may change in the future.\"",
")",
"public",
"final",
"OperationFuture",
"<",
"Empty",
",",
"Struct",
">",
"restoreAgentAsync",
"(",
"RestoreAgentRequest",
"request",
")",
"{",
"return",
"re... | Restores the specified agent from a ZIP file.
<p>Replaces the current agent version with a new one. All the intents and entity types in the
older version are deleted.
<p>Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>
<p>Sample code:
<pre><code>
try (AgentsClient agentsClient = AgentsClie... | [
"Restores",
"the",
"specified",
"agent",
"from",
"a",
"ZIP",
"file",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java#L825-L829 |
132,558 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/FirestoreImpl.java | FirestoreImpl.autoId | static String autoId() {
StringBuilder builder = new StringBuilder();
int maxRandom = AUTO_ID_ALPHABET.length();
for (int i = 0; i < AUTO_ID_LENGTH; i++) {
builder.append(AUTO_ID_ALPHABET.charAt(RANDOM.nextInt(maxRandom)));
}
return builder.toString();
} | java | static String autoId() {
StringBuilder builder = new StringBuilder();
int maxRandom = AUTO_ID_ALPHABET.length();
for (int i = 0; i < AUTO_ID_LENGTH; i++) {
builder.append(AUTO_ID_ALPHABET.charAt(RANDOM.nextInt(maxRandom)));
}
return builder.toString();
} | [
"static",
"String",
"autoId",
"(",
")",
"{",
"StringBuilder",
"builder",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"int",
"maxRandom",
"=",
"AUTO_ID_ALPHABET",
".",
"length",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"AUTO_ID_LE... | Creates a pseudo-random 20-character ID that can be used for Firestore documents. | [
"Creates",
"a",
"pseudo",
"-",
"random",
"20",
"-",
"character",
"ID",
"that",
"can",
"be",
"used",
"for",
"Firestore",
"documents",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/FirestoreImpl.java#L91-L98 |
132,559 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/FirestoreImpl.java | FirestoreImpl.runTransaction | private <T> void runTransaction(
final Transaction.Function<T> transactionCallback,
final SettableApiFuture<T> resultFuture,
final TransactionOptions options) {
// span is intentionally not ended here. It will be ended by runTransactionAttempt on success
// or error.
Span span = tracer.spa... | java | private <T> void runTransaction(
final Transaction.Function<T> transactionCallback,
final SettableApiFuture<T> resultFuture,
final TransactionOptions options) {
// span is intentionally not ended here. It will be ended by runTransactionAttempt on success
// or error.
Span span = tracer.spa... | [
"private",
"<",
"T",
">",
"void",
"runTransaction",
"(",
"final",
"Transaction",
".",
"Function",
"<",
"T",
">",
"transactionCallback",
",",
"final",
"SettableApiFuture",
"<",
"T",
">",
"resultFuture",
",",
"final",
"TransactionOptions",
"options",
")",
"{",
"... | Transaction functions that returns its result in the provided SettableFuture. | [
"Transaction",
"functions",
"that",
"returns",
"its",
"result",
"in",
"the",
"provided",
"SettableFuture",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/FirestoreImpl.java#L264-L274 |
132,560 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/FirestoreImpl.java | FirestoreImpl.streamRequest | <RequestT, ResponseT> void streamRequest(
RequestT requestT,
ApiStreamObserver<ResponseT> responseObserverT,
ServerStreamingCallable<RequestT, ResponseT> callable) {
Preconditions.checkState(!closed, "Firestore client has already been closed");
callable.serverStreamingCall(requestT, responseOb... | java | <RequestT, ResponseT> void streamRequest(
RequestT requestT,
ApiStreamObserver<ResponseT> responseObserverT,
ServerStreamingCallable<RequestT, ResponseT> callable) {
Preconditions.checkState(!closed, "Firestore client has already been closed");
callable.serverStreamingCall(requestT, responseOb... | [
"<",
"RequestT",
",",
"ResponseT",
">",
"void",
"streamRequest",
"(",
"RequestT",
"requestT",
",",
"ApiStreamObserver",
"<",
"ResponseT",
">",
"responseObserverT",
",",
"ServerStreamingCallable",
"<",
"RequestT",
",",
"ResponseT",
">",
"callable",
")",
"{",
"Preco... | Request funnel for all unidirectional streaming requests. | [
"Request",
"funnel",
"for",
"all",
"unidirectional",
"streaming",
"requests",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/FirestoreImpl.java#L417-L423 |
132,561 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/FirestoreImpl.java | FirestoreImpl.streamRequest | <RequestT, ResponseT> ApiStreamObserver<RequestT> streamRequest(
ApiStreamObserver<ResponseT> responseObserverT,
BidiStreamingCallable<RequestT, ResponseT> callable) {
Preconditions.checkState(!closed, "Firestore client has already been closed");
return callable.bidiStreamingCall(responseObserverT);... | java | <RequestT, ResponseT> ApiStreamObserver<RequestT> streamRequest(
ApiStreamObserver<ResponseT> responseObserverT,
BidiStreamingCallable<RequestT, ResponseT> callable) {
Preconditions.checkState(!closed, "Firestore client has already been closed");
return callable.bidiStreamingCall(responseObserverT);... | [
"<",
"RequestT",
",",
"ResponseT",
">",
"ApiStreamObserver",
"<",
"RequestT",
">",
"streamRequest",
"(",
"ApiStreamObserver",
"<",
"ResponseT",
">",
"responseObserverT",
",",
"BidiStreamingCallable",
"<",
"RequestT",
",",
"ResponseT",
">",
"callable",
")",
"{",
"P... | Request funnel for all bidirectional streaming requests. | [
"Request",
"funnel",
"for",
"all",
"bidirectional",
"streaming",
"requests",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/FirestoreImpl.java#L426-L431 |
132,562 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/models/CreateTableRequest.java | CreateTableRequest.addFamily | public CreateTableRequest addFamily(String familyId) {
Preconditions.checkNotNull(familyId);
tableRequest.putColumnFamilies(familyId, ColumnFamily.getDefaultInstance());
return this;
} | java | public CreateTableRequest addFamily(String familyId) {
Preconditions.checkNotNull(familyId);
tableRequest.putColumnFamilies(familyId, ColumnFamily.getDefaultInstance());
return this;
} | [
"public",
"CreateTableRequest",
"addFamily",
"(",
"String",
"familyId",
")",
"{",
"Preconditions",
".",
"checkNotNull",
"(",
"familyId",
")",
";",
"tableRequest",
".",
"putColumnFamilies",
"(",
"familyId",
",",
"ColumnFamily",
".",
"getDefaultInstance",
"(",
")",
... | Adds a new columnFamily to the configuration
@param familyId | [
"Adds",
"a",
"new",
"columnFamily",
"to",
"the",
"configuration"
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/models/CreateTableRequest.java#L64-L68 |
132,563 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/models/CreateTableRequest.java | CreateTableRequest.addSplit | public CreateTableRequest addSplit(ByteString key) {
Preconditions.checkNotNull(key);
createTableRequest.addInitialSplitsBuilder().setKey(key);
return this;
} | java | public CreateTableRequest addSplit(ByteString key) {
Preconditions.checkNotNull(key);
createTableRequest.addInitialSplitsBuilder().setKey(key);
return this;
} | [
"public",
"CreateTableRequest",
"addSplit",
"(",
"ByteString",
"key",
")",
"{",
"Preconditions",
".",
"checkNotNull",
"(",
"key",
")",
";",
"createTableRequest",
".",
"addInitialSplitsBuilder",
"(",
")",
".",
"setKey",
"(",
"key",
")",
";",
"return",
"this",
"... | Adds split at the specified key to the configuration
@param key | [
"Adds",
"split",
"at",
"the",
"specified",
"key",
"to",
"the",
"configuration"
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/models/CreateTableRequest.java#L89-L93 |
132,564 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkClient.java | SubnetworkClient.patchSubnetwork | @BetaApi
public final Operation patchSubnetwork(
ProjectRegionSubnetworkName subnetwork,
Subnetwork subnetworkResource,
List<String> fieldMask) {
PatchSubnetworkHttpRequest request =
PatchSubnetworkHttpRequest.newBuilder()
.setSubnetwork(subnetwork == null ? null : subnetwor... | java | @BetaApi
public final Operation patchSubnetwork(
ProjectRegionSubnetworkName subnetwork,
Subnetwork subnetworkResource,
List<String> fieldMask) {
PatchSubnetworkHttpRequest request =
PatchSubnetworkHttpRequest.newBuilder()
.setSubnetwork(subnetwork == null ? null : subnetwor... | [
"@",
"BetaApi",
"public",
"final",
"Operation",
"patchSubnetwork",
"(",
"ProjectRegionSubnetworkName",
"subnetwork",
",",
"Subnetwork",
"subnetworkResource",
",",
"List",
"<",
"String",
">",
"fieldMask",
")",
"{",
"PatchSubnetworkHttpRequest",
"request",
"=",
"PatchSubn... | Patches the specified subnetwork with the data included in the request. Only certain fields can
up updated with a patch request as indicated in the field descriptions. You must specify the
current fingeprint of the subnetwork resource being patched.
<p>Sample code:
<pre><code>
try (SubnetworkClient subnetworkClient =... | [
"Patches",
"the",
"specified",
"subnetwork",
"with",
"the",
"data",
"included",
"in",
"the",
"request",
".",
"Only",
"certain",
"fields",
"can",
"up",
"updated",
"with",
"a",
"patch",
"request",
"as",
"indicated",
"in",
"the",
"field",
"descriptions",
".",
"... | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkClient.java#L1118-L1131 |
132,565 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyClient.java | SecurityPolicyClient.patchSecurityPolicy | @BetaApi
public final Operation patchSecurityPolicy(
ProjectGlobalSecurityPolicyName securityPolicy,
SecurityPolicy securityPolicyResource,
List<String> fieldMask) {
PatchSecurityPolicyHttpRequest request =
PatchSecurityPolicyHttpRequest.newBuilder()
.setSecurityPolicy(secur... | java | @BetaApi
public final Operation patchSecurityPolicy(
ProjectGlobalSecurityPolicyName securityPolicy,
SecurityPolicy securityPolicyResource,
List<String> fieldMask) {
PatchSecurityPolicyHttpRequest request =
PatchSecurityPolicyHttpRequest.newBuilder()
.setSecurityPolicy(secur... | [
"@",
"BetaApi",
"public",
"final",
"Operation",
"patchSecurityPolicy",
"(",
"ProjectGlobalSecurityPolicyName",
"securityPolicy",
",",
"SecurityPolicy",
"securityPolicyResource",
",",
"List",
"<",
"String",
">",
"fieldMask",
")",
"{",
"PatchSecurityPolicyHttpRequest",
"reque... | Patches the specified policy with the data included in the request.
<p>Sample code:
<pre><code>
try (SecurityPolicyClient securityPolicyClient = SecurityPolicyClient.create()) {
ProjectGlobalSecurityPolicyName securityPolicy = ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]");
SecurityPolicy securi... | [
"Patches",
"the",
"specified",
"policy",
"with",
"the",
"data",
"included",
"in",
"the",
"request",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyClient.java#L858-L871 |
132,566 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ExtractJobConfiguration.java | ExtractJobConfiguration.newBuilder | public static Builder newBuilder(TableId sourceTable, String destinationUri) {
return newBuilder(sourceTable, ImmutableList.of(checkNotNull(destinationUri)));
} | java | public static Builder newBuilder(TableId sourceTable, String destinationUri) {
return newBuilder(sourceTable, ImmutableList.of(checkNotNull(destinationUri)));
} | [
"public",
"static",
"Builder",
"newBuilder",
"(",
"TableId",
"sourceTable",
",",
"String",
"destinationUri",
")",
"{",
"return",
"newBuilder",
"(",
"sourceTable",
",",
"ImmutableList",
".",
"of",
"(",
"checkNotNull",
"(",
"destinationUri",
")",
")",
")",
";",
... | Creates a builder for a BigQuery Extract Job configuration given source table and destination
URI. | [
"Creates",
"a",
"builder",
"for",
"a",
"BigQuery",
"Extract",
"Job",
"configuration",
"given",
"source",
"table",
"and",
"destination",
"URI",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ExtractJobConfiguration.java#L242-L244 |
132,567 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ExtractJobConfiguration.java | ExtractJobConfiguration.newBuilder | public static Builder newBuilder(TableId sourceTable, List<String> destinationUris) {
return new Builder().setSourceTable(sourceTable).setDestinationUris(destinationUris);
} | java | public static Builder newBuilder(TableId sourceTable, List<String> destinationUris) {
return new Builder().setSourceTable(sourceTable).setDestinationUris(destinationUris);
} | [
"public",
"static",
"Builder",
"newBuilder",
"(",
"TableId",
"sourceTable",
",",
"List",
"<",
"String",
">",
"destinationUris",
")",
"{",
"return",
"new",
"Builder",
"(",
")",
".",
"setSourceTable",
"(",
"sourceTable",
")",
".",
"setDestinationUris",
"(",
"des... | Creates a builder for a BigQuery Extract Job configuration given source table and destination
URIs. | [
"Creates",
"a",
"builder",
"for",
"a",
"BigQuery",
"Extract",
"Job",
"configuration",
"given",
"source",
"table",
"and",
"destination",
"URIs",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ExtractJobConfiguration.java#L250-L252 |
132,568 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ExtractJobConfiguration.java | ExtractJobConfiguration.of | public static ExtractJobConfiguration of(TableId sourceTable, String destinationUri) {
return newBuilder(sourceTable, destinationUri).build();
} | java | public static ExtractJobConfiguration of(TableId sourceTable, String destinationUri) {
return newBuilder(sourceTable, destinationUri).build();
} | [
"public",
"static",
"ExtractJobConfiguration",
"of",
"(",
"TableId",
"sourceTable",
",",
"String",
"destinationUri",
")",
"{",
"return",
"newBuilder",
"(",
"sourceTable",
",",
"destinationUri",
")",
".",
"build",
"(",
")",
";",
"}"
] | Returns a BigQuery Extract Job configuration for the given source table and destination URI. | [
"Returns",
"a",
"BigQuery",
"Extract",
"Job",
"configuration",
"for",
"the",
"given",
"source",
"table",
"and",
"destination",
"URI",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ExtractJobConfiguration.java#L257-L259 |
132,569 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ExtractJobConfiguration.java | ExtractJobConfiguration.of | public static ExtractJobConfiguration of(
TableId sourceTable, List<String> destinationUris, String format) {
return newBuilder(sourceTable, destinationUris).setFormat(format).build();
} | java | public static ExtractJobConfiguration of(
TableId sourceTable, List<String> destinationUris, String format) {
return newBuilder(sourceTable, destinationUris).setFormat(format).build();
} | [
"public",
"static",
"ExtractJobConfiguration",
"of",
"(",
"TableId",
"sourceTable",
",",
"List",
"<",
"String",
">",
"destinationUris",
",",
"String",
"format",
")",
"{",
"return",
"newBuilder",
"(",
"sourceTable",
",",
"destinationUris",
")",
".",
"setFormat",
... | Returns a BigQuery Extract Job configuration for the given source table, format and destination
URIs. | [
"Returns",
"a",
"BigQuery",
"Extract",
"Job",
"configuration",
"for",
"the",
"given",
"source",
"table",
"format",
"and",
"destination",
"URIs",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ExtractJobConfiguration.java#L281-L284 |
132,570 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/ContainerAnalysisV1Beta1Client.java | ContainerAnalysisV1Beta1Client.listScanConfigs | public final ListScanConfigsPagedResponse listScanConfigs(ProjectName parent, String filter) {
ListScanConfigsRequest request =
ListScanConfigsRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
.setFilter(filter)
.build();
return listScanConfig... | java | public final ListScanConfigsPagedResponse listScanConfigs(ProjectName parent, String filter) {
ListScanConfigsRequest request =
ListScanConfigsRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
.setFilter(filter)
.build();
return listScanConfig... | [
"public",
"final",
"ListScanConfigsPagedResponse",
"listScanConfigs",
"(",
"ProjectName",
"parent",
",",
"String",
"filter",
")",
"{",
"ListScanConfigsRequest",
"request",
"=",
"ListScanConfigsRequest",
".",
"newBuilder",
"(",
")",
".",
"setParent",
"(",
"parent",
"==... | Lists scan configurations for the specified project.
<p>Sample code:
<pre><code>
try (ContainerAnalysisV1Beta1Client containerAnalysisV1Beta1Client = ContainerAnalysisV1Beta1Client.create()) {
ProjectName parent = ProjectName.of("[PROJECT]");
String filter = "";
for (ScanConfig element : containerAnalysisV1Beta1Clien... | [
"Lists",
"scan",
"configurations",
"for",
"the",
"specified",
"project",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/ContainerAnalysisV1Beta1Client.java#L674-L681 |
132,571 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/SeekableByteChannelPrefetcher.java | SeekableByteChannelPrefetcher.ensureFetching | private void ensureFetching(long blockIndex) {
if (fetching != null) {
if (fetching.futureBuf.isDone()) {
full.add(fetching);
fetching = null;
} else {
return;
}
}
for (WorkUnit w : full) {
if (w.blockIndex == blockIndex) {
return;
}
}
if... | java | private void ensureFetching(long blockIndex) {
if (fetching != null) {
if (fetching.futureBuf.isDone()) {
full.add(fetching);
fetching = null;
} else {
return;
}
}
for (WorkUnit w : full) {
if (w.blockIndex == blockIndex) {
return;
}
}
if... | [
"private",
"void",
"ensureFetching",
"(",
"long",
"blockIndex",
")",
"{",
"if",
"(",
"fetching",
"!=",
"null",
")",
"{",
"if",
"(",
"fetching",
".",
"futureBuf",
".",
"isDone",
"(",
")",
")",
"{",
"full",
".",
"add",
"(",
"fetching",
")",
";",
"fetch... | make sure it now goes looking for that block index. | [
"make",
"sure",
"it",
"now",
"goes",
"looking",
"for",
"that",
"block",
"index",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/SeekableByteChannelPrefetcher.java#L298-L321 |
132,572 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/SeekableByteChannelPrefetcher.java | SeekableByteChannelPrefetcher.read | @Override
public synchronized int read(ByteBuffer dst) throws IOException {
if (!open) {
throw new ClosedChannelException();
}
try {
if (trackTime) {
msBetweenCallsToRead += betweenCallsToRead.elapsed(TimeUnit.MILLISECONDS);
}
ByteBuffer src;
try {
Stopwatch w... | java | @Override
public synchronized int read(ByteBuffer dst) throws IOException {
if (!open) {
throw new ClosedChannelException();
}
try {
if (trackTime) {
msBetweenCallsToRead += betweenCallsToRead.elapsed(TimeUnit.MILLISECONDS);
}
ByteBuffer src;
try {
Stopwatch w... | [
"@",
"Override",
"public",
"synchronized",
"int",
"read",
"(",
"ByteBuffer",
"dst",
")",
"throws",
"IOException",
"{",
"if",
"(",
"!",
"open",
")",
"{",
"throw",
"new",
"ClosedChannelException",
"(",
")",
";",
"}",
"try",
"{",
"if",
"(",
"trackTime",
")"... | Reads a sequence of bytes from this channel into the given buffer.
<p>Bytes are read starting at this channel's current position, and then the position is updated
with the number of bytes actually read. Otherwise this method behaves exactly as specified in
the {@link java.nio.channels.ReadableByteChannel} interface.
... | [
"Reads",
"a",
"sequence",
"of",
"bytes",
"from",
"this",
"channel",
"into",
"the",
"given",
"buffer",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/SeekableByteChannelPrefetcher.java#L377-L448 |
132,573 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/deprecated/RegionOperationId.java | RegionOperationId.of | public static RegionOperationId of(RegionId regionId, String operation) {
return new RegionOperationId(regionId.getProject(), regionId.getRegion(), operation);
} | java | public static RegionOperationId of(RegionId regionId, String operation) {
return new RegionOperationId(regionId.getProject(), regionId.getRegion(), operation);
} | [
"public",
"static",
"RegionOperationId",
"of",
"(",
"RegionId",
"regionId",
",",
"String",
"operation",
")",
"{",
"return",
"new",
"RegionOperationId",
"(",
"regionId",
".",
"getProject",
"(",
")",
",",
"regionId",
".",
"getRegion",
"(",
")",
",",
"operation",... | Returns a region operation identity given the region identity and the operation name. | [
"Returns",
"a",
"region",
"operation",
"identity",
"given",
"the",
"region",
"identity",
"and",
"the",
"operation",
"name",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/deprecated/RegionOperationId.java#L91-L93 |
132,574 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/deprecated/RegionOperationId.java | RegionOperationId.of | public static RegionOperationId of(String region, String operation) {
return new RegionOperationId(null, region, operation);
} | java | public static RegionOperationId of(String region, String operation) {
return new RegionOperationId(null, region, operation);
} | [
"public",
"static",
"RegionOperationId",
"of",
"(",
"String",
"region",
",",
"String",
"operation",
")",
"{",
"return",
"new",
"RegionOperationId",
"(",
"null",
",",
"region",
",",
"operation",
")",
";",
"}"
] | Returns a region operation identity given the region and operation names. | [
"Returns",
"a",
"region",
"operation",
"identity",
"given",
"the",
"region",
"and",
"operation",
"names",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/deprecated/RegionOperationId.java#L96-L98 |
132,575 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/deprecated/RegionOperationId.java | RegionOperationId.of | public static RegionOperationId of(String project, String region, String operation) {
return new RegionOperationId(project, region, operation);
} | java | public static RegionOperationId of(String project, String region, String operation) {
return new RegionOperationId(project, region, operation);
} | [
"public",
"static",
"RegionOperationId",
"of",
"(",
"String",
"project",
",",
"String",
"region",
",",
"String",
"operation",
")",
"{",
"return",
"new",
"RegionOperationId",
"(",
"project",
",",
"region",
",",
"operation",
")",
";",
"}"
] | Returns a region operation identity given project, region and operation names. | [
"Returns",
"a",
"region",
"operation",
"identity",
"given",
"project",
"region",
"and",
"operation",
"names",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/deprecated/RegionOperationId.java#L101-L103 |
132,576 | googleapis/google-cloud-java | google-cloud-examples/src/main/java/com/google/cloud/examples/bigquery/snippets/CloudSnippets.java | CloudSnippets.runQueryPermanentTable | public void runQueryPermanentTable(String destinationDataset, String destinationTable)
throws InterruptedException {
// [START bigquery_query_destination_table]
// BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();
// String destinationDataset = 'my_destination_dataset';
// Str... | java | public void runQueryPermanentTable(String destinationDataset, String destinationTable)
throws InterruptedException {
// [START bigquery_query_destination_table]
// BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();
// String destinationDataset = 'my_destination_dataset';
// Str... | [
"public",
"void",
"runQueryPermanentTable",
"(",
"String",
"destinationDataset",
",",
"String",
"destinationTable",
")",
"throws",
"InterruptedException",
"{",
"// [START bigquery_query_destination_table]",
"// BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();",
"/... | Example of running a query and saving the results to a table. | [
"Example",
"of",
"running",
"a",
"query",
"and",
"saving",
"the",
"results",
"to",
"a",
"table",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-examples/src/main/java/com/google/cloud/examples/bigquery/snippets/CloudSnippets.java#L69-L91 |
132,577 | googleapis/google-cloud-java | google-cloud-examples/src/main/java/com/google/cloud/examples/bigquery/snippets/CloudSnippets.java | CloudSnippets.runUncachedQuery | public void runUncachedQuery() throws TimeoutException, InterruptedException {
// [START bigquery_query_no_cache]
// BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();
String query = "SELECT corpus FROM `bigquery-public-data.samples.shakespeare` GROUP BY corpus;";
QueryJobConfigurati... | java | public void runUncachedQuery() throws TimeoutException, InterruptedException {
// [START bigquery_query_no_cache]
// BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();
String query = "SELECT corpus FROM `bigquery-public-data.samples.shakespeare` GROUP BY corpus;";
QueryJobConfigurati... | [
"public",
"void",
"runUncachedQuery",
"(",
")",
"throws",
"TimeoutException",
",",
"InterruptedException",
"{",
"// [START bigquery_query_no_cache]",
"// BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();",
"String",
"query",
"=",
"\"SELECT corpus FROM `bigquery-pub... | Example of running a query with the cache disabled. | [
"Example",
"of",
"running",
"a",
"query",
"with",
"the",
"cache",
"disabled",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-examples/src/main/java/com/google/cloud/examples/bigquery/snippets/CloudSnippets.java#L123-L141 |
132,578 | googleapis/google-cloud-java | google-cloud-examples/src/main/java/com/google/cloud/examples/bigquery/snippets/CloudSnippets.java | CloudSnippets.runBatchQuery | public void runBatchQuery() throws TimeoutException, InterruptedException {
// [START bigquery_query_batch]
// BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();
String query = "SELECT corpus FROM `bigquery-public-data.samples.shakespeare` GROUP BY corpus;";
QueryJobConfiguration que... | java | public void runBatchQuery() throws TimeoutException, InterruptedException {
// [START bigquery_query_batch]
// BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();
String query = "SELECT corpus FROM `bigquery-public-data.samples.shakespeare` GROUP BY corpus;";
QueryJobConfiguration que... | [
"public",
"void",
"runBatchQuery",
"(",
")",
"throws",
"TimeoutException",
",",
"InterruptedException",
"{",
"// [START bigquery_query_batch]",
"// BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();",
"String",
"query",
"=",
"\"SELECT corpus FROM `bigquery-public-da... | Example of running a batch query. | [
"Example",
"of",
"running",
"a",
"batch",
"query",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-examples/src/main/java/com/google/cloud/examples/bigquery/snippets/CloudSnippets.java#L144-L172 |
132,579 | googleapis/google-cloud-java | google-cloud-examples/src/main/java/com/google/cloud/examples/bigquery/snippets/CloudSnippets.java | CloudSnippets.runQueryWithNamedParameters | public void runQueryWithNamedParameters() throws InterruptedException {
// [START bigquery_query_params_named]
// BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();
String corpus = "romeoandjuliet";
long minWordCount = 250;
String query =
"SELECT word, word_count\n"
... | java | public void runQueryWithNamedParameters() throws InterruptedException {
// [START bigquery_query_params_named]
// BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();
String corpus = "romeoandjuliet";
long minWordCount = 250;
String query =
"SELECT word, word_count\n"
... | [
"public",
"void",
"runQueryWithNamedParameters",
"(",
")",
"throws",
"InterruptedException",
"{",
"// [START bigquery_query_params_named]",
"// BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();",
"String",
"corpus",
"=",
"\"romeoandjuliet\"",
";",
"long",
"minWor... | Example of running a query with named query parameters. | [
"Example",
"of",
"running",
"a",
"query",
"with",
"named",
"query",
"parameters",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-examples/src/main/java/com/google/cloud/examples/bigquery/snippets/CloudSnippets.java#L175-L201 |
132,580 | googleapis/google-cloud-java | google-cloud-examples/src/main/java/com/google/cloud/examples/bigquery/snippets/CloudSnippets.java | CloudSnippets.runQueryWithArrayParameters | public void runQueryWithArrayParameters() throws InterruptedException {
// [START bigquery_query_params_arrays]
// BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();
String gender = "M";
String[] states = {"WA", "WI", "WV", "WY"};
String query =
"SELECT name, sum(number) ... | java | public void runQueryWithArrayParameters() throws InterruptedException {
// [START bigquery_query_params_arrays]
// BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();
String gender = "M";
String[] states = {"WA", "WI", "WV", "WY"};
String query =
"SELECT name, sum(number) ... | [
"public",
"void",
"runQueryWithArrayParameters",
"(",
")",
"throws",
"InterruptedException",
"{",
"// [START bigquery_query_params_arrays]",
"// BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();",
"String",
"gender",
"=",
"\"M\"",
";",
"String",
"[",
"]",
"st... | Example of running a query with array query parameters. | [
"Example",
"of",
"running",
"a",
"query",
"with",
"array",
"query",
"parameters",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-examples/src/main/java/com/google/cloud/examples/bigquery/snippets/CloudSnippets.java#L204-L232 |
132,581 | googleapis/google-cloud-java | google-cloud-examples/src/main/java/com/google/cloud/examples/bigquery/snippets/CloudSnippets.java | CloudSnippets.runQueryWithTimestampParameters | public void runQueryWithTimestampParameters() throws InterruptedException {
// [START bigquery_query_params_timestamps]
// BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();
ZonedDateTime timestamp = LocalDateTime.of(2016, 12, 7, 8, 0, 0).atZone(ZoneOffset.UTC);
String query = "SELEC... | java | public void runQueryWithTimestampParameters() throws InterruptedException {
// [START bigquery_query_params_timestamps]
// BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();
ZonedDateTime timestamp = LocalDateTime.of(2016, 12, 7, 8, 0, 0).atZone(ZoneOffset.UTC);
String query = "SELEC... | [
"public",
"void",
"runQueryWithTimestampParameters",
"(",
")",
"throws",
"InterruptedException",
"{",
"// [START bigquery_query_params_timestamps]",
"// BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();",
"ZonedDateTime",
"timestamp",
"=",
"LocalDateTime",
".",
"of... | Example of running a query with timestamp query parameters. | [
"Example",
"of",
"running",
"a",
"query",
"with",
"timestamp",
"query",
"parameters",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-examples/src/main/java/com/google/cloud/examples/bigquery/snippets/CloudSnippets.java#L235-L265 |
132,582 | googleapis/google-cloud-java | google-cloud-examples/src/main/java/com/google/cloud/examples/bigquery/snippets/CloudSnippets.java | CloudSnippets.loadTableGcsParquet | public void loadTableGcsParquet(String datasetName) throws InterruptedException {
// [START bigquery_load_table_gcs_parquet]
String sourceUri = "gs://cloud-samples-data/bigquery/us-states/us-states.parquet";
TableId tableId = TableId.of(datasetName, "us_states");
LoadJobConfiguration configuration =
... | java | public void loadTableGcsParquet(String datasetName) throws InterruptedException {
// [START bigquery_load_table_gcs_parquet]
String sourceUri = "gs://cloud-samples-data/bigquery/us-states/us-states.parquet";
TableId tableId = TableId.of(datasetName, "us_states");
LoadJobConfiguration configuration =
... | [
"public",
"void",
"loadTableGcsParquet",
"(",
"String",
"datasetName",
")",
"throws",
"InterruptedException",
"{",
"// [START bigquery_load_table_gcs_parquet]",
"String",
"sourceUri",
"=",
"\"gs://cloud-samples-data/bigquery/us-states/us-states.parquet\"",
";",
"TableId",
"tableId"... | Example of loading a parquet file from GCS to a table. | [
"Example",
"of",
"loading",
"a",
"parquet",
"file",
"from",
"GCS",
"to",
"a",
"table",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-examples/src/main/java/com/google/cloud/examples/bigquery/snippets/CloudSnippets.java#L268-L284 |
132,583 | googleapis/google-cloud-java | google-cloud-examples/src/main/java/com/google/cloud/examples/bigquery/snippets/CloudSnippets.java | CloudSnippets.copyTables | public void copyTables(String datasetId, String destinationTableId) throws InterruptedException {
generateTableWithDdl(datasetId, "table1");
generateTableWithDdl(datasetId, "table2");
// [START bigquery_copy_table_multiple_source]
TableId destinationTable = TableId.of(datasetId, destinationTableId);
... | java | public void copyTables(String datasetId, String destinationTableId) throws InterruptedException {
generateTableWithDdl(datasetId, "table1");
generateTableWithDdl(datasetId, "table2");
// [START bigquery_copy_table_multiple_source]
TableId destinationTable = TableId.of(datasetId, destinationTableId);
... | [
"public",
"void",
"copyTables",
"(",
"String",
"datasetId",
",",
"String",
"destinationTableId",
")",
"throws",
"InterruptedException",
"{",
"generateTableWithDdl",
"(",
"datasetId",
",",
"\"table1\"",
")",
";",
"generateTableWithDdl",
"(",
"datasetId",
",",
"\"table2... | Example of copying multiple tables to a destination. | [
"Example",
"of",
"copying",
"multiple",
"tables",
"to",
"a",
"destination",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-examples/src/main/java/com/google/cloud/examples/bigquery/snippets/CloudSnippets.java#L302-L323 |
132,584 | googleapis/google-cloud-java | google-cloud-examples/src/main/java/com/google/cloud/examples/bigquery/snippets/CloudSnippets.java | CloudSnippets.undeleteTable | public void undeleteTable(String datasetId) throws InterruptedException {
generateTableWithDdl(datasetId, "oops_undelete_me");
// [START bigquery_undelete_table]
// String datasetId = "my_dataset";
String tableId = "oops_undelete_me";
// Record the current time. We'll use this as the snapshot tim... | java | public void undeleteTable(String datasetId) throws InterruptedException {
generateTableWithDdl(datasetId, "oops_undelete_me");
// [START bigquery_undelete_table]
// String datasetId = "my_dataset";
String tableId = "oops_undelete_me";
// Record the current time. We'll use this as the snapshot tim... | [
"public",
"void",
"undeleteTable",
"(",
"String",
"datasetId",
")",
"throws",
"InterruptedException",
"{",
"generateTableWithDdl",
"(",
"datasetId",
",",
"\"oops_undelete_me\"",
")",
";",
"// [START bigquery_undelete_table]",
"// String datasetId = \"my_dataset\";",
"String",
... | Example of undeleting a table. | [
"Example",
"of",
"undeleting",
"a",
"table",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-examples/src/main/java/com/google/cloud/examples/bigquery/snippets/CloudSnippets.java#L326-L359 |
132,585 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-core-grpc/src/main/java/com/google/cloud/grpc/GrpcTransportOptions.java | GrpcTransportOptions.getApiCallSettings | @Deprecated
public UnaryCallSettings.Builder getApiCallSettings(RetrySettings retrySettings) {
return UnaryCallSettings.newUnaryCallSettingsBuilder().setRetrySettings(retrySettings);
} | java | @Deprecated
public UnaryCallSettings.Builder getApiCallSettings(RetrySettings retrySettings) {
return UnaryCallSettings.newUnaryCallSettingsBuilder().setRetrySettings(retrySettings);
} | [
"@",
"Deprecated",
"public",
"UnaryCallSettings",
".",
"Builder",
"getApiCallSettings",
"(",
"RetrySettings",
"retrySettings",
")",
"{",
"return",
"UnaryCallSettings",
".",
"newUnaryCallSettingsBuilder",
"(",
")",
".",
"setRetrySettings",
"(",
"retrySettings",
")",
";",... | Returns a builder for API call settings. | [
"Returns",
"a",
"builder",
"for",
"API",
"call",
"settings",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-core-grpc/src/main/java/com/google/cloud/grpc/GrpcTransportOptions.java#L150-L153 |
132,586 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-core-grpc/src/main/java/com/google/cloud/grpc/GrpcTransportOptions.java | GrpcTransportOptions.setUpChannelProvider | @BetaApi
public static TransportChannelProvider setUpChannelProvider(
InstantiatingGrpcChannelProvider.Builder providerBuilder,
ServiceOptions<?, ?> serviceOptions) {
providerBuilder.setEndpoint(serviceOptions.getHost());
return providerBuilder.build();
} | java | @BetaApi
public static TransportChannelProvider setUpChannelProvider(
InstantiatingGrpcChannelProvider.Builder providerBuilder,
ServiceOptions<?, ?> serviceOptions) {
providerBuilder.setEndpoint(serviceOptions.getHost());
return providerBuilder.build();
} | [
"@",
"BetaApi",
"public",
"static",
"TransportChannelProvider",
"setUpChannelProvider",
"(",
"InstantiatingGrpcChannelProvider",
".",
"Builder",
"providerBuilder",
",",
"ServiceOptions",
"<",
"?",
",",
"?",
">",
"serviceOptions",
")",
"{",
"providerBuilder",
".",
"setEn... | Returns a channel provider from the given default provider. | [
"Returns",
"a",
"channel",
"provider",
"from",
"the",
"given",
"default",
"provider",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-core-grpc/src/main/java/com/google/cloud/grpc/GrpcTransportOptions.java#L156-L162 |
132,587 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystemProvider.java | CloudStorageFileSystemProvider.newByteChannel | @Override
public SeekableByteChannel newByteChannel(
Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException {
checkNotNull(path);
initStorage();
CloudStorageUtil.checkNotNullArray(attrs);
if (options.contains(StandardOpenOption.WRITE)) {
// TODO: Make o... | java | @Override
public SeekableByteChannel newByteChannel(
Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException {
checkNotNull(path);
initStorage();
CloudStorageUtil.checkNotNullArray(attrs);
if (options.contains(StandardOpenOption.WRITE)) {
// TODO: Make o... | [
"@",
"Override",
"public",
"SeekableByteChannel",
"newByteChannel",
"(",
"Path",
"path",
",",
"Set",
"<",
"?",
"extends",
"OpenOption",
">",
"options",
",",
"FileAttribute",
"<",
"?",
">",
"...",
"attrs",
")",
"throws",
"IOException",
"{",
"checkNotNull",
"(",... | Open a file for reading or writing. To read receiver-pays buckets, specify the
BlobSourceOption.userProject option.
@param path: the path to the file to open or create
@param options: options specifying how the file is opened, e.g. StandardOpenOption.WRITE or
BlobSourceOption.userProject
@param attrs: (not supported, ... | [
"Open",
"a",
"file",
"for",
"reading",
"or",
"writing",
".",
"To",
"read",
"receiver",
"-",
"pays",
"buckets",
"specify",
"the",
"BlobSourceOption",
".",
"userProject",
"option",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystemProvider.java#L295-L307 |
132,588 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystemProvider.java | CloudStorageFileSystemProvider.createDirectory | @Override
public void createDirectory(Path dir, FileAttribute<?>... attrs) {
CloudStorageUtil.checkPath(dir);
CloudStorageUtil.checkNotNullArray(attrs);
} | java | @Override
public void createDirectory(Path dir, FileAttribute<?>... attrs) {
CloudStorageUtil.checkPath(dir);
CloudStorageUtil.checkNotNullArray(attrs);
} | [
"@",
"Override",
"public",
"void",
"createDirectory",
"(",
"Path",
"dir",
",",
"FileAttribute",
"<",
"?",
">",
"...",
"attrs",
")",
"{",
"CloudStorageUtil",
".",
"checkPath",
"(",
"dir",
")",
";",
"CloudStorageUtil",
".",
"checkNotNullArray",
"(",
"attrs",
"... | Does nothing since Google Cloud Storage uses fake directories. | [
"Does",
"nothing",
"since",
"Google",
"Cloud",
"Storage",
"uses",
"fake",
"directories",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystemProvider.java#L859-L863 |
132,589 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystemProvider.java | CloudStorageFileSystemProvider.listBuckets | Page<Bucket> listBuckets(Storage.BucketListOption... options) {
initStorage();
return storage.list(options);
} | java | Page<Bucket> listBuckets(Storage.BucketListOption... options) {
initStorage();
return storage.list(options);
} | [
"Page",
"<",
"Bucket",
">",
"listBuckets",
"(",
"Storage",
".",
"BucketListOption",
"...",
"options",
")",
"{",
"initStorage",
"(",
")",
";",
"return",
"storage",
".",
"list",
"(",
"options",
")",
";",
"}"
] | Lists the project's buckets. But use the one in CloudStorageFileSystem.
<p>Example of listing buckets, specifying the page size and a name prefix.
<pre>{@code
String prefix = "bucket_";
Page<Bucket> buckets = provider.listBuckets(BucketListOption.prefix(prefix));
Iterator<Bucket> bucketIterator = buckets.iterateAll()... | [
"Lists",
"the",
"project",
"s",
"buckets",
".",
"But",
"use",
"the",
"one",
"in",
"CloudStorageFileSystem",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystemProvider.java#L1006-L1009 |
132,590 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-storage/src/main/java/com/google/cloud/storage/Bucket.java | Bucket.exists | public boolean exists(BucketSourceOption... options) {
int length = options.length;
Storage.BucketGetOption[] getOptions = Arrays.copyOf(toGetOptions(this, options), length + 1);
getOptions[length] = Storage.BucketGetOption.fields();
return storage.get(getName(), getOptions) != null;
} | java | public boolean exists(BucketSourceOption... options) {
int length = options.length;
Storage.BucketGetOption[] getOptions = Arrays.copyOf(toGetOptions(this, options), length + 1);
getOptions[length] = Storage.BucketGetOption.fields();
return storage.get(getName(), getOptions) != null;
} | [
"public",
"boolean",
"exists",
"(",
"BucketSourceOption",
"...",
"options",
")",
"{",
"int",
"length",
"=",
"options",
".",
"length",
";",
"Storage",
".",
"BucketGetOption",
"[",
"]",
"getOptions",
"=",
"Arrays",
".",
"copyOf",
"(",
"toGetOptions",
"(",
"thi... | Checks if this bucket exists.
<p>Example of checking if the bucket exists.
<pre>{@code
boolean exists = bucket.exists();
if (exists) {
// the bucket exists
} else {
// the bucket was not found
}
}</pre>
@return true if this bucket exists, false otherwise
@throws StorageException upon failure | [
"Checks",
"if",
"this",
"bucket",
"exists",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-storage/src/main/java/com/google/cloud/storage/Bucket.java#L693-L698 |
132,591 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystem.java | CloudStorageFileSystem.setDefaultCloudStorageConfiguration | static void setDefaultCloudStorageConfiguration(CloudStorageConfiguration config) {
if (null == config) {
userSpecifiedDefault = CloudStorageConfiguration.DEFAULT;
} else {
userSpecifiedDefault = config;
}
} | java | static void setDefaultCloudStorageConfiguration(CloudStorageConfiguration config) {
if (null == config) {
userSpecifiedDefault = CloudStorageConfiguration.DEFAULT;
} else {
userSpecifiedDefault = config;
}
} | [
"static",
"void",
"setDefaultCloudStorageConfiguration",
"(",
"CloudStorageConfiguration",
"config",
")",
"{",
"if",
"(",
"null",
"==",
"config",
")",
"{",
"userSpecifiedDefault",
"=",
"CloudStorageConfiguration",
".",
"DEFAULT",
";",
"}",
"else",
"{",
"userSpecifiedD... | Don't call this one, call the one in CloudStorageFileSystemProvider. | [
"Don",
"t",
"call",
"this",
"one",
"call",
"the",
"one",
"in",
"CloudStorageFileSystemProvider",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystem.java#L78-L84 |
132,592 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/CollectionReference.java | CollectionReference.getParent | @Nullable
public DocumentReference getParent() {
ResourcePath parent = path.getParent();
return parent.isDocument() ? new DocumentReference(firestore, parent) : null;
} | java | @Nullable
public DocumentReference getParent() {
ResourcePath parent = path.getParent();
return parent.isDocument() ? new DocumentReference(firestore, parent) : null;
} | [
"@",
"Nullable",
"public",
"DocumentReference",
"getParent",
"(",
")",
"{",
"ResourcePath",
"parent",
"=",
"path",
".",
"getParent",
"(",
")",
";",
"return",
"parent",
".",
"isDocument",
"(",
")",
"?",
"new",
"DocumentReference",
"(",
"firestore",
",",
"pare... | Returns a DocumentReference to the containing Document if this is a subcollection, else null.
@return A DocumentReference pointing to the parent document. | [
"Returns",
"a",
"DocumentReference",
"to",
"the",
"containing",
"Document",
"if",
"this",
"is",
"a",
"subcollection",
"else",
"null",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/CollectionReference.java#L70-L74 |
132,593 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/CollectionReference.java | CollectionReference.listDocuments | @Nonnull
public Iterable<DocumentReference> listDocuments() {
ListDocumentsRequest.Builder request = ListDocumentsRequest.newBuilder();
request.setParent(path.getParent().toString());
request.setCollectionId(this.getId());
request.setMask(DocumentMask.getDefaultInstance());
request.setShowMissing(... | java | @Nonnull
public Iterable<DocumentReference> listDocuments() {
ListDocumentsRequest.Builder request = ListDocumentsRequest.newBuilder();
request.setParent(path.getParent().toString());
request.setCollectionId(this.getId());
request.setMask(DocumentMask.getDefaultInstance());
request.setShowMissing(... | [
"@",
"Nonnull",
"public",
"Iterable",
"<",
"DocumentReference",
">",
"listDocuments",
"(",
")",
"{",
"ListDocumentsRequest",
".",
"Builder",
"request",
"=",
"ListDocumentsRequest",
".",
"newBuilder",
"(",
")",
";",
"request",
".",
"setParent",
"(",
"path",
".",
... | Retrieves the list of documents in this collection.
<p>The document references returned may include references to "missing documents", i.e.
document locations that have no document present but which contain subcollections with
documents. Attempting to read such a document reference (e.g. via `get()` or `onSnapshot()`)... | [
"Retrieves",
"the",
"list",
"of",
"documents",
"in",
"this",
"collection",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/CollectionReference.java#L124-L167 |
132,594 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/CollectionReference.java | CollectionReference.add | @Nonnull
public ApiFuture<DocumentReference> add(@Nonnull final Map<String, Object> fields) {
final DocumentReference documentReference = document();
ApiFuture<WriteResult> createFuture = documentReference.create(fields);
return ApiFutures.transform(
createFuture,
new ApiFunction<WriteRes... | java | @Nonnull
public ApiFuture<DocumentReference> add(@Nonnull final Map<String, Object> fields) {
final DocumentReference documentReference = document();
ApiFuture<WriteResult> createFuture = documentReference.create(fields);
return ApiFutures.transform(
createFuture,
new ApiFunction<WriteRes... | [
"@",
"Nonnull",
"public",
"ApiFuture",
"<",
"DocumentReference",
">",
"add",
"(",
"@",
"Nonnull",
"final",
"Map",
"<",
"String",
",",
"Object",
">",
"fields",
")",
"{",
"final",
"DocumentReference",
"documentReference",
"=",
"document",
"(",
")",
";",
"ApiFu... | Adds a new document to this collection with the specified data, assigning it a document ID
automatically.
@param fields A Map containing the data for the new document.
@return An ApiFuture that will be resolved with the DocumentReference of the newly created
document.
@see #document() | [
"Adds",
"a",
"new",
"document",
"to",
"this",
"collection",
"with",
"the",
"specified",
"data",
"assigning",
"it",
"a",
"document",
"ID",
"automatically",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/CollectionReference.java#L178-L191 |
132,595 | googleapis/google-cloud-java | google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/CollectionReference.java | CollectionReference.add | public ApiFuture<DocumentReference> add(Object pojo) {
Object converted = CustomClassMapper.convertToPlainJavaTypes(pojo);
if (!(converted instanceof Map)) {
FirestoreException.invalidState("Can't set a document's data to an array or primitive");
}
return add((Map<String, Object>) converted);
} | java | public ApiFuture<DocumentReference> add(Object pojo) {
Object converted = CustomClassMapper.convertToPlainJavaTypes(pojo);
if (!(converted instanceof Map)) {
FirestoreException.invalidState("Can't set a document's data to an array or primitive");
}
return add((Map<String, Object>) converted);
} | [
"public",
"ApiFuture",
"<",
"DocumentReference",
">",
"add",
"(",
"Object",
"pojo",
")",
"{",
"Object",
"converted",
"=",
"CustomClassMapper",
".",
"convertToPlainJavaTypes",
"(",
"pojo",
")",
";",
"if",
"(",
"!",
"(",
"converted",
"instanceof",
"Map",
")",
... | Adds a new document to this collection with the specified POJO as contents, assigning it a
document ID automatically.
@param pojo The POJO that will be used to populate the contents of the document
@return An ApiFuture that will be resolved with the DocumentReference of the newly created
document.
@see #document() | [
"Adds",
"a",
"new",
"document",
"to",
"this",
"collection",
"with",
"the",
"specified",
"POJO",
"as",
"contents",
"assigning",
"it",
"a",
"document",
"ID",
"automatically",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/CollectionReference.java#L202-L208 |
132,596 | googleapis/google-cloud-java | google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java | StorageSnippets.authListBuckets | public Page<Bucket> authListBuckets() {
// [START auth_cloud_implicit]
// If you don't specify credentials when constructing the client, the
// client library will look for credentials in the environment.
Storage storage = StorageOptions.getDefaultInstance().getService();
Page<Bucket> buckets = st... | java | public Page<Bucket> authListBuckets() {
// [START auth_cloud_implicit]
// If you don't specify credentials when constructing the client, the
// client library will look for credentials in the environment.
Storage storage = StorageOptions.getDefaultInstance().getService();
Page<Bucket> buckets = st... | [
"public",
"Page",
"<",
"Bucket",
">",
"authListBuckets",
"(",
")",
"{",
"// [START auth_cloud_implicit]",
"// If you don't specify credentials when constructing the client, the",
"// client library will look for credentials in the environment.",
"Storage",
"storage",
"=",
"StorageOptio... | Example of default auth | [
"Example",
"of",
"default",
"auth"
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java#L986-L999 |
132,597 | googleapis/google-cloud-java | google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java | StorageSnippets.enableRequesterPays | public Bucket enableRequesterPays(String bucketName) throws StorageException {
// [START enable_requester_pays]
// Instantiate a Google Cloud Storage client
Storage storage = StorageOptions.getDefaultInstance().getService();
// The name of the existing bucket to enable requester-paying for, e.g. "my-bu... | java | public Bucket enableRequesterPays(String bucketName) throws StorageException {
// [START enable_requester_pays]
// Instantiate a Google Cloud Storage client
Storage storage = StorageOptions.getDefaultInstance().getService();
// The name of the existing bucket to enable requester-paying for, e.g. "my-bu... | [
"public",
"Bucket",
"enableRequesterPays",
"(",
"String",
"bucketName",
")",
"throws",
"StorageException",
"{",
"// [START enable_requester_pays]",
"// Instantiate a Google Cloud Storage client",
"Storage",
"storage",
"=",
"StorageOptions",
".",
"getDefaultInstance",
"(",
")",
... | Example of enabling Requester pays on a bucket. | [
"Example",
"of",
"enabling",
"Requester",
"pays",
"on",
"a",
"bucket",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java#L1002-L1017 |
132,598 | googleapis/google-cloud-java | google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java | StorageSnippets.disableRequesterPays | public Bucket disableRequesterPays(String bucketName) {
// [START disable_requester_pays]
// Instantiate a Google Cloud Storage client
Storage storage = StorageOptions.getDefaultInstance().getService();
// The name of the bucket to disable requester-paying for, e.g. "my-bucket"
// String bucketName... | java | public Bucket disableRequesterPays(String bucketName) {
// [START disable_requester_pays]
// Instantiate a Google Cloud Storage client
Storage storage = StorageOptions.getDefaultInstance().getService();
// The name of the bucket to disable requester-paying for, e.g. "my-bucket"
// String bucketName... | [
"public",
"Bucket",
"disableRequesterPays",
"(",
"String",
"bucketName",
")",
"{",
"// [START disable_requester_pays]",
"// Instantiate a Google Cloud Storage client",
"Storage",
"storage",
"=",
"StorageOptions",
".",
"getDefaultInstance",
"(",
")",
".",
"getService",
"(",
... | Example of disabling Requester pays on a bucket. | [
"Example",
"of",
"disabling",
"Requester",
"pays",
"on",
"a",
"bucket",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java#L1020-L1035 |
132,599 | googleapis/google-cloud-java | google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java | StorageSnippets.getRequesterPaysStatus | public Bucket getRequesterPaysStatus(String bucketName) throws StorageException {
// [START get_requester_pays_status]
// Instantiate a Google Cloud Storage client
Storage storage = StorageOptions.getDefaultInstance().getService();
// The name of the bucket to retrieve requester-pays status, eg. "my-bu... | java | public Bucket getRequesterPaysStatus(String bucketName) throws StorageException {
// [START get_requester_pays_status]
// Instantiate a Google Cloud Storage client
Storage storage = StorageOptions.getDefaultInstance().getService();
// The name of the bucket to retrieve requester-pays status, eg. "my-bu... | [
"public",
"Bucket",
"getRequesterPaysStatus",
"(",
"String",
"bucketName",
")",
"throws",
"StorageException",
"{",
"// [START get_requester_pays_status]",
"// Instantiate a Google Cloud Storage client",
"Storage",
"storage",
"=",
"StorageOptions",
".",
"getDefaultInstance",
"(",
... | Example of retrieving Requester pays status on a bucket. | [
"Example",
"of",
"retrieving",
"Requester",
"pays",
"status",
"on",
"a",
"bucket",
"."
] | d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a | https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java#L1038-L1051 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.