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

fix: Fix the resource annotations for GetRepositoryRequest #171

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 @@ -25,9 +25,9 @@
* DockerImage represents a docker artifact.
* The following fields are returned as untyped metadata in the Version
* resource, using camelcase keys (i.e. metadata.imageSizeBytes):
* * imageSizeBytes
* * mediaType
* * buildTime
* - imageSizeBytes
* - mediaType
* - buildTime
* </pre>
*
* Protobuf type {@code google.devtools.artifactregistry.v1.DockerImage}
Expand Down Expand Up @@ -556,10 +556,10 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
if (!getUriBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_);
}
for (int i = 0; i < tags_.size(); i++) {
Expand All @@ -571,7 +571,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (uploadTime_ != null) {
output.writeMessage(5, getUploadTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mediaType_)) {
if (!getMediaTypeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, mediaType_);
}
if (buildTime_ != null) {
Expand All @@ -586,10 +586,10 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
if (!getUriBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_);
}
{
Expand All @@ -606,7 +606,7 @@ public int getSerializedSize() {
if (uploadTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUploadTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mediaType_)) {
if (!getMediaTypeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, mediaType_);
}
if (buildTime_ != null) {
Expand Down Expand Up @@ -779,9 +779,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* DockerImage represents a docker artifact.
* The following fields are returned as untyped metadata in the Version
* resource, using camelcase keys (i.e. metadata.imageSizeBytes):
* * imageSizeBytes
* * mediaType
* * buildTime
* - imageSizeBytes
* - mediaType
* - buildTime
* </pre>
*
* Protobuf type {@code google.devtools.artifactregistry.v1.DockerImage}
Expand Down
Expand Up @@ -178,7 +178,7 @@ public final boolean isInitialized() {

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

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

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

size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
if (!getParentBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
}
if (pageSize_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
if (!getPageTokenBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -267,7 +267,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < dockerImages_.size(); i++) {
output.writeMessage(1, dockerImages_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
if (!getNextPageTokenBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
unknownFields.writeTo(output);
Expand All @@ -282,7 +282,7 @@ public int getSerializedSize() {
for (int i = 0; i < dockerImages_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dockerImages_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
if (!getNextPageTokenBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -258,13 +258,13 @@ public final boolean isInitialized() {

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

size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
if (!getParentBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
}
if (pageSize_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
if (!getPageTokenBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -267,7 +267,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < repositories_.size(); i++) {
output.writeMessage(1, repositories_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
if (!getNextPageTokenBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
unknownFields.writeTo(output);
Expand All @@ -282,7 +282,7 @@ public int getSerializedSize() {
for (int i = 0; i < repositories_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, repositories_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
if (!getNextPageTokenBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -850,15 +850,15 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (format_
!= com.google.devtools.artifactregistry.v1.Repository.Format.FORMAT_UNSPECIFIED
.getNumber()) {
output.writeEnum(2, format_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
if (!getDescriptionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
Expand All @@ -869,7 +869,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (updateTime_ != null) {
output.writeMessage(6, getUpdateTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) {
if (!getKmsKeyNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, kmsKeyName_);
}
unknownFields.writeTo(output);
Expand All @@ -881,15 +881,15 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (format_
!= com.google.devtools.artifactregistry.v1.Repository.Format.FORMAT_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, format_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
if (!getDescriptionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
}
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
Expand All @@ -908,7 +908,7 @@ public int getSerializedSize() {
if (updateTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) {
if (!getKmsKeyNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, kmsKeyName_);
}
size += unknownFields.getSerializedSize();
Expand Down
Expand Up @@ -32,9 +32,9 @@ option ruby_package = "Google::Cloud::ArtifactRegistry::V1";
// DockerImage represents a docker artifact.
// The following fields are returned as untyped metadata in the Version
// resource, using camelcase keys (i.e. metadata.imageSizeBytes):
// * imageSizeBytes
// * mediaType
// * buildTime
// - imageSizeBytes
// - mediaType
// - buildTime
message DockerImage {
option (google.api.resource) = {
type: "artifactregistry.googleapis.com/DockerImage"
Expand Down
Expand Up @@ -296,10 +296,10 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
if (!getParentBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repositoryId_)) {
if (!getRepositoryIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, repositoryId_);
}
if (repository_ != null) {
Expand All @@ -314,10 +314,10 @@ public int getSerializedSize() {
if (size != -1) return size;

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

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
if (!getParentBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagId_)) {
if (!getTagIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tagId_);
}
if (tag_ != null) {
Expand All @@ -313,10 +313,10 @@ public int getSerializedSize() {
if (size != -1) return size;

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

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

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

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

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

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

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

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

size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (force_ != false) {
Expand Down