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,400
square/javapoet
src/main/java/com/squareup/javapoet/LineWrapper.java
LineWrapper.flush
private void flush(FlushType flushType) throws IOException { switch (flushType) { case WRAP: out.append('\n'); for (int i = 0; i < indentLevel; i++) { out.append(indent); } column = indentLevel * indent.length(); column += buffer.length(); break; ...
java
private void flush(FlushType flushType) throws IOException { switch (flushType) { case WRAP: out.append('\n'); for (int i = 0; i < indentLevel; i++) { out.append(indent); } column = indentLevel * indent.length(); column += buffer.length(); break; ...
[ "private", "void", "flush", "(", "FlushType", "flushType", ")", "throws", "IOException", "{", "switch", "(", "flushType", ")", "{", "case", "WRAP", ":", "out", ".", "append", "(", "'", "'", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<",...
Write the space followed by any buffered text that follows it.
[ "Write", "the", "space", "followed", "by", "any", "buffered", "text", "that", "follows", "it", "." ]
0f93da9a3d9a1da8d29fc993409fcf83d40452bc
https://github.com/square/javapoet/blob/0f93da9a3d9a1da8d29fc993409fcf83d40452bc/src/main/java/com/squareup/javapoet/LineWrapper.java#L109-L132
132,401
auth0/java-jwt
lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.java
Algorithm.sign
public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGenerationException { // default implementation; keep around until sign(byte[]) method is removed byte[] contentBytes = new byte[headerBytes.length + 1 + payloadBytes.length]; System.arraycopy(headerBytes, 0, contentBytes, ...
java
public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGenerationException { // default implementation; keep around until sign(byte[]) method is removed byte[] contentBytes = new byte[headerBytes.length + 1 + payloadBytes.length]; System.arraycopy(headerBytes, 0, contentBytes, ...
[ "public", "byte", "[", "]", "sign", "(", "byte", "[", "]", "headerBytes", ",", "byte", "[", "]", "payloadBytes", ")", "throws", "SignatureGenerationException", "{", "// default implementation; keep around until sign(byte[]) method is removed", "byte", "[", "]", "content...
Sign the given content using this Algorithm instance. @param headerBytes an array of bytes representing the base64 encoded header content to be verified against the signature. @param payloadBytes an array of bytes representing the base64 encoded payload content to be verified against the signature. @return the signatu...
[ "Sign", "the", "given", "content", "using", "this", "Algorithm", "instance", "." ]
890538970a9699b7251a4bfe4f26e8d7605ad530
https://github.com/auth0/java-jwt/blob/890538970a9699b7251a4bfe4f26e8d7605ad530/lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.java#L373-L382
132,402
auth0/java-jwt
lib/src/main/java/com/auth0/jwt/TokenUtils.java
TokenUtils.splitToken
static String[] splitToken(String token) throws JWTDecodeException { String[] parts = token.split("\\."); if (parts.length == 2 && token.endsWith(".")) { //Tokens with alg='none' have empty String as Signature. parts = new String[]{parts[0], parts[1], ""}; } if (p...
java
static String[] splitToken(String token) throws JWTDecodeException { String[] parts = token.split("\\."); if (parts.length == 2 && token.endsWith(".")) { //Tokens with alg='none' have empty String as Signature. parts = new String[]{parts[0], parts[1], ""}; } if (p...
[ "static", "String", "[", "]", "splitToken", "(", "String", "token", ")", "throws", "JWTDecodeException", "{", "String", "[", "]", "parts", "=", "token", ".", "split", "(", "\"\\\\.\"", ")", ";", "if", "(", "parts", ".", "length", "==", "2", "&&", "toke...
Splits the given token on the "." chars into a String array with 3 parts. @param token the string to split. @return the array representing the 3 parts of the token. @throws JWTDecodeException if the Token doesn't have 3 parts.
[ "Splits", "the", "given", "token", "on", "the", ".", "chars", "into", "a", "String", "array", "with", "3", "parts", "." ]
890538970a9699b7251a4bfe4f26e8d7605ad530
https://github.com/auth0/java-jwt/blob/890538970a9699b7251a4bfe4f26e8d7605ad530/lib/src/main/java/com/auth0/jwt/TokenUtils.java#L14-L24
132,403
auth0/java-jwt
lib/src/main/java/com/auth0/jwt/algorithms/CryptoHelper.java
CryptoHelper.createSignatureFor
byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] headerBytes, byte[] payloadBytes) throws NoSuchAlgorithmException, InvalidKeyException { final Mac mac = Mac.getInstance(algorithm); mac.init(new SecretKeySpec(secretBytes, algorithm)); mac.update(headerBytes); mac.up...
java
byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] headerBytes, byte[] payloadBytes) throws NoSuchAlgorithmException, InvalidKeyException { final Mac mac = Mac.getInstance(algorithm); mac.init(new SecretKeySpec(secretBytes, algorithm)); mac.update(headerBytes); mac.up...
[ "byte", "[", "]", "createSignatureFor", "(", "String", "algorithm", ",", "byte", "[", "]", "secretBytes", ",", "byte", "[", "]", "headerBytes", ",", "byte", "[", "]", "payloadBytes", ")", "throws", "NoSuchAlgorithmException", ",", "InvalidKeyException", "{", "...
Create signature for JWT header and payload. @param algorithm algorithm name. @param secretBytes algorithm secret. @param headerBytes JWT header. @param payloadBytes JWT payload. @return the signature bytes. @throws NoSuchAlgorithmException if the algorithm is not supported. @throws InvalidKeyException if the given ke...
[ "Create", "signature", "for", "JWT", "header", "and", "payload", "." ]
890538970a9699b7251a4bfe4f26e8d7605ad530
https://github.com/auth0/java-jwt/blob/890538970a9699b7251a4bfe4f26e8d7605ad530/lib/src/main/java/com/auth0/jwt/algorithms/CryptoHelper.java#L59-L65
132,404
auth0/java-jwt
lib/src/main/java/com/auth0/jwt/algorithms/CryptoHelper.java
CryptoHelper.verifySignatureFor
boolean verifySignatureFor(String algorithm, PublicKey publicKey, byte[] headerBytes, byte[] payloadBytes, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException { final Signature s = Signature.getInstance(algorithm); s.initVerify(publicKey); s.update(hea...
java
boolean verifySignatureFor(String algorithm, PublicKey publicKey, byte[] headerBytes, byte[] payloadBytes, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException { final Signature s = Signature.getInstance(algorithm); s.initVerify(publicKey); s.update(hea...
[ "boolean", "verifySignatureFor", "(", "String", "algorithm", ",", "PublicKey", "publicKey", ",", "byte", "[", "]", "headerBytes", ",", "byte", "[", "]", "payloadBytes", ",", "byte", "[", "]", "signatureBytes", ")", "throws", "NoSuchAlgorithmException", ",", "Inv...
Verify signature for JWT header and payload using a public key. @param algorithm algorithm name. @param publicKey the public key to use for verification. @param headerBytes JWT header. @param payloadBytes JWT payload. @param signatureBytes JWT signature. @return true if signature is valid. @throws NoSuchAlgorithmExcep...
[ "Verify", "signature", "for", "JWT", "header", "and", "payload", "using", "a", "public", "key", "." ]
890538970a9699b7251a4bfe4f26e8d7605ad530
https://github.com/auth0/java-jwt/blob/890538970a9699b7251a4bfe4f26e8d7605ad530/lib/src/main/java/com/auth0/jwt/algorithms/CryptoHelper.java#L97-L104
132,405
auth0/java-jwt
lib/src/main/java/com/auth0/jwt/algorithms/CryptoHelper.java
CryptoHelper.createSignatureFor
byte[] createSignatureFor(String algorithm, PrivateKey privateKey, byte[] headerBytes, byte[] payloadBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException { final Signature s = Signature.getInstance(algorithm); s.initSign(privateKey); s.update(headerBytes); s.up...
java
byte[] createSignatureFor(String algorithm, PrivateKey privateKey, byte[] headerBytes, byte[] payloadBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException { final Signature s = Signature.getInstance(algorithm); s.initSign(privateKey); s.update(headerBytes); s.up...
[ "byte", "[", "]", "createSignatureFor", "(", "String", "algorithm", ",", "PrivateKey", "privateKey", ",", "byte", "[", "]", "headerBytes", ",", "byte", "[", "]", "payloadBytes", ")", "throws", "NoSuchAlgorithmException", ",", "InvalidKeyException", ",", "Signature...
Create signature for JWT header and payload using a private key. @param algorithm algorithm name. @param privateKey the private key to use for signing. @param headerBytes JWT header. @param payloadBytes JWT payload. @return the signature bytes. @throws NoSuchAlgorithmException if the algorithm is not supported. @throw...
[ "Create", "signature", "for", "JWT", "header", "and", "payload", "using", "a", "private", "key", "." ]
890538970a9699b7251a4bfe4f26e8d7605ad530
https://github.com/auth0/java-jwt/blob/890538970a9699b7251a4bfe4f26e8d7605ad530/lib/src/main/java/com/auth0/jwt/algorithms/CryptoHelper.java#L119-L126
132,406
auth0/java-jwt
lib/src/main/java/com/auth0/jwt/JWTVerifier.java
JWTVerifier.verify
@Override public DecodedJWT verify(String token) throws JWTVerificationException { DecodedJWT jwt = new JWTDecoder(parser, token); return verify(jwt); }
java
@Override public DecodedJWT verify(String token) throws JWTVerificationException { DecodedJWT jwt = new JWTDecoder(parser, token); return verify(jwt); }
[ "@", "Override", "public", "DecodedJWT", "verify", "(", "String", "token", ")", "throws", "JWTVerificationException", "{", "DecodedJWT", "jwt", "=", "new", "JWTDecoder", "(", "parser", ",", "token", ")", ";", "return", "verify", "(", "jwt", ")", ";", "}" ]
Perform the verification against the given Token, using any previous configured options. @param token to verify. @return a verified and decoded JWT. @throws AlgorithmMismatchException if the algorithm stated in the token's header it's not equal to the one defined in the {@link JWTVerifier}. @throws SignatureVerifi...
[ "Perform", "the", "verification", "against", "the", "given", "Token", "using", "any", "previous", "configured", "options", "." ]
890538970a9699b7251a4bfe4f26e8d7605ad530
https://github.com/auth0/java-jwt/blob/890538970a9699b7251a4bfe4f26e8d7605ad530/lib/src/main/java/com/auth0/jwt/JWTVerifier.java#L367-L371
132,407
auth0/java-jwt
lib/src/main/java/com/auth0/jwt/JWTVerifier.java
JWTVerifier.verify
@Override public DecodedJWT verify(DecodedJWT jwt) throws JWTVerificationException { verifyAlgorithm(jwt, algorithm); algorithm.verify(jwt); verifyClaims(jwt, claims); return jwt; }
java
@Override public DecodedJWT verify(DecodedJWT jwt) throws JWTVerificationException { verifyAlgorithm(jwt, algorithm); algorithm.verify(jwt); verifyClaims(jwt, claims); return jwt; }
[ "@", "Override", "public", "DecodedJWT", "verify", "(", "DecodedJWT", "jwt", ")", "throws", "JWTVerificationException", "{", "verifyAlgorithm", "(", "jwt", ",", "algorithm", ")", ";", "algorithm", ".", "verify", "(", "jwt", ")", ";", "verifyClaims", "(", "jwt"...
Perform the verification against the given decoded JWT, using any previous configured options. @param jwt to verify. @return a verified and decoded JWT. @throws AlgorithmMismatchException if the algorithm stated in the token's header it's not equal to the one defined in the {@link JWTVerifier}. @throws SignatureVe...
[ "Perform", "the", "verification", "against", "the", "given", "decoded", "JWT", "using", "any", "previous", "configured", "options", "." ]
890538970a9699b7251a4bfe4f26e8d7605ad530
https://github.com/auth0/java-jwt/blob/890538970a9699b7251a4bfe4f26e8d7605ad530/lib/src/main/java/com/auth0/jwt/JWTVerifier.java#L383-L389
132,408
auth0/java-jwt
lib/src/main/java/com/auth0/jwt/impl/JsonNodeClaim.java
JsonNodeClaim.extractClaim
static Claim extractClaim(String claimName, Map<String, JsonNode> tree, ObjectReader objectReader) { JsonNode node = tree.get(claimName); return claimFromNode(node, objectReader); }
java
static Claim extractClaim(String claimName, Map<String, JsonNode> tree, ObjectReader objectReader) { JsonNode node = tree.get(claimName); return claimFromNode(node, objectReader); }
[ "static", "Claim", "extractClaim", "(", "String", "claimName", ",", "Map", "<", "String", ",", "JsonNode", ">", "tree", ",", "ObjectReader", "objectReader", ")", "{", "JsonNode", "node", "=", "tree", ".", "get", "(", "claimName", ")", ";", "return", "claim...
Helper method to extract a Claim from the given JsonNode tree. @param claimName the Claim to search for. @param tree the JsonNode tree to search the Claim in. @return a valid non-null Claim.
[ "Helper", "method", "to", "extract", "a", "Claim", "from", "the", "given", "JsonNode", "tree", "." ]
890538970a9699b7251a4bfe4f26e8d7605ad530
https://github.com/auth0/java-jwt/blob/890538970a9699b7251a4bfe4f26e8d7605ad530/lib/src/main/java/com/auth0/jwt/impl/JsonNodeClaim.java#L138-L141
132,409
auth0/java-jwt
lib/src/main/java/com/auth0/jwt/impl/JsonNodeClaim.java
JsonNodeClaim.claimFromNode
static Claim claimFromNode(JsonNode node, ObjectReader objectReader) { if (node == null || node.isNull() || node.isMissingNode()) { return new NullClaim(); } return new JsonNodeClaim(node, objectReader); }
java
static Claim claimFromNode(JsonNode node, ObjectReader objectReader) { if (node == null || node.isNull() || node.isMissingNode()) { return new NullClaim(); } return new JsonNodeClaim(node, objectReader); }
[ "static", "Claim", "claimFromNode", "(", "JsonNode", "node", ",", "ObjectReader", "objectReader", ")", "{", "if", "(", "node", "==", "null", "||", "node", ".", "isNull", "(", ")", "||", "node", ".", "isMissingNode", "(", ")", ")", "{", "return", "new", ...
Helper method to create a Claim representation from the given JsonNode. @param node the JsonNode to convert into a Claim. @return a valid Claim instance. If the node is null or missing, a NullClaim will be returned.
[ "Helper", "method", "to", "create", "a", "Claim", "representation", "from", "the", "given", "JsonNode", "." ]
890538970a9699b7251a4bfe4f26e8d7605ad530
https://github.com/auth0/java-jwt/blob/890538970a9699b7251a4bfe4f26e8d7605ad530/lib/src/main/java/com/auth0/jwt/impl/JsonNodeClaim.java#L149-L154
132,410
googleapis/google-cloud-java
google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Instance.java
Instance.createDatabase
public OperationFuture<Database, CreateDatabaseMetadata> createDatabase( String databaseId, Iterable<String> statements) throws SpannerException { return dbClient.createDatabase(instanceId(), databaseId, statements); }
java
public OperationFuture<Database, CreateDatabaseMetadata> createDatabase( String databaseId, Iterable<String> statements) throws SpannerException { return dbClient.createDatabase(instanceId(), databaseId, statements); }
[ "public", "OperationFuture", "<", "Database", ",", "CreateDatabaseMetadata", ">", "createDatabase", "(", "String", "databaseId", ",", "Iterable", "<", "String", ">", "statements", ")", "throws", "SpannerException", "{", "return", "dbClient", ".", "createDatabase", "...
Creates a new database in this instance. @param databaseId the id of the database which will be created. It must conform to the regular expression [a-z][a-z0-9_\-]*[a-z0-9] and be between 2 and 30 characters in length @param statements DDL statements to run while creating the database, for example {@code CREATE TABLE ...
[ "Creates", "a", "new", "database", "in", "this", "instance", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Instance.java#L129-L132
132,411
googleapis/google-cloud-java
google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/FirestoreException.java
FirestoreException.serverRejected
static FirestoreException serverRejected(Status status, String message, Object... params) { return new FirestoreException(String.format(message, params), status); }
java
static FirestoreException serverRejected(Status status, String message, Object... params) { return new FirestoreException(String.format(message, params), status); }
[ "static", "FirestoreException", "serverRejected", "(", "Status", "status", ",", "String", "message", ",", "Object", "...", "params", ")", "{", "return", "new", "FirestoreException", "(", "String", ".", "format", "(", "message", ",", "params", ")", ",", "status...
Creates a FirestoreException with the provided GRPC Status code and message in a nested exception. @return The FirestoreException
[ "Creates", "a", "FirestoreException", "with", "the", "provided", "GRPC", "Status", "code", "and", "message", "in", "a", "nested", "exception", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/FirestoreException.java#L60-L62
132,412
googleapis/google-cloud-java
google-cloud-examples/src/main/java/com/google/cloud/examples/compute/v1/ComputeExample.java
ComputeExample.main
public static void main(String[] args) throws IOException { AddressClient client = createCredentialedClient(); System.out.println("Running with Gapic Client."); AddressClient.ListAddressesPagedResponse listResponse = listAddresses(client); verifyListAddressWithGets(client, listResponse); System.ou...
java
public static void main(String[] args) throws IOException { AddressClient client = createCredentialedClient(); System.out.println("Running with Gapic Client."); AddressClient.ListAddressesPagedResponse listResponse = listAddresses(client); verifyListAddressWithGets(client, listResponse); System.ou...
[ "public", "static", "void", "main", "(", "String", "[", "]", "args", ")", "throws", "IOException", "{", "AddressClient", "client", "=", "createCredentialedClient", "(", ")", ";", "System", ".", "out", ".", "println", "(", "\"Running with Gapic Client.\"", ")", ...
List addresses, Insert an address, and then delete the address. Use ResourceNames in the request objects.
[ "List", "addresses", "Insert", "an", "address", "and", "then", "delete", "the", "address", ".", "Use", "ResourceNames", "in", "the", "request", "objects", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-examples/src/main/java/com/google/cloud/examples/compute/v1/ComputeExample.java#L30-L58
132,413
googleapis/google-cloud-java
google-cloud-examples/src/main/java/com/google/cloud/examples/compute/v1/ComputeExample.java
ComputeExample.insertNewAddressUsingRequest
private static void insertNewAddressUsingRequest(AddressClient client, String newAddressName) throws InterruptedException, ExecutionException { // Begin samplegen code for insertAddress(). ProjectRegionName region = ProjectRegionName.of(PROJECT_NAME, REGION); Address address = Address.newBuilder().bui...
java
private static void insertNewAddressUsingRequest(AddressClient client, String newAddressName) throws InterruptedException, ExecutionException { // Begin samplegen code for insertAddress(). ProjectRegionName region = ProjectRegionName.of(PROJECT_NAME, REGION); Address address = Address.newBuilder().bui...
[ "private", "static", "void", "insertNewAddressUsingRequest", "(", "AddressClient", "client", ",", "String", "newAddressName", ")", "throws", "InterruptedException", ",", "ExecutionException", "{", "// Begin samplegen code for insertAddress().", "ProjectRegionName", "region", "=...
Use an InsertAddressHttpRequest object to make an addresses.insert method call.
[ "Use", "an", "InsertAddressHttpRequest", "object", "to", "make", "an", "addresses", ".", "insert", "method", "call", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-examples/src/main/java/com/google/cloud/examples/compute/v1/ComputeExample.java#L85-L100
132,414
googleapis/google-cloud-java
google-cloud-examples/src/main/java/com/google/cloud/examples/compute/v1/ComputeExample.java
ComputeExample.insertAddressUsingCallable
private static void insertAddressUsingCallable(AddressClient client, String newAddressName) throws InterruptedException, ExecutionException { // Begin samplegen code for insertAddress(). ProjectRegionName region = ProjectRegionName.of(PROJECT_NAME, REGION); Address address = Address.newBuilder().build...
java
private static void insertAddressUsingCallable(AddressClient client, String newAddressName) throws InterruptedException, ExecutionException { // Begin samplegen code for insertAddress(). ProjectRegionName region = ProjectRegionName.of(PROJECT_NAME, REGION); Address address = Address.newBuilder().build...
[ "private", "static", "void", "insertAddressUsingCallable", "(", "AddressClient", "client", ",", "String", "newAddressName", ")", "throws", "InterruptedException", ",", "ExecutionException", "{", "// Begin samplegen code for insertAddress().", "ProjectRegionName", "region", "=",...
Use an callable object to make an addresses.insert method call.
[ "Use", "an", "callable", "object", "to", "make", "an", "addresses", ".", "insert", "method", "call", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-examples/src/main/java/com/google/cloud/examples/compute/v1/ComputeExample.java#L103-L119
132,415
googleapis/google-cloud-java
google-cloud-examples/src/main/java/com/google/cloud/examples/compute/v1/ComputeExample.java
ComputeExample.listAddresses
private static AddressClient.ListAddressesPagedResponse listAddresses(AddressClient client) { System.out.println("Listing addresses:"); ProjectRegionName regionName = ProjectRegionName.newBuilder().setRegion(REGION).setProject(PROJECT_NAME).build(); ListAddressesHttpRequest listRequest = Lis...
java
private static AddressClient.ListAddressesPagedResponse listAddresses(AddressClient client) { System.out.println("Listing addresses:"); ProjectRegionName regionName = ProjectRegionName.newBuilder().setRegion(REGION).setProject(PROJECT_NAME).build(); ListAddressesHttpRequest listRequest = Lis...
[ "private", "static", "AddressClient", ".", "ListAddressesPagedResponse", "listAddresses", "(", "AddressClient", "client", ")", "{", "System", ".", "out", ".", "println", "(", "\"Listing addresses:\"", ")", ";", "ProjectRegionName", "regionName", "=", "ProjectRegionName"...
List Addresses in the under the project PROJECT_NAME and region REGION.
[ "List", "Addresses", "in", "the", "under", "the", "project", "PROJECT_NAME", "and", "region", "REGION", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-examples/src/main/java/com/google/cloud/examples/compute/v1/ComputeExample.java#L122-L133
132,416
googleapis/google-cloud-java
google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicyClient.java
SslPolicyClient.patchSslPolicy
@BetaApi public final Operation patchSslPolicy( ProjectGlobalSslPolicyName sslPolicy, SslPolicy sslPolicyResource, List<String> fieldMask) { PatchSslPolicyHttpRequest request = PatchSslPolicyHttpRequest.newBuilder() .setSslPolicy(sslPolicy == null ? null : sslPolicy.toString()) ...
java
@BetaApi public final Operation patchSslPolicy( ProjectGlobalSslPolicyName sslPolicy, SslPolicy sslPolicyResource, List<String> fieldMask) { PatchSslPolicyHttpRequest request = PatchSslPolicyHttpRequest.newBuilder() .setSslPolicy(sslPolicy == null ? null : sslPolicy.toString()) ...
[ "@", "BetaApi", "public", "final", "Operation", "patchSslPolicy", "(", "ProjectGlobalSslPolicyName", "sslPolicy", ",", "SslPolicy", "sslPolicyResource", ",", "List", "<", "String", ">", "fieldMask", ")", "{", "PatchSslPolicyHttpRequest", "request", "=", "PatchSslPolicyH...
Patches the specified SSL policy with the data included in the request. <p>Sample code: <pre><code> try (SslPolicyClient sslPolicyClient = SslPolicyClient.create()) { ProjectGlobalSslPolicyName sslPolicy = ProjectGlobalSslPolicyName.of("[PROJECT]", "[SSL_POLICY]"); SslPolicy sslPolicyResource = SslPolicy.newBuilder()...
[ "Patches", "the", "specified", "SSL", "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/SslPolicyClient.java#L741-L752
132,417
googleapis/google-cloud-java
google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java
SessionEntityTypesClient.updateSessionEntityType
public final SessionEntityType updateSessionEntityType(SessionEntityType sessionEntityType) { UpdateSessionEntityTypeRequest request = UpdateSessionEntityTypeRequest.newBuilder().setSessionEntityType(sessionEntityType).build(); return updateSessionEntityType(request); }
java
public final SessionEntityType updateSessionEntityType(SessionEntityType sessionEntityType) { UpdateSessionEntityTypeRequest request = UpdateSessionEntityTypeRequest.newBuilder().setSessionEntityType(sessionEntityType).build(); return updateSessionEntityType(request); }
[ "public", "final", "SessionEntityType", "updateSessionEntityType", "(", "SessionEntityType", "sessionEntityType", ")", "{", "UpdateSessionEntityTypeRequest", "request", "=", "UpdateSessionEntityTypeRequest", ".", "newBuilder", "(", ")", ".", "setSessionEntityType", "(", "sess...
Updates the specified session entity type. <p>Sample code: <pre><code> try (SessionEntityTypesClient sessionEntityTypesClient = SessionEntityTypesClient.create()) { SessionEntityType sessionEntityType = SessionEntityType.newBuilder().build(); SessionEntityType response = sessionEntityTypesClient.updateSessionEntityTy...
[ "Updates", "the", "specified", "session", "entity", "type", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java#L557-L562
132,418
googleapis/google-cloud-java
google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/DefaultRowAdapter.java
DefaultRowAdapter.createRowFromProto
@InternalApi public Row createRowFromProto(com.google.bigtable.v2.Row row) { RowBuilder<Row> builder = createRowBuilder(); builder.startRow(row.getKey()); for (Family family : row.getFamiliesList()) { for (Column column : family.getColumnsList()) { for (Cell cell : column.getCellsList()) { ...
java
@InternalApi public Row createRowFromProto(com.google.bigtable.v2.Row row) { RowBuilder<Row> builder = createRowBuilder(); builder.startRow(row.getKey()); for (Family family : row.getFamiliesList()) { for (Column column : family.getColumnsList()) { for (Cell cell : column.getCellsList()) { ...
[ "@", "InternalApi", "public", "Row", "createRowFromProto", "(", "com", ".", "google", ".", "bigtable", ".", "v2", ".", "Row", "row", ")", "{", "RowBuilder", "<", "Row", ">", "builder", "=", "createRowBuilder", "(", ")", ";", "builder", ".", "startRow", "...
Helper to convert a proto Row to a model Row. <p>For internal use only.
[ "Helper", "to", "convert", "a", "proto", "Row", "to", "a", "model", "Row", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/DefaultRowAdapter.java#L55-L76
132,419
googleapis/google-cloud-java
google-cloud-clients/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java
TranslationServiceClient.formatGlossaryName
@Deprecated public static final String formatGlossaryName(String project, String location, String glossary) { return GLOSSARY_PATH_TEMPLATE.instantiate( "project", project, "location", location, "glossary", glossary); }
java
@Deprecated public static final String formatGlossaryName(String project, String location, String glossary) { return GLOSSARY_PATH_TEMPLATE.instantiate( "project", project, "location", location, "glossary", glossary); }
[ "@", "Deprecated", "public", "static", "final", "String", "formatGlossaryName", "(", "String", "project", ",", "String", "location", ",", "String", "glossary", ")", "{", "return", "GLOSSARY_PATH_TEMPLATE", ".", "instantiate", "(", "\"project\"", ",", "project", ",...
Formats a string containing the fully-qualified path to represent a glossary resource. @deprecated Use the {@link GlossaryName} class instead.
[ "Formats", "a", "string", "containing", "the", "fully", "-", "qualified", "path", "to", "represent", "a", "glossary", "resource", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java#L129-L135
132,420
googleapis/google-cloud-java
google-cloud-clients/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java
TranslationServiceClient.formatLocationName
@Deprecated public static final String formatLocationName(String project, String location) { return LOCATION_PATH_TEMPLATE.instantiate( "project", project, "location", location); }
java
@Deprecated public static final String formatLocationName(String project, String location) { return LOCATION_PATH_TEMPLATE.instantiate( "project", project, "location", location); }
[ "@", "Deprecated", "public", "static", "final", "String", "formatLocationName", "(", "String", "project", ",", "String", "location", ")", "{", "return", "LOCATION_PATH_TEMPLATE", ".", "instantiate", "(", "\"project\"", ",", "project", ",", "\"location\"", ",", "lo...
Formats a string containing the fully-qualified path to represent a location resource. @deprecated Use the {@link LocationName} class instead.
[ "Formats", "a", "string", "containing", "the", "fully", "-", "qualified", "path", "to", "represent", "a", "location", "resource", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java#L142-L147
132,421
googleapis/google-cloud-java
google-cloud-clients/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java
TranslationServiceClient.detectLanguage
public final DetectLanguageResponse detectLanguage(String parent, String model, String mimeType) { if (!parent.isEmpty()) { LOCATION_PATH_TEMPLATE.validate(parent, "detectLanguage"); } DetectLanguageRequest request = DetectLanguageRequest.newBuilder() .setParent(parent) ...
java
public final DetectLanguageResponse detectLanguage(String parent, String model, String mimeType) { if (!parent.isEmpty()) { LOCATION_PATH_TEMPLATE.validate(parent, "detectLanguage"); } DetectLanguageRequest request = DetectLanguageRequest.newBuilder() .setParent(parent) ...
[ "public", "final", "DetectLanguageResponse", "detectLanguage", "(", "String", "parent", ",", "String", "model", ",", "String", "mimeType", ")", "{", "if", "(", "!", "parent", ".", "isEmpty", "(", ")", ")", "{", "LOCATION_PATH_TEMPLATE", ".", "validate", "(", ...
Detects the language of text within a request. <p>Sample code: <pre><code> try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) { String formattedParent = TranslationServiceClient.formatLocationName("[PROJECT]", "[LOCATION]"); String model = ""; String mimeType = ""; DetectLangu...
[ "Detects", "the", "language", "of", "text", "within", "a", "request", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java#L333-L344
132,422
googleapis/google-cloud-java
google-cloud-clients/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java
TranslationServiceClient.getSupportedLanguages
public final SupportedLanguages getSupportedLanguages( String parent, String displayLanguageCode, String model) { if (!parent.isEmpty()) { LOCATION_PATH_TEMPLATE.validate(parent, "getSupportedLanguages"); } GetSupportedLanguagesRequest request = GetSupportedLanguagesRequest.newBuilder() ...
java
public final SupportedLanguages getSupportedLanguages( String parent, String displayLanguageCode, String model) { if (!parent.isEmpty()) { LOCATION_PATH_TEMPLATE.validate(parent, "getSupportedLanguages"); } GetSupportedLanguagesRequest request = GetSupportedLanguagesRequest.newBuilder() ...
[ "public", "final", "SupportedLanguages", "getSupportedLanguages", "(", "String", "parent", ",", "String", "displayLanguageCode", ",", "String", "model", ")", "{", "if", "(", "!", "parent", ".", "isEmpty", "(", ")", ")", "{", "LOCATION_PATH_TEMPLATE", ".", "valid...
Returns a list of supported languages for translation. <p>Sample code: <pre><code> try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) { String formattedParent = TranslationServiceClient.formatLocationName("[PROJECT]", "[LOCATION]"); String displayLanguageCode = ""; String mode...
[ "Returns", "a", "list", "of", "supported", "languages", "for", "translation", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java#L415-L427
132,423
googleapis/google-cloud-java
google-cloud-clients/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java
TranslationServiceClient.listGlossaries
public final ListGlossariesPagedResponse listGlossaries(String parent, String filter) { if (!parent.isEmpty()) { LOCATION_PATH_TEMPLATE.validate(parent, "listGlossaries"); } ListGlossariesRequest request = ListGlossariesRequest.newBuilder().setParent(parent).setFilter(filter).build(); retu...
java
public final ListGlossariesPagedResponse listGlossaries(String parent, String filter) { if (!parent.isEmpty()) { LOCATION_PATH_TEMPLATE.validate(parent, "listGlossaries"); } ListGlossariesRequest request = ListGlossariesRequest.newBuilder().setParent(parent).setFilter(filter).build(); retu...
[ "public", "final", "ListGlossariesPagedResponse", "listGlossaries", "(", "String", "parent", ",", "String", "filter", ")", "{", "if", "(", "!", "parent", ".", "isEmpty", "(", ")", ")", "{", "LOCATION_PATH_TEMPLATE", ".", "validate", "(", "parent", ",", "\"list...
Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. <p>Sample code: <pre><code> try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) { String formattedParent = TranslationServiceClient.formatLocationName("[PROJECT]", "[LOCATION]"); String filter = "";...
[ "Lists", "glossaries", "in", "a", "project", ".", "Returns", "NOT_FOUND", "if", "the", "project", "doesn", "t", "exist", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java#L706-L713
132,424
googleapis/google-cloud-java
google-cloud-clients/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java
TranslationServiceClient.getGlossary
public final Glossary getGlossary(String name) { GLOSSARY_PATH_TEMPLATE.validate(name, "getGlossary"); GetGlossaryRequest request = GetGlossaryRequest.newBuilder().setName(name).build(); return getGlossary(request); }
java
public final Glossary getGlossary(String name) { GLOSSARY_PATH_TEMPLATE.validate(name, "getGlossary"); GetGlossaryRequest request = GetGlossaryRequest.newBuilder().setName(name).build(); return getGlossary(request); }
[ "public", "final", "Glossary", "getGlossary", "(", "String", "name", ")", "{", "GLOSSARY_PATH_TEMPLATE", ".", "validate", "(", "name", ",", "\"getGlossary\"", ")", ";", "GetGlossaryRequest", "request", "=", "GetGlossaryRequest", ".", "newBuilder", "(", ")", ".", ...
Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. <p>Sample code: <pre><code> try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) { String formattedName = TranslationServiceClient.formatGlossaryName("[PROJECT]", "[LOCATION]", "[GLOSSARY]"); Glossary response = ...
[ "Gets", "a", "glossary", ".", "Returns", "NOT_FOUND", "if", "the", "glossary", "doesn", "t", "exist", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java#L804-L808
132,425
googleapis/google-cloud-java
google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java
Publisher.publish
public ApiFuture<String> publish(PubsubMessage message) { if (shutdown.get()) { throw new IllegalStateException("Cannot publish on a shut-down publisher."); } final OutstandingPublish outstandingPublish = new OutstandingPublish(messageTransform.apply(message)); List<OutstandingBatch> batc...
java
public ApiFuture<String> publish(PubsubMessage message) { if (shutdown.get()) { throw new IllegalStateException("Cannot publish on a shut-down publisher."); } final OutstandingPublish outstandingPublish = new OutstandingPublish(messageTransform.apply(message)); List<OutstandingBatch> batc...
[ "public", "ApiFuture", "<", "String", ">", "publish", "(", "PubsubMessage", "message", ")", "{", "if", "(", "shutdown", ".", "get", "(", ")", ")", "{", "throw", "new", "IllegalStateException", "(", "\"Cannot publish on a shut-down publisher.\"", ")", ";", "}", ...
Schedules the publishing of a message. The publishing of the message may occur immediately or be delayed based on the publisher batching options. <p>Example of publishing a message. <pre>{@code String message = "my_message"; ByteString data = ByteString.copyFromUtf8(message); PubsubMessage pubsubMessage = PubsubMessa...
[ "Schedules", "the", "publishing", "of", "a", "message", ".", "The", "publishing", "of", "the", "message", "may", "occur", "immediately", "or", "be", "delayed", "based", "on", "the", "publisher", "batching", "options", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java#L194-L227
132,426
googleapis/google-cloud-java
google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java
Publisher.shutdown
public void shutdown() throws Exception { if (shutdown.getAndSet(true)) { throw new IllegalStateException("Cannot shut down a publisher already shut-down."); } if (currentAlarmFuture != null && activeAlarm.getAndSet(false)) { currentAlarmFuture.cancel(false); } publishAllOutstanding(); ...
java
public void shutdown() throws Exception { if (shutdown.getAndSet(true)) { throw new IllegalStateException("Cannot shut down a publisher already shut-down."); } if (currentAlarmFuture != null && activeAlarm.getAndSet(false)) { currentAlarmFuture.cancel(false); } publishAllOutstanding(); ...
[ "public", "void", "shutdown", "(", ")", "throws", "Exception", "{", "if", "(", "shutdown", ".", "getAndSet", "(", "true", ")", ")", "{", "throw", "new", "IllegalStateException", "(", "\"Cannot shut down a publisher already shut-down.\"", ")", ";", "}", "if", "("...
Schedules immediate publishing of any outstanding messages and waits until all are processed. <p>Sends remaining outstanding messages and prevents future calls to publish. This method should be invoked prior to deleting the {@link Publisher} object in order to ensure that no pending messages are lost.
[ "Schedules", "immediate", "publishing", "of", "any", "outstanding", "messages", "and", "waits", "until", "all", "are", "processed", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java#L379-L388
132,427
googleapis/google-cloud-java
google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud/ExceptionHandler.java
Builder.addInterceptors
public Builder addInterceptors(Interceptor... interceptors) { for (Interceptor interceptor : interceptors) { this.interceptors.add(interceptor); } return this; }
java
public Builder addInterceptors(Interceptor... interceptors) { for (Interceptor interceptor : interceptors) { this.interceptors.add(interceptor); } return this; }
[ "public", "Builder", "addInterceptors", "(", "Interceptor", "...", "interceptors", ")", "{", "for", "(", "Interceptor", "interceptor", ":", "interceptors", ")", "{", "this", ".", "interceptors", ".", "add", "(", "interceptor", ")", ";", "}", "return", "this", ...
Adds the exception handler interceptors. Call order will be maintained. @param interceptors the interceptors for this exception handler @return the Builder for chaining
[ "Adds", "the", "exception", "handler", "interceptors", ".", "Call", "order", "will", "be", "maintained", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud/ExceptionHandler.java#L96-L101
132,428
googleapis/google-cloud-java
google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud/ExceptionHandler.java
Builder.abortOn
@SafeVarargs public final Builder abortOn(Class<? extends Exception>... exceptions) { for (Class<? extends Exception> exception : exceptions) { nonRetriableExceptions.add(checkNotNull(exception)); } return this; }
java
@SafeVarargs public final Builder abortOn(Class<? extends Exception>... exceptions) { for (Class<? extends Exception> exception : exceptions) { nonRetriableExceptions.add(checkNotNull(exception)); } return this; }
[ "@", "SafeVarargs", "public", "final", "Builder", "abortOn", "(", "Class", "<", "?", "extends", "Exception", ">", "...", "exceptions", ")", "{", "for", "(", "Class", "<", "?", "extends", "Exception", ">", "exception", ":", "exceptions", ")", "{", "nonRetri...
Adds the exceptions to abort on. @param exceptions retry should abort when such exceptions are thrown @return the Builder for chaining
[ "Adds", "the", "exceptions", "to", "abort", "on", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud/ExceptionHandler.java#L123-L129
132,429
googleapis/google-cloud-java
google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClient.java
InstanceAdminClient.setIamPolicy
public final Policy setIamPolicy(String resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); return setIamPolicy(request); }
java
public final Policy setIamPolicy(String resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); return setIamPolicy(request); }
[ "public", "final", "Policy", "setIamPolicy", "(", "String", "resource", ",", "Policy", "policy", ")", "{", "SetIamPolicyRequest", "request", "=", "SetIamPolicyRequest", ".", "newBuilder", "(", ")", ".", "setResource", "(", "resource", ")", ".", "setPolicy", "(",...
Sets the access control policy on an instance resource. Replaces any existing policy. <p>Authorization requires `spanner.instances.setIamPolicy` on [resource][google.iam.v1.SetIamPolicyRequest.resource]. <p>Sample code: <pre><code> try (InstanceAdminClient instanceAdminClient = InstanceAdminClient.create()) { String...
[ "Sets", "the", "access", "control", "policy", "on", "an", "instance", "resource", ".", "Replaces", "any", "existing", "policy", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClient.java#L1356-L1361
132,430
googleapis/google-cloud-java
google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClient.java
InstanceAdminClient.getIamPolicy
public final Policy getIamPolicy(String resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); return getIamPolicy(request); }
java
public final Policy getIamPolicy(String resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); return getIamPolicy(request); }
[ "public", "final", "Policy", "getIamPolicy", "(", "String", "resource", ")", "{", "GetIamPolicyRequest", "request", "=", "GetIamPolicyRequest", ".", "newBuilder", "(", ")", ".", "setResource", "(", "resource", ")", ".", "build", "(", ")", ";", "return", "getIa...
Gets the access control policy for an instance resource. Returns an empty policy if an instance exists but does not have a policy set. <p>Authorization requires `spanner.instances.getIamPolicy` on [resource][google.iam.v1.GetIamPolicyRequest.resource]. <p>Sample code: <pre><code> try (InstanceAdminClient instanceAdm...
[ "Gets", "the", "access", "control", "policy", "for", "an", "instance", "resource", ".", "Returns", "an", "empty", "policy", "if", "an", "instance", "exists", "but", "does", "not", "have", "a", "policy", "set", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClient.java#L1440-L1444
132,431
googleapis/google-cloud-java
google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/CloudSchedulerClient.java
CloudSchedulerClient.listJobs
public final ListJobsPagedResponse listJobs(LocationName parent) { ListJobsRequest request = ListJobsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listJobs(request); }
java
public final ListJobsPagedResponse listJobs(LocationName parent) { ListJobsRequest request = ListJobsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listJobs(request); }
[ "public", "final", "ListJobsPagedResponse", "listJobs", "(", "LocationName", "parent", ")", "{", "ListJobsRequest", "request", "=", "ListJobsRequest", ".", "newBuilder", "(", ")", ".", "setParent", "(", "parent", "==", "null", "?", "null", ":", "parent", ".", ...
Lists jobs. <p>Sample code: <pre><code> try (CloudSchedulerClient cloudSchedulerClient = CloudSchedulerClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (Job element : cloudSchedulerClient.listJobs(parent).iterateAll()) { // doThingsWith(element); } } </code></pre> @param paren...
[ "Lists", "jobs", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/CloudSchedulerClient.java#L178-L182
132,432
googleapis/google-cloud-java
google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/CloudSchedulerClient.java
CloudSchedulerClient.updateJob
public final Job updateJob(Job job, FieldMask updateMask) { UpdateJobRequest request = UpdateJobRequest.newBuilder().setJob(job).setUpdateMask(updateMask).build(); return updateJob(request); }
java
public final Job updateJob(Job job, FieldMask updateMask) { UpdateJobRequest request = UpdateJobRequest.newBuilder().setJob(job).setUpdateMask(updateMask).build(); return updateJob(request); }
[ "public", "final", "Job", "updateJob", "(", "Job", "job", ",", "FieldMask", "updateMask", ")", "{", "UpdateJobRequest", "request", "=", "UpdateJobRequest", ".", "newBuilder", "(", ")", ".", "setJob", "(", "job", ")", ".", "setUpdateMask", "(", "updateMask", ...
Updates a job. <p>If successful, the updated [Job][google.cloud.scheduler.v1beta1.Job] is returned. If the job does not exist, `NOT_FOUND` is returned. <p>If UpdateJob does not successfully return, it is possible for the job to be in an [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1beta1.Job.State.UPDATE_FAILED]...
[ "Updates", "a", "job", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/CloudSchedulerClient.java#L523-L528
132,433
googleapis/google-cloud-java
google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java
ContextsClient.updateContext
public final Context updateContext(Context context) { UpdateContextRequest request = UpdateContextRequest.newBuilder().setContext(context).build(); return updateContext(request); }
java
public final Context updateContext(Context context) { UpdateContextRequest request = UpdateContextRequest.newBuilder().setContext(context).build(); return updateContext(request); }
[ "public", "final", "Context", "updateContext", "(", "Context", "context", ")", "{", "UpdateContextRequest", "request", "=", "UpdateContextRequest", ".", "newBuilder", "(", ")", ".", "setContext", "(", "context", ")", ".", "build", "(", ")", ";", "return", "upd...
Updates the specified context. <p>Sample code: <pre><code> try (ContextsClient contextsClient = ContextsClient.create()) { Context context = Context.newBuilder().build(); Context response = contextsClient.updateContext(context); } </code></pre> @param context Required. The context to update. @throws com.google.api.g...
[ "Updates", "the", "specified", "context", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java#L541-L545
132,434
googleapis/google-cloud-java
google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java
ClusterManagerClient.listClusters
public final ListClustersResponse listClusters(String projectId, String zone) { ListClustersRequest request = ListClustersRequest.newBuilder().setProjectId(projectId).setZone(zone).build(); return listClusters(request); }
java
public final ListClustersResponse listClusters(String projectId, String zone) { ListClustersRequest request = ListClustersRequest.newBuilder().setProjectId(projectId).setZone(zone).build(); return listClusters(request); }
[ "public", "final", "ListClustersResponse", "listClusters", "(", "String", "projectId", ",", "String", "zone", ")", "{", "ListClustersRequest", "request", "=", "ListClustersRequest", ".", "newBuilder", "(", ")", ".", "setProjectId", "(", "projectId", ")", ".", "set...
Lists all clusters owned by a project in either the specified zone or all zones. <p>Sample code: <pre><code> try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { String projectId = ""; String zone = ""; ListClustersResponse response = clusterManagerClient.listClusters(projectId, zone); } ...
[ "Lists", "all", "clusters", "owned", "by", "a", "project", "in", "either", "the", "specified", "zone", "or", "all", "zones", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java#L213-L218
132,435
googleapis/google-cloud-java
google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java
ClusterManagerClient.getCluster
public final Cluster getCluster(String projectId, String zone, String clusterId) { GetClusterRequest request = GetClusterRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId) .build(); return getCluster(request); }
java
public final Cluster getCluster(String projectId, String zone, String clusterId) { GetClusterRequest request = GetClusterRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId) .build(); return getCluster(request); }
[ "public", "final", "Cluster", "getCluster", "(", "String", "projectId", ",", "String", "zone", ",", "String", "clusterId", ")", "{", "GetClusterRequest", "request", "=", "GetClusterRequest", ".", "newBuilder", "(", ")", ".", "setProjectId", "(", "projectId", ")"...
Gets the details of a specific cluster. <p>Sample code: <pre><code> try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { String projectId = ""; String zone = ""; String clusterId = ""; Cluster response = clusterManagerClient.getCluster(projectId, zone, clusterId); } </code></pre> @param ...
[ "Gets", "the", "details", "of", "a", "specific", "cluster", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java#L294-L303
132,436
googleapis/google-cloud-java
google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java
ClusterManagerClient.createCluster
public final Operation createCluster(String projectId, String zone, Cluster cluster) { CreateClusterRequest request = CreateClusterRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setCluster(cluster) .build(); return createCluster(request); ...
java
public final Operation createCluster(String projectId, String zone, Cluster cluster) { CreateClusterRequest request = CreateClusterRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setCluster(cluster) .build(); return createCluster(request); ...
[ "public", "final", "Operation", "createCluster", "(", "String", "projectId", ",", "String", "zone", ",", "Cluster", "cluster", ")", "{", "CreateClusterRequest", "request", "=", "CreateClusterRequest", ".", "newBuilder", "(", ")", ".", "setProjectId", "(", "project...
Creates a cluster, consisting of the specified number and type of Google Compute Engine instances. <p>By default, the cluster is created in the project's [default network](/compute/docs/networks-and-firewalls#networks). <p>One firewall is added for the cluster. After cluster creation, the cluster creates routes for e...
[ "Creates", "a", "cluster", "consisting", "of", "the", "specified", "number", "and", "type", "of", "Google", "Compute", "Engine", "instances", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java#L394-L403
132,437
googleapis/google-cloud-java
google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java
ClusterManagerClient.updateCluster
public final Operation updateCluster( String projectId, String zone, String clusterId, ClusterUpdate update) { UpdateClusterRequest request = UpdateClusterRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId) .setUpdate(u...
java
public final Operation updateCluster( String projectId, String zone, String clusterId, ClusterUpdate update) { UpdateClusterRequest request = UpdateClusterRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId) .setUpdate(u...
[ "public", "final", "Operation", "updateCluster", "(", "String", "projectId", ",", "String", "zone", ",", "String", "clusterId", ",", "ClusterUpdate", "update", ")", "{", "UpdateClusterRequest", "request", "=", "UpdateClusterRequest", ".", "newBuilder", "(", ")", "...
Updates the settings of a specific cluster. <p>Sample code: <pre><code> try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { String projectId = ""; String zone = ""; String clusterId = ""; ClusterUpdate update = ClusterUpdate.newBuilder().build(); Operation response = clusterManagerClient...
[ "Updates", "the", "settings", "of", "a", "specific", "cluster", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java#L507-L518
132,438
googleapis/google-cloud-java
google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java
ClusterManagerClient.setLoggingService
public final Operation setLoggingService( String projectId, String zone, String clusterId, String loggingService) { SetLoggingServiceRequest request = SetLoggingServiceRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId) ...
java
public final Operation setLoggingService( String projectId, String zone, String clusterId, String loggingService) { SetLoggingServiceRequest request = SetLoggingServiceRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId) ...
[ "public", "final", "Operation", "setLoggingService", "(", "String", "projectId", ",", "String", "zone", ",", "String", "clusterId", ",", "String", "loggingService", ")", "{", "SetLoggingServiceRequest", "request", "=", "SetLoggingServiceRequest", ".", "newBuilder", "(...
Sets the logging service for a specific cluster. <p>Sample code: <pre><code> try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { String projectId = ""; String zone = ""; String clusterId = ""; String loggingService = ""; Operation response = clusterManagerClient.setLoggingService(project...
[ "Sets", "the", "logging", "service", "for", "a", "specific", "cluster", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java#L734-L745
132,439
googleapis/google-cloud-java
google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java
ClusterManagerClient.setMonitoringService
public final Operation setMonitoringService( String projectId, String zone, String clusterId, String monitoringService) { SetMonitoringServiceRequest request = SetMonitoringServiceRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId)...
java
public final Operation setMonitoringService( String projectId, String zone, String clusterId, String monitoringService) { SetMonitoringServiceRequest request = SetMonitoringServiceRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId)...
[ "public", "final", "Operation", "setMonitoringService", "(", "String", "projectId", ",", "String", "zone", ",", "String", "clusterId", ",", "String", "monitoringService", ")", "{", "SetMonitoringServiceRequest", "request", "=", "SetMonitoringServiceRequest", ".", "newBu...
Sets the monitoring service for a specific cluster. <p>Sample code: <pre><code> try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { String projectId = ""; String zone = ""; String clusterId = ""; String monitoringService = ""; Operation response = clusterManagerClient.setMonitoringServic...
[ "Sets", "the", "monitoring", "service", "for", "a", "specific", "cluster", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java#L834-L845
132,440
googleapis/google-cloud-java
google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java
ClusterManagerClient.setAddonsConfig
public final Operation setAddonsConfig( String projectId, String zone, String clusterId, AddonsConfig addonsConfig) { SetAddonsConfigRequest request = SetAddonsConfigRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId) ....
java
public final Operation setAddonsConfig( String projectId, String zone, String clusterId, AddonsConfig addonsConfig) { SetAddonsConfigRequest request = SetAddonsConfigRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId) ....
[ "public", "final", "Operation", "setAddonsConfig", "(", "String", "projectId", ",", "String", "zone", ",", "String", "clusterId", ",", "AddonsConfig", "addonsConfig", ")", "{", "SetAddonsConfigRequest", "request", "=", "SetAddonsConfigRequest", ".", "newBuilder", "(",...
Sets the addons for a specific cluster. <p>Sample code: <pre><code> try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { String projectId = ""; String zone = ""; String clusterId = ""; AddonsConfig addonsConfig = AddonsConfig.newBuilder().build(); Operation response = clusterManagerClient...
[ "Sets", "the", "addons", "for", "a", "specific", "cluster", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java#L933-L944
132,441
googleapis/google-cloud-java
google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java
ClusterManagerClient.setLocations
public final Operation setLocations( String projectId, String zone, String clusterId, List<String> locations) { SetLocationsRequest request = SetLocationsRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId) .addAllLocati...
java
public final Operation setLocations( String projectId, String zone, String clusterId, List<String> locations) { SetLocationsRequest request = SetLocationsRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId) .addAllLocati...
[ "public", "final", "Operation", "setLocations", "(", "String", "projectId", ",", "String", "zone", ",", "String", "clusterId", ",", "List", "<", "String", ">", "locations", ")", "{", "SetLocationsRequest", "request", "=", "SetLocationsRequest", ".", "newBuilder", ...
Sets the locations for a specific cluster. <p>Sample code: <pre><code> try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { String projectId = ""; String zone = ""; String clusterId = ""; List&lt;String&gt; locations = new ArrayList&lt;&gt;(); Operation response = clusterManagerClient.set...
[ "Sets", "the", "locations", "for", "a", "specific", "cluster", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java#L1034-L1045
132,442
googleapis/google-cloud-java
google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java
ClusterManagerClient.updateMaster
public final Operation updateMaster( String projectId, String zone, String clusterId, String masterVersion) { UpdateMasterRequest request = UpdateMasterRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId) .setMasterVersi...
java
public final Operation updateMaster( String projectId, String zone, String clusterId, String masterVersion) { UpdateMasterRequest request = UpdateMasterRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId) .setMasterVersi...
[ "public", "final", "Operation", "updateMaster", "(", "String", "projectId", ",", "String", "zone", ",", "String", "clusterId", ",", "String", "masterVersion", ")", "{", "UpdateMasterRequest", "request", "=", "UpdateMasterRequest", ".", "newBuilder", "(", ")", ".",...
Updates the master for a specific cluster. <p>Sample code: <pre><code> try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { String projectId = ""; String zone = ""; String clusterId = ""; String masterVersion = ""; Operation response = clusterManagerClient.updateMaster(projectId, zone, cl...
[ "Updates", "the", "master", "for", "a", "specific", "cluster", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java#L1137-L1148
132,443
googleapis/google-cloud-java
google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java
ClusterManagerClient.deleteCluster
public final Operation deleteCluster(String projectId, String zone, String clusterId) { DeleteClusterRequest request = DeleteClusterRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId) .build(); return deleteCluster(reques...
java
public final Operation deleteCluster(String projectId, String zone, String clusterId) { DeleteClusterRequest request = DeleteClusterRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId) .build(); return deleteCluster(reques...
[ "public", "final", "Operation", "deleteCluster", "(", "String", "projectId", ",", "String", "zone", ",", "String", "clusterId", ")", "{", "DeleteClusterRequest", "request", "=", "DeleteClusterRequest", ".", "newBuilder", "(", ")", ".", "setProjectId", "(", "projec...
Deletes the cluster, including the Kubernetes endpoint and all worker nodes. <p>Firewalls and routes that were configured during cluster creation are also deleted. <p>Other Google Compute Engine resources that might be in use by the cluster (e.g. load balancer resources) will not be deleted if they weren't present at...
[ "Deletes", "the", "cluster", "including", "the", "Kubernetes", "endpoint", "and", "all", "worker", "nodes", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java#L1300-L1309
132,444
googleapis/google-cloud-java
google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java
ClusterManagerClient.listOperations
public final ListOperationsResponse listOperations(String projectId, String zone) { ListOperationsRequest request = ListOperationsRequest.newBuilder().setProjectId(projectId).setZone(zone).build(); return listOperations(request); }
java
public final ListOperationsResponse listOperations(String projectId, String zone) { ListOperationsRequest request = ListOperationsRequest.newBuilder().setProjectId(projectId).setZone(zone).build(); return listOperations(request); }
[ "public", "final", "ListOperationsResponse", "listOperations", "(", "String", "projectId", ",", "String", "zone", ")", "{", "ListOperationsRequest", "request", "=", "ListOperationsRequest", ".", "newBuilder", "(", ")", ".", "setProjectId", "(", "projectId", ")", "."...
Lists all operations in a project in a specific zone or all zones. <p>Sample code: <pre><code> try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { String projectId = ""; String zone = ""; ListOperationsResponse response = clusterManagerClient.listOperations(projectId, zone); } </code></p...
[ "Lists", "all", "operations", "in", "a", "project", "in", "a", "specific", "zone", "or", "all", "zones", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java#L1396-L1401
132,445
googleapis/google-cloud-java
google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java
ClusterManagerClient.getOperation
public final Operation getOperation(String projectId, String zone, String operationId) { GetOperationRequest request = GetOperationRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setOperationId(operationId) .build(); return getOperation(requ...
java
public final Operation getOperation(String projectId, String zone, String operationId) { GetOperationRequest request = GetOperationRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setOperationId(operationId) .build(); return getOperation(requ...
[ "public", "final", "Operation", "getOperation", "(", "String", "projectId", ",", "String", "zone", ",", "String", "operationId", ")", "{", "GetOperationRequest", "request", "=", "GetOperationRequest", ".", "newBuilder", "(", ")", ".", "setProjectId", "(", "project...
Gets the specified operation. <p>Sample code: <pre><code> try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { String projectId = ""; String zone = ""; String operationId = ""; Operation response = clusterManagerClient.getOperation(projectId, zone, operationId); } </code></pre> @param pr...
[ "Gets", "the", "specified", "operation", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java#L1478-L1487
132,446
googleapis/google-cloud-java
google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java
ClusterManagerClient.cancelOperation
public final void cancelOperation(String projectId, String zone, String operationId) { CancelOperationRequest request = CancelOperationRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setOperationId(operationId) .build(); cancelOperation(requ...
java
public final void cancelOperation(String projectId, String zone, String operationId) { CancelOperationRequest request = CancelOperationRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setOperationId(operationId) .build(); cancelOperation(requ...
[ "public", "final", "void", "cancelOperation", "(", "String", "projectId", ",", "String", "zone", ",", "String", "operationId", ")", "{", "CancelOperationRequest", "request", "=", "CancelOperationRequest", ".", "newBuilder", "(", ")", ".", "setProjectId", "(", "pro...
Cancels the specified operation. <p>Sample code: <pre><code> try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { String projectId = ""; String zone = ""; String operationId = ""; clusterManagerClient.cancelOperation(projectId, zone, operationId); } </code></pre> @param projectId Depreca...
[ "Cancels", "the", "specified", "operation", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java#L1567-L1576
132,447
googleapis/google-cloud-java
google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java
ClusterManagerClient.getServerConfig
public final ServerConfig getServerConfig(String projectId, String zone) { GetServerConfigRequest request = GetServerConfigRequest.newBuilder().setProjectId(projectId).setZone(zone).build(); return getServerConfig(request); }
java
public final ServerConfig getServerConfig(String projectId, String zone) { GetServerConfigRequest request = GetServerConfigRequest.newBuilder().setProjectId(projectId).setZone(zone).build(); return getServerConfig(request); }
[ "public", "final", "ServerConfig", "getServerConfig", "(", "String", "projectId", ",", "String", "zone", ")", "{", "GetServerConfigRequest", "request", "=", "GetServerConfigRequest", ".", "newBuilder", "(", ")", ".", "setProjectId", "(", "projectId", ")", ".", "se...
Returns configuration info about the Kubernetes Engine service. <p>Sample code: <pre><code> try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { String projectId = ""; String zone = ""; ServerConfig response = clusterManagerClient.getServerConfig(projectId, zone); } </code></pre> @param ...
[ "Returns", "configuration", "info", "about", "the", "Kubernetes", "Engine", "service", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java#L1653-L1658
132,448
googleapis/google-cloud-java
google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java
ClusterManagerClient.listNodePools
public final ListNodePoolsResponse listNodePools( String projectId, String zone, String clusterId) { ListNodePoolsRequest request = ListNodePoolsRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId) .build(); return l...
java
public final ListNodePoolsResponse listNodePools( String projectId, String zone, String clusterId) { ListNodePoolsRequest request = ListNodePoolsRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId) .build(); return l...
[ "public", "final", "ListNodePoolsResponse", "listNodePools", "(", "String", "projectId", ",", "String", "zone", ",", "String", "clusterId", ")", "{", "ListNodePoolsRequest", "request", "=", "ListNodePoolsRequest", ".", "newBuilder", "(", ")", ".", "setProjectId", "(...
Lists the node pools for a cluster. <p>Sample code: <pre><code> try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { String projectId = ""; String zone = ""; String clusterId = ""; ListNodePoolsResponse response = clusterManagerClient.listNodePools(projectId, zone, clusterId); } </code></...
[ "Lists", "the", "node", "pools", "for", "a", "cluster", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java#L1734-L1744
132,449
googleapis/google-cloud-java
google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java
ClusterManagerClient.getNodePool
public final NodePool getNodePool( String projectId, String zone, String clusterId, String nodePoolId) { GetNodePoolRequest request = GetNodePoolRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId) .setNodePoolId(nodePoo...
java
public final NodePool getNodePool( String projectId, String zone, String clusterId, String nodePoolId) { GetNodePoolRequest request = GetNodePoolRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId) .setNodePoolId(nodePoo...
[ "public", "final", "NodePool", "getNodePool", "(", "String", "projectId", ",", "String", "zone", ",", "String", "clusterId", ",", "String", "nodePoolId", ")", "{", "GetNodePoolRequest", "request", "=", "GetNodePoolRequest", ".", "newBuilder", "(", ")", ".", "set...
Retrieves the node pool requested. <p>Sample code: <pre><code> try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { String projectId = ""; String zone = ""; String clusterId = ""; String nodePoolId = ""; NodePool response = clusterManagerClient.getNodePool(projectId, zone, clusterId, node...
[ "Retrieves", "the", "node", "pool", "requested", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java#L1827-L1838
132,450
googleapis/google-cloud-java
google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java
ClusterManagerClient.createNodePool
public final Operation createNodePool( String projectId, String zone, String clusterId, NodePool nodePool) { CreateNodePoolRequest request = CreateNodePoolRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId) .setNodePool...
java
public final Operation createNodePool( String projectId, String zone, String clusterId, NodePool nodePool) { CreateNodePoolRequest request = CreateNodePoolRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId) .setNodePool...
[ "public", "final", "Operation", "createNodePool", "(", "String", "projectId", ",", "String", "zone", ",", "String", "clusterId", ",", "NodePool", "nodePool", ")", "{", "CreateNodePoolRequest", "request", "=", "CreateNodePoolRequest", ".", "newBuilder", "(", ")", "...
Creates a node pool for a cluster. <p>Sample code: <pre><code> try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { String projectId = ""; String zone = ""; String clusterId = ""; NodePool nodePool = NodePool.newBuilder().build(); Operation response = clusterManagerClient.createNodePool(p...
[ "Creates", "a", "node", "pool", "for", "a", "cluster", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java#L1924-L1935
132,451
googleapis/google-cloud-java
google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java
ClusterManagerClient.deleteNodePool
public final Operation deleteNodePool( String projectId, String zone, String clusterId, String nodePoolId) { DeleteNodePoolRequest request = DeleteNodePoolRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId) .setNodePool...
java
public final Operation deleteNodePool( String projectId, String zone, String clusterId, String nodePoolId) { DeleteNodePoolRequest request = DeleteNodePoolRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId) .setNodePool...
[ "public", "final", "Operation", "deleteNodePool", "(", "String", "projectId", ",", "String", "zone", ",", "String", "clusterId", ",", "String", "nodePoolId", ")", "{", "DeleteNodePoolRequest", "request", "=", "DeleteNodePoolRequest", ".", "newBuilder", "(", ")", "...
Deletes a node pool from a cluster. <p>Sample code: <pre><code> try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { String projectId = ""; String zone = ""; String clusterId = ""; String nodePoolId = ""; Operation response = clusterManagerClient.deleteNodePool(projectId, zone, clusterId,...
[ "Deletes", "a", "node", "pool", "from", "a", "cluster", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java#L2022-L2033
132,452
googleapis/google-cloud-java
google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java
ClusterManagerClient.rollbackNodePoolUpgrade
public final Operation rollbackNodePoolUpgrade( String projectId, String zone, String clusterId, String nodePoolId) { RollbackNodePoolUpgradeRequest request = RollbackNodePoolUpgradeRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterI...
java
public final Operation rollbackNodePoolUpgrade( String projectId, String zone, String clusterId, String nodePoolId) { RollbackNodePoolUpgradeRequest request = RollbackNodePoolUpgradeRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterI...
[ "public", "final", "Operation", "rollbackNodePoolUpgrade", "(", "String", "projectId", ",", "String", "zone", ",", "String", "clusterId", ",", "String", "nodePoolId", ")", "{", "RollbackNodePoolUpgradeRequest", "request", "=", "RollbackNodePoolUpgradeRequest", ".", "new...
Roll back the previously Aborted or Failed NodePool upgrade. This will be an no-op if the last upgrade successfully completed. <p>Sample code: <pre><code> try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { String projectId = ""; String zone = ""; String clusterId = ""; String nodePoolId...
[ "Roll", "back", "the", "previously", "Aborted", "or", "Failed", "NodePool", "upgrade", ".", "This", "will", "be", "an", "no", "-", "op", "if", "the", "last", "upgrade", "successfully", "completed", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java#L2121-L2132
132,453
googleapis/google-cloud-java
google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java
ClusterManagerClient.setLegacyAbac
public final Operation setLegacyAbac( String projectId, String zone, String clusterId, boolean enabled) { SetLegacyAbacRequest request = SetLegacyAbacRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId) .setEnabled(enabl...
java
public final Operation setLegacyAbac( String projectId, String zone, String clusterId, boolean enabled) { SetLegacyAbacRequest request = SetLegacyAbacRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId) .setEnabled(enabl...
[ "public", "final", "Operation", "setLegacyAbac", "(", "String", "projectId", ",", "String", "zone", ",", "String", "clusterId", ",", "boolean", "enabled", ")", "{", "SetLegacyAbacRequest", "request", "=", "SetLegacyAbacRequest", ".", "newBuilder", "(", ")", ".", ...
Enables or disables the ABAC authorization mechanism on a cluster. <p>Sample code: <pre><code> try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { String projectId = ""; String zone = ""; String clusterId = ""; boolean enabled = false; Operation response = clusterManagerClient.setLegacyA...
[ "Enables", "or", "disables", "the", "ABAC", "authorization", "mechanism", "on", "a", "cluster", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java#L2344-L2355
132,454
googleapis/google-cloud-java
google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java
ClusterManagerClient.startIPRotation
public final Operation startIPRotation(String projectId, String zone, String clusterId) { StartIPRotationRequest request = StartIPRotationRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId) .build(); return startIPRotatio...
java
public final Operation startIPRotation(String projectId, String zone, String clusterId) { StartIPRotationRequest request = StartIPRotationRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId) .build(); return startIPRotatio...
[ "public", "final", "Operation", "startIPRotation", "(", "String", "projectId", ",", "String", "zone", ",", "String", "clusterId", ")", "{", "StartIPRotationRequest", "request", "=", "StartIPRotationRequest", ".", "newBuilder", "(", ")", ".", "setProjectId", "(", "...
Start master IP rotation. <p>Sample code: <pre><code> try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { String projectId = ""; String zone = ""; String clusterId = ""; Operation response = clusterManagerClient.startIPRotation(projectId, zone, clusterId); } </code></pre> @param project...
[ "Start", "master", "IP", "rotation", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java#L2439-L2448
132,455
googleapis/google-cloud-java
google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java
ClusterManagerClient.completeIPRotation
public final Operation completeIPRotation(String projectId, String zone, String clusterId) { CompleteIPRotationRequest request = CompleteIPRotationRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId) .build(); return compl...
java
public final Operation completeIPRotation(String projectId, String zone, String clusterId) { CompleteIPRotationRequest request = CompleteIPRotationRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId(clusterId) .build(); return compl...
[ "public", "final", "Operation", "completeIPRotation", "(", "String", "projectId", ",", "String", "zone", ",", "String", "clusterId", ")", "{", "CompleteIPRotationRequest", "request", "=", "CompleteIPRotationRequest", ".", "newBuilder", "(", ")", ".", "setProjectId", ...
Completes master IP rotation. <p>Sample code: <pre><code> try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { String projectId = ""; String zone = ""; String clusterId = ""; Operation response = clusterManagerClient.completeIPRotation(projectId, zone, clusterId); } </code></pre> @param ...
[ "Completes", "master", "IP", "rotation", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java#L2528-L2537
132,456
googleapis/google-cloud-java
google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java
ClusterManagerClient.setMaintenancePolicy
public final Operation setMaintenancePolicy( String projectId, String zone, String clusterId, MaintenancePolicy maintenancePolicy) { SetMaintenancePolicyRequest request = SetMaintenancePolicyRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId...
java
public final Operation setMaintenancePolicy( String projectId, String zone, String clusterId, MaintenancePolicy maintenancePolicy) { SetMaintenancePolicyRequest request = SetMaintenancePolicyRequest.newBuilder() .setProjectId(projectId) .setZone(zone) .setClusterId...
[ "public", "final", "Operation", "setMaintenancePolicy", "(", "String", "projectId", ",", "String", "zone", ",", "String", "clusterId", ",", "MaintenancePolicy", "maintenancePolicy", ")", "{", "SetMaintenancePolicyRequest", "request", "=", "SetMaintenancePolicyRequest", "....
Sets the maintenance policy for a cluster. <p>Sample code: <pre><code> try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { String projectId = ""; String zone = ""; String clusterId = ""; MaintenancePolicy maintenancePolicy = MaintenancePolicy.newBuilder().build(); Operation response = cl...
[ "Sets", "the", "maintenance", "policy", "for", "a", "cluster", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java#L2775-L2786
132,457
googleapis/google-cloud-java
google-cloud-clients/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/TraceServiceClient.java
TraceServiceClient.patchTraces
public final void patchTraces(String projectId, Traces traces) { PatchTracesRequest request = PatchTracesRequest.newBuilder().setProjectId(projectId).setTraces(traces).build(); patchTraces(request); }
java
public final void patchTraces(String projectId, Traces traces) { PatchTracesRequest request = PatchTracesRequest.newBuilder().setProjectId(projectId).setTraces(traces).build(); patchTraces(request); }
[ "public", "final", "void", "patchTraces", "(", "String", "projectId", ",", "Traces", "traces", ")", "{", "PatchTracesRequest", "request", "=", "PatchTracesRequest", ".", "newBuilder", "(", ")", ".", "setProjectId", "(", "projectId", ")", ".", "setTraces", "(", ...
Sends new traces to Stackdriver Trace or updates existing traces. If the ID of a trace that you send matches that of an existing trace, any fields in the existing trace and its spans are overwritten by the provided values, and any new fields provided are merged with the existing trace data. If the ID does not match, a ...
[ "Sends", "new", "traces", "to", "Stackdriver", "Trace", "or", "updates", "existing", "traces", ".", "If", "the", "ID", "of", "a", "trace", "that", "you", "send", "matches", "that", "of", "an", "existing", "trace", "any", "fields", "in", "the", "existing", ...
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/TraceServiceClient.java#L187-L192
132,458
googleapis/google-cloud-java
google-cloud-clients/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/TraceServiceClient.java
TraceServiceClient.getTrace
public final Trace getTrace(String projectId, String traceId) { GetTraceRequest request = GetTraceRequest.newBuilder().setProjectId(projectId).setTraceId(traceId).build(); return getTrace(request); }
java
public final Trace getTrace(String projectId, String traceId) { GetTraceRequest request = GetTraceRequest.newBuilder().setProjectId(projectId).setTraceId(traceId).build(); return getTrace(request); }
[ "public", "final", "Trace", "getTrace", "(", "String", "projectId", ",", "String", "traceId", ")", "{", "GetTraceRequest", "request", "=", "GetTraceRequest", ".", "newBuilder", "(", ")", ".", "setProjectId", "(", "projectId", ")", ".", "setTraceId", "(", "trac...
Gets a single trace by its ID. <p>Sample code: <pre><code> try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) { String projectId = ""; String traceId = ""; Trace response = traceServiceClient.getTrace(projectId, traceId); } </code></pre> @param projectId ID of the Cloud project where the trace...
[ "Gets", "a", "single", "trace", "by", "its", "ID", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/TraceServiceClient.java#L267-L272
132,459
googleapis/google-cloud-java
google-cloud-clients/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/TraceServiceClient.java
TraceServiceClient.listTraces
public final ListTracesPagedResponse listTraces(String projectId) { ListTracesRequest request = ListTracesRequest.newBuilder().setProjectId(projectId).build(); return listTraces(request); }
java
public final ListTracesPagedResponse listTraces(String projectId) { ListTracesRequest request = ListTracesRequest.newBuilder().setProjectId(projectId).build(); return listTraces(request); }
[ "public", "final", "ListTracesPagedResponse", "listTraces", "(", "String", "projectId", ")", "{", "ListTracesRequest", "request", "=", "ListTracesRequest", ".", "newBuilder", "(", ")", ".", "setProjectId", "(", "projectId", ")", ".", "build", "(", ")", ";", "ret...
Returns of a list of traces that match the specified filter conditions. <p>Sample code: <pre><code> try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) { String projectId = ""; for (Trace element : traceServiceClient.listTraces(projectId).iterateAll()) { // doThingsWith(element); } } </code></pr...
[ "Returns", "of", "a", "list", "of", "traces", "that", "match", "the", "specified", "filter", "conditions", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/TraceServiceClient.java#L341-L344
132,460
googleapis/google-cloud-java
google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/DocumentSnapshot.java
DocumentSnapshot.getData
@Nullable public Map<String, Object> getData() { if (fields == null) { return null; } Map<String, Object> decodedFields = new HashMap<>(); for (Map.Entry<String, Value> entry : fields.entrySet()) { Object decodedValue = decodeValue(entry.getValue()); decodedValue = convertToDateIfNe...
java
@Nullable public Map<String, Object> getData() { if (fields == null) { return null; } Map<String, Object> decodedFields = new HashMap<>(); for (Map.Entry<String, Value> entry : fields.entrySet()) { Object decodedValue = decodeValue(entry.getValue()); decodedValue = convertToDateIfNe...
[ "@", "Nullable", "public", "Map", "<", "String", ",", "Object", ">", "getData", "(", ")", "{", "if", "(", "fields", "==", "null", ")", "{", "return", "null", ";", "}", "Map", "<", "String", ",", "Object", ">", "decodedFields", "=", "new", "HashMap", ...
Returns the fields of the document as a Map or null if the document doesn't exist. Field values will be converted to their native Java representation. @return The fields of the document as a Map or null if the document doesn't exist.
[ "Returns", "the", "fields", "of", "the", "document", "as", "a", "Map", "or", "null", "if", "the", "document", "doesn", "t", "exist", ".", "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/DocumentSnapshot.java#L209-L222
132,461
googleapis/google-cloud-java
google-cloud-clients/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java
WebSecurityScannerClient.updateScanConfig
public final ScanConfig updateScanConfig(ScanConfig scanConfig, FieldMask updateMask) { UpdateScanConfigRequest request = UpdateScanConfigRequest.newBuilder() .setScanConfig(scanConfig) .setUpdateMask(updateMask) .build(); return updateScanConfig(request); }
java
public final ScanConfig updateScanConfig(ScanConfig scanConfig, FieldMask updateMask) { UpdateScanConfigRequest request = UpdateScanConfigRequest.newBuilder() .setScanConfig(scanConfig) .setUpdateMask(updateMask) .build(); return updateScanConfig(request); }
[ "public", "final", "ScanConfig", "updateScanConfig", "(", "ScanConfig", "scanConfig", ",", "FieldMask", "updateMask", ")", "{", "UpdateScanConfigRequest", "request", "=", "UpdateScanConfigRequest", ".", "newBuilder", "(", ")", ".", "setScanConfig", "(", "scanConfig", ...
Updates a ScanConfig. This method support partial update of a ScanConfig. <p>Sample code: <pre><code> try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfig scanConfig = ScanConfig.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); ScanConfig...
[ "Updates", "a", "ScanConfig", ".", "This", "method", "support", "partial", "update", "of", "a", "ScanConfig", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java#L605-L613
132,462
googleapis/google-cloud-java
google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/models/Instance.java
Instance.getId
@SuppressWarnings("WeakerAccess") public String getId() { // Constructor ensures that name is not null InstanceName fullName = Verify.verifyNotNull(InstanceName.parse(proto.getName()), "Name can never be null"); //noinspection ConstantConditions return fullName.getInstance(); }
java
@SuppressWarnings("WeakerAccess") public String getId() { // Constructor ensures that name is not null InstanceName fullName = Verify.verifyNotNull(InstanceName.parse(proto.getName()), "Name can never be null"); //noinspection ConstantConditions return fullName.getInstance(); }
[ "@", "SuppressWarnings", "(", "\"WeakerAccess\"", ")", "public", "String", "getId", "(", ")", "{", "// Constructor ensures that name is not null", "InstanceName", "fullName", "=", "Verify", ".", "verifyNotNull", "(", "InstanceName", ".", "parse", "(", "proto", ".", ...
Gets the instance's id.
[ "Gets", "the", "instance", "s", "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/models/Instance.java#L137-L145
132,463
googleapis/google-cloud-java
google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud/BatchResult.java
BatchResult.error
protected void error(E error) { this.error = checkNotNull(error); this.completed = true; for (Callback<T, E> callback : toBeNotified) { callback.error(error); } }
java
protected void error(E error) { this.error = checkNotNull(error); this.completed = true; for (Callback<T, E> callback : toBeNotified) { callback.error(error); } }
[ "protected", "void", "error", "(", "E", "error", ")", "{", "this", ".", "error", "=", "checkNotNull", "(", "error", ")", ";", "this", ".", "completed", "=", "true", ";", "for", "(", "Callback", "<", "T", ",", "E", ">", "callback", ":", "toBeNotified"...
Sets an error and status as completed. Notifies all callbacks.
[ "Sets", "an", "error", "and", "status", "as", "completed", ".", "Notifies", "all", "callbacks", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud/BatchResult.java#L78-L84
132,464
googleapis/google-cloud-java
google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud/BatchResult.java
BatchResult.success
protected void success(T result) { this.result = result; this.completed = true; for (Callback<T, E> callback : toBeNotified) { callback.success(result); } }
java
protected void success(T result) { this.result = result; this.completed = true; for (Callback<T, E> callback : toBeNotified) { callback.success(result); } }
[ "protected", "void", "success", "(", "T", "result", ")", "{", "this", ".", "result", "=", "result", ";", "this", ".", "completed", "=", "true", ";", "for", "(", "Callback", "<", "T", ",", "E", ">", "callback", ":", "toBeNotified", ")", "{", "callback...
Sets a result and status as completed. Notifies all callbacks.
[ "Sets", "a", "result", "and", "status", "as", "completed", ".", "Notifies", "all", "callbacks", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud/BatchResult.java#L87-L93
132,465
googleapis/google-cloud-java
google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java
AutoMlClient.updateDataset
public final Dataset updateDataset(Dataset dataset) { UpdateDatasetRequest request = UpdateDatasetRequest.newBuilder().setDataset(dataset).build(); return updateDataset(request); }
java
public final Dataset updateDataset(Dataset dataset) { UpdateDatasetRequest request = UpdateDatasetRequest.newBuilder().setDataset(dataset).build(); return updateDataset(request); }
[ "public", "final", "Dataset", "updateDataset", "(", "Dataset", "dataset", ")", "{", "UpdateDatasetRequest", "request", "=", "UpdateDatasetRequest", ".", "newBuilder", "(", ")", ".", "setDataset", "(", "dataset", ")", ".", "build", "(", ")", ";", "return", "upd...
Updates a dataset. <p>Sample code: <pre><code> try (AutoMlClient autoMlClient = AutoMlClient.create()) { Dataset dataset = Dataset.newBuilder().build(); Dataset response = autoMlClient.updateDataset(dataset); } </code></pre> @param dataset The dataset which replaces the resource on the server. @throws com.google.api...
[ "Updates", "a", "dataset", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java#L303-L307
132,466
googleapis/google-cloud-java
google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java
AutoMlClient.exportModelAsync
@BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture<Empty, OperationMetadata> exportModelAsync( ExportModelRequest request) { return exportModelOperationCallable().futureCall(request); }
java
@BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture<Empty, OperationMetadata> exportModelAsync( ExportModelRequest request) { return exportModelOperationCallable().futureCall(request); }
[ "@", "BetaApi", "(", "\"The surface for long-running operations is not stable yet and may change in the future.\"", ")", "public", "final", "OperationFuture", "<", "Empty", ",", "OperationMetadata", ">", "exportModelAsync", "(", "ExportModelRequest", "request", ")", "{", "retur...
Exports a trained, "export-able", model to a user specified Google Cloud Storage location. A model is considered export-able if and only if it has an export format defined for it in <p>[ModelExportOutputConfig][google.cloud.automl.v1beta1.ModelExportOutputConfig]. <p>Returns an empty response in the [response][google...
[ "Exports", "a", "trained", "export", "-", "able", "model", "to", "a", "user", "specified", "Google", "Cloud", "Storage", "location", ".", "A", "model", "is", "considered", "export", "-", "able", "if", "and", "only", "if", "it", "has", "an", "export", "fo...
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java#L1951-L1956
132,467
googleapis/google-cloud-java
google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java
AutoMlClient.updateTableSpec
public final TableSpec updateTableSpec(TableSpec tableSpec) { UpdateTableSpecRequest request = UpdateTableSpecRequest.newBuilder().setTableSpec(tableSpec).build(); return updateTableSpec(request); }
java
public final TableSpec updateTableSpec(TableSpec tableSpec) { UpdateTableSpecRequest request = UpdateTableSpecRequest.newBuilder().setTableSpec(tableSpec).build(); return updateTableSpec(request); }
[ "public", "final", "TableSpec", "updateTableSpec", "(", "TableSpec", "tableSpec", ")", "{", "UpdateTableSpecRequest", "request", "=", "UpdateTableSpecRequest", ".", "newBuilder", "(", ")", ".", "setTableSpec", "(", "tableSpec", ")", ".", "build", "(", ")", ";", ...
Updates a table spec. <p>Sample code: <pre><code> try (AutoMlClient autoMlClient = AutoMlClient.create()) { TableSpec tableSpec = TableSpec.newBuilder().build(); TableSpec response = autoMlClient.updateTableSpec(tableSpec); } </code></pre> @param tableSpec The table spec which replaces the resource on the server. @t...
[ "Updates", "a", "table", "spec", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java#L2593-L2598
132,468
googleapis/google-cloud-java
google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java
AutoMlClient.updateColumnSpec
public final ColumnSpec updateColumnSpec(ColumnSpec columnSpec) { UpdateColumnSpecRequest request = UpdateColumnSpecRequest.newBuilder().setColumnSpec(columnSpec).build(); return updateColumnSpec(request); }
java
public final ColumnSpec updateColumnSpec(ColumnSpec columnSpec) { UpdateColumnSpecRequest request = UpdateColumnSpecRequest.newBuilder().setColumnSpec(columnSpec).build(); return updateColumnSpec(request); }
[ "public", "final", "ColumnSpec", "updateColumnSpec", "(", "ColumnSpec", "columnSpec", ")", "{", "UpdateColumnSpecRequest", "request", "=", "UpdateColumnSpecRequest", ".", "newBuilder", "(", ")", ".", "setColumnSpec", "(", "columnSpec", ")", ".", "build", "(", ")", ...
Updates a column spec. <p>Sample code: <pre><code> try (AutoMlClient autoMlClient = AutoMlClient.create()) { ColumnSpec columnSpec = ColumnSpec.newBuilder().build(); ColumnSpec response = autoMlClient.updateColumnSpec(columnSpec); } </code></pre> @param columnSpec The column spec which replaces the resource on the s...
[ "Updates", "a", "column", "spec", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java#L2882-L2887
132,469
googleapis/google-cloud-java
google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java
IntentsClient.createIntent
public final Intent createIntent(ProjectAgentName parent, Intent intent) { CreateIntentRequest request = CreateIntentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .setIntent(intent) .build(); return createIntent(request); }
java
public final Intent createIntent(ProjectAgentName parent, Intent intent) { CreateIntentRequest request = CreateIntentRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .setIntent(intent) .build(); return createIntent(request); }
[ "public", "final", "Intent", "createIntent", "(", "ProjectAgentName", "parent", ",", "Intent", "intent", ")", "{", "CreateIntentRequest", "request", "=", "CreateIntentRequest", ".", "newBuilder", "(", ")", ".", "setParent", "(", "parent", "==", "null", "?", "nul...
Creates an intent in the specified agent. <p>Sample code: <pre><code> try (IntentsClient intentsClient = IntentsClient.create()) { ProjectAgentName parent = ProjectAgentName.of("[PROJECT]"); Intent intent = Intent.newBuilder().build(); Intent response = intentsClient.createIntent(parent, intent); } </code></pre> @pa...
[ "Creates", "an", "intent", "in", "the", "specified", "agent", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java#L567-L575
132,470
googleapis/google-cloud-java
google-cloud-clients/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/UnixPath.java
UnixPath.subpath
public UnixPath subpath(int beginIndex, int endIndex) { if (path.isEmpty() && beginIndex == 0 && endIndex == 1) { return this; } checkArgument(beginIndex >= 0 && endIndex > beginIndex); List<String> subList; try { subList = getParts().subList(beginIndex, endIndex); } catch (IndexOutO...
java
public UnixPath subpath(int beginIndex, int endIndex) { if (path.isEmpty() && beginIndex == 0 && endIndex == 1) { return this; } checkArgument(beginIndex >= 0 && endIndex > beginIndex); List<String> subList; try { subList = getParts().subList(beginIndex, endIndex); } catch (IndexOutO...
[ "public", "UnixPath", "subpath", "(", "int", "beginIndex", ",", "int", "endIndex", ")", "{", "if", "(", "path", ".", "isEmpty", "(", ")", "&&", "beginIndex", "==", "0", "&&", "endIndex", "==", "1", ")", "{", "return", "this", ";", "}", "checkArgument",...
Returns specified range of sub-components in path joined together. @see java.nio.file.Path#subpath(int, int)
[ "Returns", "specified", "range", "of", "sub", "-", "components", "in", "path", "joined", "together", "." ]
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/UnixPath.java#L208-L220
132,471
googleapis/google-cloud-java
google-cloud-clients/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/UnixPath.java
UnixPath.toAbsolutePath
public UnixPath toAbsolutePath(UnixPath currentWorkingDirectory) { checkArgument(currentWorkingDirectory.isAbsolute()); return isAbsolute() ? this : currentWorkingDirectory.resolve(this); }
java
public UnixPath toAbsolutePath(UnixPath currentWorkingDirectory) { checkArgument(currentWorkingDirectory.isAbsolute()); return isAbsolute() ? this : currentWorkingDirectory.resolve(this); }
[ "public", "UnixPath", "toAbsolutePath", "(", "UnixPath", "currentWorkingDirectory", ")", "{", "checkArgument", "(", "currentWorkingDirectory", ".", "isAbsolute", "(", ")", ")", ";", "return", "isAbsolute", "(", ")", "?", "this", ":", "currentWorkingDirectory", ".", ...
Converts relative path to an absolute path.
[ "Converts", "relative", "path", "to", "an", "absolute", "path", "." ]
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/UnixPath.java#L417-L420
132,472
googleapis/google-cloud-java
google-cloud-clients/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/UnixPath.java
UnixPath.removeTrailingSeparator
public UnixPath removeTrailingSeparator() { if (!isRoot() && hasTrailingSeparator()) { return new UnixPath(permitEmptyComponents, path.substring(0, path.length() - 1)); } else { return this; } }
java
public UnixPath removeTrailingSeparator() { if (!isRoot() && hasTrailingSeparator()) { return new UnixPath(permitEmptyComponents, path.substring(0, path.length() - 1)); } else { return this; } }
[ "public", "UnixPath", "removeTrailingSeparator", "(", ")", "{", "if", "(", "!", "isRoot", "(", ")", "&&", "hasTrailingSeparator", "(", ")", ")", "{", "return", "new", "UnixPath", "(", "permitEmptyComponents", ",", "path", ".", "substring", "(", "0", ",", "...
Removes trailing separator from path, unless it's root.
[ "Removes", "trailing", "separator", "from", "path", "unless", "it", "s", "root", "." ]
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/UnixPath.java#L438-L444
132,473
googleapis/google-cloud-java
google-cloud-clients/google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/UnixPath.java
UnixPath.getParts
private List<String> getParts() { List<String> result = lazyStringParts; return result != null ? result : (lazyStringParts = path.isEmpty() || isRoot() ? Collections.<String>emptyList() : createParts()); }
java
private List<String> getParts() { List<String> result = lazyStringParts; return result != null ? result : (lazyStringParts = path.isEmpty() || isRoot() ? Collections.<String>emptyList() : createParts()); }
[ "private", "List", "<", "String", ">", "getParts", "(", ")", "{", "List", "<", "String", ">", "result", "=", "lazyStringParts", ";", "return", "result", "!=", "null", "?", "result", ":", "(", "lazyStringParts", "=", "path", ".", "isEmpty", "(", ")", "|...
Returns list of path components, excluding slashes.
[ "Returns", "list", "of", "path", "components", "excluding", "slashes", "." ]
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/UnixPath.java#L493-L499
132,474
googleapis/google-cloud-java
google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud/ServiceOptions.java
ServiceOptions.getService
@SuppressWarnings("unchecked") public ServiceT getService() { if (service == null) { service = serviceFactory.create((OptionsT) this); } return service; }
java
@SuppressWarnings("unchecked") public ServiceT getService() { if (service == null) { service = serviceFactory.create((OptionsT) this); } return service; }
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "ServiceT", "getService", "(", ")", "{", "if", "(", "service", "==", "null", ")", "{", "service", "=", "serviceFactory", ".", "create", "(", "(", "OptionsT", ")", "this", ")", ";", "}", "retur...
Returns a Service object for the current service. For instance, when using Google Cloud Storage, it returns a Storage object.
[ "Returns", "a", "Service", "object", "for", "the", "current", "service", ".", "For", "instance", "when", "using", "Google", "Cloud", "Storage", "it", "returns", "a", "Storage", "object", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud/ServiceOptions.java#L495-L501
132,475
googleapis/google-cloud-java
google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud/ServiceOptions.java
ServiceOptions.getRpc
@SuppressWarnings("unchecked") public ServiceRpc getRpc() { if (rpc == null) { rpc = serviceRpcFactory.create((OptionsT) this); } return rpc; }
java
@SuppressWarnings("unchecked") public ServiceRpc getRpc() { if (rpc == null) { rpc = serviceRpcFactory.create((OptionsT) this); } return rpc; }
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "ServiceRpc", "getRpc", "(", ")", "{", "if", "(", "rpc", "==", "null", ")", "{", "rpc", "=", "serviceRpcFactory", ".", "create", "(", "(", "OptionsT", ")", "this", ")", ";", "}", "return", "...
Returns a Service RPC object for the current service. For instance, when using Google Cloud Storage, it returns a StorageRpc object.
[ "Returns", "a", "Service", "RPC", "object", "for", "the", "current", "service", ".", "For", "instance", "when", "using", "Google", "Cloud", "Storage", "it", "returns", "a", "StorageRpc", "object", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud/ServiceOptions.java#L507-L513
132,476
googleapis/google-cloud-java
google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud/ServiceOptions.java
ServiceOptions.getScopedCredentials
public Credentials getScopedCredentials() { Credentials credentialsToReturn = credentials; if (credentials instanceof GoogleCredentials && ((GoogleCredentials) credentials).createScopedRequired()) { credentialsToReturn = ((GoogleCredentials) credentials).createScoped(getScopes()); } return...
java
public Credentials getScopedCredentials() { Credentials credentialsToReturn = credentials; if (credentials instanceof GoogleCredentials && ((GoogleCredentials) credentials).createScopedRequired()) { credentialsToReturn = ((GoogleCredentials) credentials).createScoped(getScopes()); } return...
[ "public", "Credentials", "getScopedCredentials", "(", ")", "{", "Credentials", "credentialsToReturn", "=", "credentials", ";", "if", "(", "credentials", "instanceof", "GoogleCredentials", "&&", "(", "(", "GoogleCredentials", ")", "credentials", ")", ".", "createScoped...
Returns the authentication credentials. If required, credentials are scoped.
[ "Returns", "the", "authentication", "credentials", ".", "If", "required", "credentials", "are", "scoped", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud/ServiceOptions.java#L534-L541
132,477
googleapis/google-cloud-java
google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/models/AppProfile.java
AppProfile.getId
@SuppressWarnings("WeakerAccess") public String getId() { AppProfileName fullName = Verify.verifyNotNull(AppProfileName.parse(proto.getName()), "Name can never be null"); //noinspection ConstantConditions return fullName.getAppProfile(); }
java
@SuppressWarnings("WeakerAccess") public String getId() { AppProfileName fullName = Verify.verifyNotNull(AppProfileName.parse(proto.getName()), "Name can never be null"); //noinspection ConstantConditions return fullName.getAppProfile(); }
[ "@", "SuppressWarnings", "(", "\"WeakerAccess\"", ")", "public", "String", "getId", "(", ")", "{", "AppProfileName", "fullName", "=", "Verify", ".", "verifyNotNull", "(", "AppProfileName", ".", "parse", "(", "proto", ".", "getName", "(", ")", ")", ",", "\"Na...
Gets the id of this AppProfile.
[ "Gets", "the", "id", "of", "this", "AppProfile", "." ]
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/AppProfile.java#L77-L84
132,478
googleapis/google-cloud-java
google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/models/AppProfile.java
AppProfile.getInstanceId
@SuppressWarnings("WeakerAccess") public String getInstanceId() { AppProfileName fullName = Verify.verifyNotNull(AppProfileName.parse(proto.getName()), "Name can never be null"); //noinspection ConstantConditions return fullName.getInstance(); }
java
@SuppressWarnings("WeakerAccess") public String getInstanceId() { AppProfileName fullName = Verify.verifyNotNull(AppProfileName.parse(proto.getName()), "Name can never be null"); //noinspection ConstantConditions return fullName.getInstance(); }
[ "@", "SuppressWarnings", "(", "\"WeakerAccess\"", ")", "public", "String", "getInstanceId", "(", ")", "{", "AppProfileName", "fullName", "=", "Verify", ".", "verifyNotNull", "(", "AppProfileName", ".", "parse", "(", "proto", ".", "getName", "(", ")", ")", ",",...
Gets the id of the instance that owns this AppProfile.
[ "Gets", "the", "id", "of", "the", "instance", "that", "owns", "this", "AppProfile", "." ]
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/AppProfile.java#L87-L94
132,479
googleapis/google-cloud-java
google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectClient.java
InterconnectClient.patchInterconnect
@BetaApi public final Operation patchInterconnect( ProjectGlobalInterconnectName interconnect, Interconnect interconnectResource, List<String> fieldMask) { PatchInterconnectHttpRequest request = PatchInterconnectHttpRequest.newBuilder() .setInterconnect(interconnect == null ...
java
@BetaApi public final Operation patchInterconnect( ProjectGlobalInterconnectName interconnect, Interconnect interconnectResource, List<String> fieldMask) { PatchInterconnectHttpRequest request = PatchInterconnectHttpRequest.newBuilder() .setInterconnect(interconnect == null ...
[ "@", "BetaApi", "public", "final", "Operation", "patchInterconnect", "(", "ProjectGlobalInterconnectName", "interconnect", ",", "Interconnect", "interconnectResource", ",", "List", "<", "String", ">", "fieldMask", ")", "{", "PatchInterconnectHttpRequest", "request", "=", ...
Updates the specified interconnect 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 (InterconnectClient interconnectClient = InterconnectClient.create()) { ProjectGlobalInterconnectName interconnect =...
[ "Updates", "the", "specified", "interconnect", "with", "the", "data", "included", "in", "the", "request", ".", "This", "method", "supports", "PATCH", "semantics", "and", "uses", "the", "JSON", "merge", "patch", "format", "and", "processing", "rules", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectClient.java#L737-L750
132,480
googleapis/google-cloud-java
google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/TransactionOptions.java
TransactionOptions.create
@Nonnull public static TransactionOptions create(int numberOfAttempts) { Preconditions.checkArgument(numberOfAttempts > 0, "You must allow at least one attempt"); return new TransactionOptions(numberOfAttempts, null, null); }
java
@Nonnull public static TransactionOptions create(int numberOfAttempts) { Preconditions.checkArgument(numberOfAttempts > 0, "You must allow at least one attempt"); return new TransactionOptions(numberOfAttempts, null, null); }
[ "@", "Nonnull", "public", "static", "TransactionOptions", "create", "(", "int", "numberOfAttempts", ")", "{", "Preconditions", ".", "checkArgument", "(", "numberOfAttempts", ">", "0", ",", "\"You must allow at least one attempt\"", ")", ";", "return", "new", "Transact...
Create a default set of options with a custom number of retry attempts. @param numberOfAttempts The number of execution attempts. @return The TransactionOptions object.
[ "Create", "a", "default", "set", "of", "options", "with", "a", "custom", "number", "of", "retry", "attempts", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/TransactionOptions.java#L71-L75
132,481
googleapis/google-cloud-java
google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/WriteChannelConfiguration.java
WriteChannelConfiguration.newBuilder
public static Builder newBuilder(TableId destinationTable, FormatOptions format) { return newBuilder(destinationTable).setFormatOptions(format); }
java
public static Builder newBuilder(TableId destinationTable, FormatOptions format) { return newBuilder(destinationTable).setFormatOptions(format); }
[ "public", "static", "Builder", "newBuilder", "(", "TableId", "destinationTable", ",", "FormatOptions", "format", ")", "{", "return", "newBuilder", "(", "destinationTable", ")", ".", "setFormatOptions", "(", "format", ")", ";", "}" ]
Creates a builder for a BigQuery Load Configuration given the destination table and format.
[ "Creates", "a", "builder", "for", "a", "BigQuery", "Load", "Configuration", "given", "the", "destination", "table", "and", "format", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/WriteChannelConfiguration.java#L489-L491
132,482
googleapis/google-cloud-java
google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/WriteChannelConfiguration.java
WriteChannelConfiguration.of
public static WriteChannelConfiguration of(TableId destinationTable, FormatOptions format) { return newBuilder(destinationTable).setFormatOptions(format).build(); }
java
public static WriteChannelConfiguration of(TableId destinationTable, FormatOptions format) { return newBuilder(destinationTable).setFormatOptions(format).build(); }
[ "public", "static", "WriteChannelConfiguration", "of", "(", "TableId", "destinationTable", ",", "FormatOptions", "format", ")", "{", "return", "newBuilder", "(", "destinationTable", ")", ".", "setFormatOptions", "(", "format", ")", ".", "build", "(", ")", ";", "...
Returns a BigQuery Load Configuration for the given destination table and format.
[ "Returns", "a", "BigQuery", "Load", "Configuration", "for", "the", "given", "destination", "table", "and", "format", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/WriteChannelConfiguration.java#L499-L501
132,483
googleapis/google-cloud-java
google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/SubscriptionAdminClientSnippets.java
SubscriptionAdminClientSnippets.createSubscription
public Subscription createSubscription(String topicId, String subscriptionId) throws Exception { // [START pubsub_create_pull_subscription] try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { // eg. projectId = "my-test-project", topicId = "my-test-topic" Proje...
java
public Subscription createSubscription(String topicId, String subscriptionId) throws Exception { // [START pubsub_create_pull_subscription] try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { // eg. projectId = "my-test-project", topicId = "my-test-topic" Proje...
[ "public", "Subscription", "createSubscription", "(", "String", "topicId", ",", "String", "subscriptionId", ")", "throws", "Exception", "{", "// [START pubsub_create_pull_subscription]", "try", "(", "SubscriptionAdminClient", "subscriptionAdminClient", "=", "SubscriptionAdminCli...
Example of creating a pull subscription for a topic.
[ "Example", "of", "creating", "a", "pull", "subscription", "for", "a", "topic", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/SubscriptionAdminClientSnippets.java#L52-L67
132,484
googleapis/google-cloud-java
google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/SubscriptionAdminClientSnippets.java
SubscriptionAdminClientSnippets.createSubscriptionWithPushEndpoint
public Subscription createSubscriptionWithPushEndpoint( String topicId, String subscriptionId, String endpoint) throws Exception { // [START pubsub_create_push_subscription] try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { ProjectTopicName topicName = Projec...
java
public Subscription createSubscriptionWithPushEndpoint( String topicId, String subscriptionId, String endpoint) throws Exception { // [START pubsub_create_push_subscription] try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { ProjectTopicName topicName = Projec...
[ "public", "Subscription", "createSubscriptionWithPushEndpoint", "(", "String", "topicId", ",", "String", "subscriptionId", ",", "String", "endpoint", ")", "throws", "Exception", "{", "// [START pubsub_create_push_subscription]", "try", "(", "SubscriptionAdminClient", "subscri...
Example of creating a subscription with a push endpoint.
[ "Example", "of", "creating", "a", "subscription", "with", "a", "push", "endpoint", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/SubscriptionAdminClientSnippets.java#L70-L90
132,485
googleapis/google-cloud-java
google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/SubscriptionAdminClientSnippets.java
SubscriptionAdminClientSnippets.replacePushConfig
public void replacePushConfig(String subscriptionId, String endpoint) throws Exception { // [START pubsub_update_push_configuration] try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { ProjectSubscriptionName subscriptionName = ProjectSubscriptionName.of(pr...
java
public void replacePushConfig(String subscriptionId, String endpoint) throws Exception { // [START pubsub_update_push_configuration] try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { ProjectSubscriptionName subscriptionName = ProjectSubscriptionName.of(pr...
[ "public", "void", "replacePushConfig", "(", "String", "subscriptionId", ",", "String", "endpoint", ")", "throws", "Exception", "{", "// [START pubsub_update_push_configuration]", "try", "(", "SubscriptionAdminClient", "subscriptionAdminClient", "=", "SubscriptionAdminClient", ...
Example of replacing the push configuration of a subscription, setting the push endpoint.
[ "Example", "of", "replacing", "the", "push", "configuration", "of", "a", "subscription", "setting", "the", "push", "endpoint", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/SubscriptionAdminClientSnippets.java#L93-L102
132,486
googleapis/google-cloud-java
google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/SubscriptionAdminClientSnippets.java
SubscriptionAdminClientSnippets.listSubscriptions
public ListSubscriptionsPagedResponse listSubscriptions() throws Exception { // [START pubsub_list_subscriptions] try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { ListSubscriptionsRequest listSubscriptionsRequest = ListSubscriptionsRequest.newBuilder() ...
java
public ListSubscriptionsPagedResponse listSubscriptions() throws Exception { // [START pubsub_list_subscriptions] try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { ListSubscriptionsRequest listSubscriptionsRequest = ListSubscriptionsRequest.newBuilder() ...
[ "public", "ListSubscriptionsPagedResponse", "listSubscriptions", "(", ")", "throws", "Exception", "{", "// [START pubsub_list_subscriptions]", "try", "(", "SubscriptionAdminClient", "subscriptionAdminClient", "=", "SubscriptionAdminClient", ".", "create", "(", ")", ")", "{", ...
Example of listing subscriptions.
[ "Example", "of", "listing", "subscriptions", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/SubscriptionAdminClientSnippets.java#L105-L121
132,487
googleapis/google-cloud-java
google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/SubscriptionAdminClientSnippets.java
SubscriptionAdminClientSnippets.deleteSubscription
public ProjectSubscriptionName deleteSubscription(String subscriptionId) throws Exception { // [START pubsub_delete_subscription] try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { ProjectSubscriptionName subscriptionName = ProjectSubscriptionName.of(proje...
java
public ProjectSubscriptionName deleteSubscription(String subscriptionId) throws Exception { // [START pubsub_delete_subscription] try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { ProjectSubscriptionName subscriptionName = ProjectSubscriptionName.of(proje...
[ "public", "ProjectSubscriptionName", "deleteSubscription", "(", "String", "subscriptionId", ")", "throws", "Exception", "{", "// [START pubsub_delete_subscription]", "try", "(", "SubscriptionAdminClient", "subscriptionAdminClient", "=", "SubscriptionAdminClient", ".", "create", ...
Example of deleting a subscription.
[ "Example", "of", "deleting", "a", "subscription", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/SubscriptionAdminClientSnippets.java#L124-L133
132,488
googleapis/google-cloud-java
google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/SubscriptionAdminClientSnippets.java
SubscriptionAdminClientSnippets.getSubscriptionPolicy
public Policy getSubscriptionPolicy(String subscriptionId) throws Exception { // [START pubsub_get_subscription_policy] try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { ProjectSubscriptionName subscriptionName = ProjectSubscriptionName.of(projectId, subs...
java
public Policy getSubscriptionPolicy(String subscriptionId) throws Exception { // [START pubsub_get_subscription_policy] try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { ProjectSubscriptionName subscriptionName = ProjectSubscriptionName.of(projectId, subs...
[ "public", "Policy", "getSubscriptionPolicy", "(", "String", "subscriptionId", ")", "throws", "Exception", "{", "// [START pubsub_get_subscription_policy]", "try", "(", "SubscriptionAdminClient", "subscriptionAdminClient", "=", "SubscriptionAdminClient", ".", "create", "(", ")...
Example of getting a subscription policy.
[ "Example", "of", "getting", "a", "subscription", "policy", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/SubscriptionAdminClientSnippets.java#L136-L148
132,489
googleapis/google-cloud-java
google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/SubscriptionAdminClientSnippets.java
SubscriptionAdminClientSnippets.replaceSubscriptionPolicy
public Policy replaceSubscriptionPolicy(String subscriptionId) throws Exception { // [START pubsub_set_subscription_policy] try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { ProjectSubscriptionName subscriptionName = ProjectSubscriptionName.of(projectId, ...
java
public Policy replaceSubscriptionPolicy(String subscriptionId) throws Exception { // [START pubsub_set_subscription_policy] try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { ProjectSubscriptionName subscriptionName = ProjectSubscriptionName.of(projectId, ...
[ "public", "Policy", "replaceSubscriptionPolicy", "(", "String", "subscriptionId", ")", "throws", "Exception", "{", "// [START pubsub_set_subscription_policy]", "try", "(", "SubscriptionAdminClient", "subscriptionAdminClient", "=", "SubscriptionAdminClient", ".", "create", "(", ...
Example of replacing a subscription policy.
[ "Example", "of", "replacing", "a", "subscription", "policy", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/SubscriptionAdminClientSnippets.java#L151-L171
132,490
googleapis/google-cloud-java
google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/SubscriptionAdminClientSnippets.java
SubscriptionAdminClientSnippets.getSubscription
public Subscription getSubscription(String subscriptionId) throws Exception { // [START pubsub_get_subscription] try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { ProjectSubscriptionName subscriptionName = ProjectSubscriptionName.of(projectId, subscriptio...
java
public Subscription getSubscription(String subscriptionId) throws Exception { // [START pubsub_get_subscription] try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { ProjectSubscriptionName subscriptionName = ProjectSubscriptionName.of(projectId, subscriptio...
[ "public", "Subscription", "getSubscription", "(", "String", "subscriptionId", ")", "throws", "Exception", "{", "// [START pubsub_get_subscription]", "try", "(", "SubscriptionAdminClient", "subscriptionAdminClient", "=", "SubscriptionAdminClient", ".", "create", "(", ")", ")...
Example of getting a subscription.
[ "Example", "of", "getting", "a", "subscription", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/SubscriptionAdminClientSnippets.java#L190-L199
132,491
googleapis/google-cloud-java
google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckClient.java
HttpHealthCheckClient.patchHttpHealthCheck
@BetaApi public final Operation patchHttpHealthCheck( ProjectGlobalHttpHealthCheckName httpHealthCheck, HttpHealthCheck2 httpHealthCheckResource, List<String> fieldMask) { PatchHttpHealthCheckHttpRequest request = PatchHttpHealthCheckHttpRequest.newBuilder() .setHttpHealthCh...
java
@BetaApi public final Operation patchHttpHealthCheck( ProjectGlobalHttpHealthCheckName httpHealthCheck, HttpHealthCheck2 httpHealthCheckResource, List<String> fieldMask) { PatchHttpHealthCheckHttpRequest request = PatchHttpHealthCheckHttpRequest.newBuilder() .setHttpHealthCh...
[ "@", "BetaApi", "public", "final", "Operation", "patchHttpHealthCheck", "(", "ProjectGlobalHttpHealthCheckName", "httpHealthCheck", ",", "HttpHealthCheck2", "httpHealthCheckResource", ",", "List", "<", "String", ">", "fieldMask", ")", "{", "PatchHttpHealthCheckHttpRequest", ...
Updates a HttpHealthCheck resource in the specified project using 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 (HttpHealthCheckClient httpHealthCheckClient = HttpHealthCheckClient.create()) { ProjectGl...
[ "Updates", "a", "HttpHealthCheck", "resource", "in", "the", "specified", "project", "using", "the", "data", "included", "in", "the", "request", ".", "This", "method", "supports", "PATCH", "semantics", "and", "uses", "the", "JSON", "merge", "patch", "format", "...
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckClient.java#L640-L653
132,492
googleapis/google-cloud-java
google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableId.java
TableId.of
public static TableId of(String project, String dataset, String table) { return new TableId(checkNotNull(project), checkNotNull(dataset), checkNotNull(table)); }
java
public static TableId of(String project, String dataset, String table) { return new TableId(checkNotNull(project), checkNotNull(dataset), checkNotNull(table)); }
[ "public", "static", "TableId", "of", "(", "String", "project", ",", "String", "dataset", ",", "String", "table", ")", "{", "return", "new", "TableId", "(", "checkNotNull", "(", "project", ")", ",", "checkNotNull", "(", "dataset", ")", ",", "checkNotNull", ...
Creates a table identity given project's, dataset's and table's user-defined ids.
[ "Creates", "a", "table", "identity", "given", "project", "s", "dataset", "s", "and", "table", "s", "user", "-", "defined", "ids", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableId.java#L73-L75
132,493
googleapis/google-cloud-java
google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableId.java
TableId.of
public static TableId of(String dataset, String table) { return new TableId(null, checkNotNull(dataset), checkNotNull(table)); }
java
public static TableId of(String dataset, String table) { return new TableId(null, checkNotNull(dataset), checkNotNull(table)); }
[ "public", "static", "TableId", "of", "(", "String", "dataset", ",", "String", "table", ")", "{", "return", "new", "TableId", "(", "null", ",", "checkNotNull", "(", "dataset", ")", ",", "checkNotNull", "(", "table", ")", ")", ";", "}" ]
Creates a table identity given dataset's and table's user-defined ids.
[ "Creates", "a", "table", "identity", "given", "dataset", "s", "and", "table", "s", "user", "-", "defined", "ids", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableId.java#L78-L80
132,494
googleapis/google-cloud-java
google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/CustomClassMapper.java
CustomClassMapper.convertToCustomClass
static <T> T convertToCustomClass(Object object, Class<T> clazz) { return deserializeToClass(object, clazz, ErrorPath.EMPTY); }
java
static <T> T convertToCustomClass(Object object, Class<T> clazz) { return deserializeToClass(object, clazz, ErrorPath.EMPTY); }
[ "static", "<", "T", ">", "T", "convertToCustomClass", "(", "Object", "object", ",", "Class", "<", "T", ">", "clazz", ")", "{", "return", "deserializeToClass", "(", "object", ",", "clazz", ",", "ErrorPath", ".", "EMPTY", ")", ";", "}" ]
Converts a standard library Java representation of JSON data to an object of the provided class. @param object The representation of the JSON data @param clazz The class of the object to convert to @return The POJO object.
[ "Converts", "a", "standard", "library", "Java", "representation", "of", "JSON", "data", "to", "an", "object", "of", "the", "provided", "class", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/CustomClassMapper.java#L96-L98
132,495
googleapis/google-cloud-java
google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceClient.java
RegionBackendServiceClient.patchRegionBackendService
@BetaApi public final Operation patchRegionBackendService( String backendService, BackendService backendServiceResource, List<String> fieldMask) { PatchRegionBackendServiceHttpRequest request = PatchRegionBackendServiceHttpRequest.newBuilder() .setBackendService(backendService) ...
java
@BetaApi public final Operation patchRegionBackendService( String backendService, BackendService backendServiceResource, List<String> fieldMask) { PatchRegionBackendServiceHttpRequest request = PatchRegionBackendServiceHttpRequest.newBuilder() .setBackendService(backendService) ...
[ "@", "BetaApi", "public", "final", "Operation", "patchRegionBackendService", "(", "String", "backendService", ",", "BackendService", "backendServiceResource", ",", "List", "<", "String", ">", "fieldMask", ")", "{", "PatchRegionBackendServiceHttpRequest", "request", "=", ...
Updates the specified regional 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 an...
[ "Updates", "the", "specified", "regional", "BackendService", "resource", "with", "the", "data", "included", "in", "the", "request", ".", "There", "are", "several", "restrictions", "and", "guidelines", "to", "keep", "in", "mind", "when", "updating", "a", "backend...
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceClient.java#L811-L822
132,496
googleapis/google-cloud-java
google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java
GroupServiceClient.updateGroup
public final Group updateGroup(Group group) { UpdateGroupRequest request = UpdateGroupRequest.newBuilder().setGroup(group).build(); return updateGroup(request); }
java
public final Group updateGroup(Group group) { UpdateGroupRequest request = UpdateGroupRequest.newBuilder().setGroup(group).build(); return updateGroup(request); }
[ "public", "final", "Group", "updateGroup", "(", "Group", "group", ")", "{", "UpdateGroupRequest", "request", "=", "UpdateGroupRequest", ".", "newBuilder", "(", ")", ".", "setGroup", "(", "group", ")", ".", "build", "(", ")", ";", "return", "updateGroup", "("...
Updates an existing group. You can change any group attributes except `name`. <p>Sample code: <pre><code> try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { Group group = Group.newBuilder().build(); Group response = groupServiceClient.updateGroup(group); } </code></pre> @param group The new ...
[ "Updates", "an", "existing", "group", ".", "You", "can", "change", "any", "group", "attributes", "except", "name", "." ]
d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a
https://github.com/googleapis/google-cloud-java/blob/d2f0bc64a53049040fe9c9d338b12fab3dd1ad6a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java#L470-L474
132,497
googleapis/google-cloud-java
google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java
InstanceClient.deleteAccessConfigInstance
@BetaApi public final Operation deleteAccessConfigInstance( ProjectZoneInstanceName instance, String networkInterface, String accessConfig) { DeleteAccessConfigInstanceHttpRequest request = DeleteAccessConfigInstanceHttpRequest.newBuilder() .setInstance(instance == null ? null : instanc...
java
@BetaApi public final Operation deleteAccessConfigInstance( ProjectZoneInstanceName instance, String networkInterface, String accessConfig) { DeleteAccessConfigInstanceHttpRequest request = DeleteAccessConfigInstanceHttpRequest.newBuilder() .setInstance(instance == null ? null : instanc...
[ "@", "BetaApi", "public", "final", "Operation", "deleteAccessConfigInstance", "(", "ProjectZoneInstanceName", "instance", ",", "String", "networkInterface", ",", "String", "accessConfig", ")", "{", "DeleteAccessConfigInstanceHttpRequest", "request", "=", "DeleteAccessConfigIn...
Deletes an access config from an instance's network interface. <p>Sample code: <pre><code> try (InstanceClient instanceClient = InstanceClient.create()) { ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); String networkInterface = ""; String accessConfig = ""; Operati...
[ "Deletes", "an", "access", "config", "from", "an", "instance", "s", "network", "interface", "." ]
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#L674-L685
132,498
googleapis/google-cloud-java
google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java
InstanceClient.detachDiskInstance
@BetaApi public final Operation detachDiskInstance(ProjectZoneInstanceName instance, String deviceName) { DetachDiskInstanceHttpRequest request = DetachDiskInstanceHttpRequest.newBuilder() .setInstance(instance == null ? null : instance.toString()) .setDeviceName(deviceName) ...
java
@BetaApi public final Operation detachDiskInstance(ProjectZoneInstanceName instance, String deviceName) { DetachDiskInstanceHttpRequest request = DetachDiskInstanceHttpRequest.newBuilder() .setInstance(instance == null ? null : instance.toString()) .setDeviceName(deviceName) ...
[ "@", "BetaApi", "public", "final", "Operation", "detachDiskInstance", "(", "ProjectZoneInstanceName", "instance", ",", "String", "deviceName", ")", "{", "DetachDiskInstanceHttpRequest", "request", "=", "DetachDiskInstanceHttpRequest", ".", "newBuilder", "(", ")", ".", "...
Detaches a disk from an instance. <p>Sample code: <pre><code> try (InstanceClient instanceClient = InstanceClient.create()) { ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); String deviceName = ""; Operation response = instanceClient.detachDiskInstance(instance, dev...
[ "Detaches", "a", "disk", "from", "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#L795-L804
132,499
googleapis/google-cloud-java
google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java
InstanceClient.getSerialPortOutputInstance
@BetaApi public final SerialPortOutput getSerialPortOutputInstance( ProjectZoneInstanceName instance, Integer port, String start) { GetSerialPortOutputInstanceHttpRequest request = GetSerialPortOutputInstanceHttpRequest.newBuilder() .setInstance(instance == null ? null : instance.toStri...
java
@BetaApi public final SerialPortOutput getSerialPortOutputInstance( ProjectZoneInstanceName instance, Integer port, String start) { GetSerialPortOutputInstanceHttpRequest request = GetSerialPortOutputInstanceHttpRequest.newBuilder() .setInstance(instance == null ? null : instance.toStri...
[ "@", "BetaApi", "public", "final", "SerialPortOutput", "getSerialPortOutputInstance", "(", "ProjectZoneInstanceName", "instance", ",", "Integer", "port", ",", "String", "start", ")", "{", "GetSerialPortOutputInstanceHttpRequest", "request", "=", "GetSerialPortOutputInstanceHt...
Returns the last 1 MB of serial port output from the specified instance. <p>Sample code: <pre><code> try (InstanceClient instanceClient = InstanceClient.create()) { ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); Integer port = 0; String start = ""; SerialPortOutput...
[ "Returns", "the", "last", "1", "MB", "of", "serial", "port", "output", "from", "the", "specified", "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#L1114-L1125