Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

docs: Remove erroneous space in a docstring #124

Merged
merged 2 commits into from Oct 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -267,7 +267,9 @@ public static List<String> getDefaultServiceScopes() {

/** Returns a builder for the default credentials for this service. */
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES);
return GoogleCredentialsProvider.newBuilder()
.setScopesToApply(DEFAULT_SERVICE_SCOPES)
.setUseJwtAccessWithScope(true);
}

/** Returns a builder for the default ChannelProvider for this service. */
Expand Down
Expand Up @@ -708,7 +708,9 @@ public static List<String> getDefaultServiceScopes() {

/** Returns a builder for the default credentials for this service. */
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES);
return GoogleCredentialsProvider.newBuilder()
.setScopesToApply(DEFAULT_SERVICE_SCOPES)
.setUseJwtAccessWithScope(true);
}

/** Returns a builder for the default ChannelProvider for this service. */
Expand Down
Expand Up @@ -284,7 +284,7 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
}
for (int i = 0; i < serviceIds_.size(); i++) {
Expand All @@ -299,7 +299,7 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
}
{
Expand Down
Expand Up @@ -409,10 +409,10 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getServiceIdBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceId_);
}
if (!getErrorMessageBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorMessage_);
}
unknownFields.writeTo(output);
Expand All @@ -424,10 +424,10 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getServiceIdBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceId_);
}
if (!getErrorMessageBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -274,7 +274,7 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
}
for (int i = 0; i < names_.size(); i++) {
Expand All @@ -289,7 +289,7 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
}
{
Expand Down
Expand Up @@ -428,7 +428,7 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (disableDependentServices_ != false) {
Expand All @@ -449,7 +449,7 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (disableDependentServices_ != false) {
Expand Down
Expand Up @@ -188,7 +188,7 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
unknownFields.writeTo(output);
Expand All @@ -200,7 +200,7 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -180,7 +180,7 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
unknownFields.writeTo(output);
Expand All @@ -192,7 +192,7 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -193,7 +193,7 @@ public com.google.protobuf.ByteString getParentBytes() {
* <pre>
* Requested size of the next page of data.
* Requested page size cannot exceed 200.
* If not set, the default page size is 50.
* If not set, the default page size is 50.
* </pre>
*
* <code>int32 page_size = 2;</code>
Expand Down Expand Up @@ -321,16 +321,16 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
}
if (pageSize_ != 0) {
output.writeInt32(2, pageSize_);
}
if (!getPageTokenBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
}
if (!getFilterBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_);
}
unknownFields.writeTo(output);
Expand All @@ -342,16 +342,16 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
}
if (pageSize_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_);
}
if (!getPageTokenBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
}
if (!getFilterBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_);
}
size += unknownFields.getSerializedSize();
Expand Down Expand Up @@ -795,7 +795,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
* <pre>
* Requested size of the next page of data.
* Requested page size cannot exceed 200.
* If not set, the default page size is 50.
* If not set, the default page size is 50.
* </pre>
*
* <code>int32 page_size = 2;</code>
Expand All @@ -812,7 +812,7 @@ public int getPageSize() {
* <pre>
* Requested size of the next page of data.
* Requested page size cannot exceed 200.
* If not set, the default page size is 50.
* If not set, the default page size is 50.
* </pre>
*
* <code>int32 page_size = 2;</code>
Expand All @@ -832,7 +832,7 @@ public Builder setPageSize(int value) {
* <pre>
* Requested size of the next page of data.
* Requested page size cannot exceed 200.
* If not set, the default page size is 50.
* If not set, the default page size is 50.
* </pre>
*
* <code>int32 page_size = 2;</code>
Expand Down
Expand Up @@ -58,7 +58,7 @@ public interface ListServicesRequestOrBuilder
* <pre>
* Requested size of the next page of data.
* Requested page size cannot exceed 200.
* If not set, the default page size is 50.
* If not set, the default page size is 50.
* </pre>
*
* <code>int32 page_size = 2;</code>
Expand Down
Expand Up @@ -264,7 +264,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < services_.size(); i++) {
output.writeMessage(1, services_.get(i));
}
if (!getNextPageTokenBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
unknownFields.writeTo(output);
Expand All @@ -279,7 +279,7 @@ public int getSerializedSize() {
for (int i = 0; i < services_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, services_.get(i));
}
if (!getNextPageTokenBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -356,7 +356,7 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (config_ != null) {
Expand All @@ -365,7 +365,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (state_ != com.google.api.serviceusage.v1.State.STATE_UNSPECIFIED.getNumber()) {
output.writeEnum(4, state_);
}
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_);
}
unknownFields.writeTo(output);
Expand All @@ -377,7 +377,7 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (config_ != null) {
Expand All @@ -386,7 +386,7 @@ public int getSerializedSize() {
if (state_ != com.google.api.serviceusage.v1.State.STATE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_);
}
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -813,10 +813,10 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!getTitleBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_);
}
for (int i = 0; i < apis_.size(); i++) {
Expand Down Expand Up @@ -852,10 +852,10 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!getTitleBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_);
}
for (int i = 0; i < apis_.size(); i++) {
Expand Down
Expand Up @@ -209,7 +209,7 @@ message ListServicesRequest {

// Requested size of the next page of data.
// Requested page size cannot exceed 200.
// If not set, the default page size is 50.
// If not set, the default page size is 50.
int32 page_size = 2;

// Token identifying which result to start with, which is returned by a
Expand Down
Expand Up @@ -547,21 +547,21 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (policyValue_ != 0L) {
output.writeInt64(2, policyValue_);
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetDimensions(), DimensionsDefaultEntryHolder.defaultEntry, 3);
if (!getMetricBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metric_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, metric_);
}
if (!getUnitBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, unit_);
}
if (!getContainerBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(container_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, container_);
}
unknownFields.writeTo(output);
Expand All @@ -573,7 +573,7 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getNameBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (policyValue_ != 0L) {
Expand All @@ -589,13 +589,13 @@ public int getSerializedSize() {
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, dimensions__);
}
if (!getMetricBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metric_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, metric_);
}
if (!getUnitBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, unit_);
}
if (!getContainerBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(container_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, container_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -294,7 +294,7 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
}
for (int i = 0; i < serviceIds_.size(); i++) {
Expand All @@ -309,7 +309,7 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!getParentBytes().isEmpty()) {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
}
{
Expand Down