com.google.devtools.artifactregistry.v1beta2.File Maven / Gradle / Ivy
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/devtools/artifactregistry/v1beta2/file.proto
// Protobuf Java Version: 3.25.5
package com.google.devtools.artifactregistry.v1beta2;
/**
*
*
*
* Files store content that is potentially associated with Packages or Versions.
*
*
* Protobuf type {@code google.devtools.artifactregistry.v1beta2.File}
*/
public final class File extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1beta2.File)
FileOrBuilder {
private static final long serialVersionUID = 0L;
// Use File.newBuilder() to construct.
private File(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private File() {
name_ = "";
hashes_ = java.util.Collections.emptyList();
owner_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new File();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.devtools.artifactregistry.v1beta2.FileProto
.internal_static_google_devtools_artifactregistry_v1beta2_File_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.devtools.artifactregistry.v1beta2.FileProto
.internal_static_google_devtools_artifactregistry_v1beta2_File_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.devtools.artifactregistry.v1beta2.File.class,
com.google.devtools.artifactregistry.v1beta2.File.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* The name of the file, for example:
* "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".
* If the file ID part contains slashes, they are escaped.
*
*
* string name = 1;
*
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
*
*
* The name of the file, for example:
* "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".
* If the file ID part contains slashes, they are escaped.
*
*
* string name = 1;
*
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SIZE_BYTES_FIELD_NUMBER = 3;
private long sizeBytes_ = 0L;
/**
*
*
*
* The size of the File in bytes.
*
*
* int64 size_bytes = 3;
*
* @return The sizeBytes.
*/
@java.lang.Override
public long getSizeBytes() {
return sizeBytes_;
}
public static final int HASHES_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List hashes_;
/**
*
*
*
* The hashes of the file content.
*
*
* repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
*/
@java.lang.Override
public java.util.List getHashesList() {
return hashes_;
}
/**
*
*
*
* The hashes of the file content.
*
*
* repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
*/
@java.lang.Override
public java.util.List extends com.google.devtools.artifactregistry.v1beta2.HashOrBuilder>
getHashesOrBuilderList() {
return hashes_;
}
/**
*
*
*
* The hashes of the file content.
*
*
* repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
*/
@java.lang.Override
public int getHashesCount() {
return hashes_.size();
}
/**
*
*
*
* The hashes of the file content.
*
*
* repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
*/
@java.lang.Override
public com.google.devtools.artifactregistry.v1beta2.Hash getHashes(int index) {
return hashes_.get(index);
}
/**
*
*
*
* The hashes of the file content.
*
*
* repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
*/
@java.lang.Override
public com.google.devtools.artifactregistry.v1beta2.HashOrBuilder getHashesOrBuilder(int index) {
return hashes_.get(index);
}
public static final int CREATE_TIME_FIELD_NUMBER = 5;
private com.google.protobuf.Timestamp createTime_;
/**
*
*
*
* The time when the File was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*
* @return Whether the createTime field is set.
*/
@java.lang.Override
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* The time when the File was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*
* @return The createTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreateTime() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
/**
*
*
*
* The time when the File was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
public static final int UPDATE_TIME_FIELD_NUMBER = 6;
private com.google.protobuf.Timestamp updateTime_;
/**
*
*
*
* The time when the File was last updated.
*
*
* .google.protobuf.Timestamp update_time = 6;
*
* @return Whether the updateTime field is set.
*/
@java.lang.Override
public boolean hasUpdateTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* The time when the File was last updated.
*
*
* .google.protobuf.Timestamp update_time = 6;
*
* @return The updateTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getUpdateTime() {
return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
}
/**
*
*
*
* The time when the File was last updated.
*
*
* .google.protobuf.Timestamp update_time = 6;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
}
public static final int OWNER_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object owner_ = "";
/**
*
*
*
* The name of the Package or Version that owns this file, if any.
*
*
* string owner = 7;
*
* @return The owner.
*/
@java.lang.Override
public java.lang.String getOwner() {
java.lang.Object ref = owner_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
owner_ = s;
return s;
}
}
/**
*
*
*
* The name of the Package or Version that owns this file, if any.
*
*
* string owner = 7;
*
* @return The bytes for owner.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOwnerBytes() {
java.lang.Object ref = owner_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
owner_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (sizeBytes_ != 0L) {
output.writeInt64(3, sizeBytes_);
}
for (int i = 0; i < hashes_.size(); i++) {
output.writeMessage(4, hashes_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(5, getCreateTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(6, getUpdateTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(owner_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, owner_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (sizeBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, sizeBytes_);
}
for (int i = 0; i < hashes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, hashes_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(owner_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, owner_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.devtools.artifactregistry.v1beta2.File)) {
return super.equals(obj);
}
com.google.devtools.artifactregistry.v1beta2.File other =
(com.google.devtools.artifactregistry.v1beta2.File) obj;
if (!getName().equals(other.getName())) return false;
if (getSizeBytes() != other.getSizeBytes()) return false;
if (!getHashesList().equals(other.getHashesList())) return false;
if (hasCreateTime() != other.hasCreateTime()) return false;
if (hasCreateTime()) {
if (!getCreateTime().equals(other.getCreateTime())) return false;
}
if (hasUpdateTime() != other.hasUpdateTime()) return false;
if (hasUpdateTime()) {
if (!getUpdateTime().equals(other.getUpdateTime())) return false;
}
if (!getOwner().equals(other.getOwner())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + SIZE_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeBytes());
if (getHashesCount() > 0) {
hash = (37 * hash) + HASHES_FIELD_NUMBER;
hash = (53 * hash) + getHashesList().hashCode();
}
if (hasCreateTime()) {
hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getCreateTime().hashCode();
}
if (hasUpdateTime()) {
hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getUpdateTime().hashCode();
}
hash = (37 * hash) + OWNER_FIELD_NUMBER;
hash = (53 * hash) + getOwner().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.devtools.artifactregistry.v1beta2.File parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.devtools.artifactregistry.v1beta2.File parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.devtools.artifactregistry.v1beta2.File parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.devtools.artifactregistry.v1beta2.File parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.devtools.artifactregistry.v1beta2.File parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.devtools.artifactregistry.v1beta2.File parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.devtools.artifactregistry.v1beta2.File parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.devtools.artifactregistry.v1beta2.File parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.devtools.artifactregistry.v1beta2.File parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.devtools.artifactregistry.v1beta2.File parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.devtools.artifactregistry.v1beta2.File parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.devtools.artifactregistry.v1beta2.File parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.devtools.artifactregistry.v1beta2.File prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* Files store content that is potentially associated with Packages or Versions.
*
*
* Protobuf type {@code google.devtools.artifactregistry.v1beta2.File}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1beta2.File)
com.google.devtools.artifactregistry.v1beta2.FileOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.devtools.artifactregistry.v1beta2.FileProto
.internal_static_google_devtools_artifactregistry_v1beta2_File_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.devtools.artifactregistry.v1beta2.FileProto
.internal_static_google_devtools_artifactregistry_v1beta2_File_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.devtools.artifactregistry.v1beta2.File.class,
com.google.devtools.artifactregistry.v1beta2.File.Builder.class);
}
// Construct using com.google.devtools.artifactregistry.v1beta2.File.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getHashesFieldBuilder();
getCreateTimeFieldBuilder();
getUpdateTimeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
sizeBytes_ = 0L;
if (hashesBuilder_ == null) {
hashes_ = java.util.Collections.emptyList();
} else {
hashes_ = null;
hashesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
updateTime_ = null;
if (updateTimeBuilder_ != null) {
updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
owner_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.devtools.artifactregistry.v1beta2.FileProto
.internal_static_google_devtools_artifactregistry_v1beta2_File_descriptor;
}
@java.lang.Override
public com.google.devtools.artifactregistry.v1beta2.File getDefaultInstanceForType() {
return com.google.devtools.artifactregistry.v1beta2.File.getDefaultInstance();
}
@java.lang.Override
public com.google.devtools.artifactregistry.v1beta2.File build() {
com.google.devtools.artifactregistry.v1beta2.File result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.devtools.artifactregistry.v1beta2.File buildPartial() {
com.google.devtools.artifactregistry.v1beta2.File result =
new com.google.devtools.artifactregistry.v1beta2.File(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.devtools.artifactregistry.v1beta2.File result) {
if (hashesBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
hashes_ = java.util.Collections.unmodifiableList(hashes_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.hashes_ = hashes_;
} else {
result.hashes_ = hashesBuilder_.build();
}
}
private void buildPartial0(com.google.devtools.artifactregistry.v1beta2.File result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.sizeBytes_ = sizeBytes_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.owner_ = owner_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.devtools.artifactregistry.v1beta2.File) {
return mergeFrom((com.google.devtools.artifactregistry.v1beta2.File) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.devtools.artifactregistry.v1beta2.File other) {
if (other == com.google.devtools.artifactregistry.v1beta2.File.getDefaultInstance())
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getSizeBytes() != 0L) {
setSizeBytes(other.getSizeBytes());
}
if (hashesBuilder_ == null) {
if (!other.hashes_.isEmpty()) {
if (hashes_.isEmpty()) {
hashes_ = other.hashes_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureHashesIsMutable();
hashes_.addAll(other.hashes_);
}
onChanged();
}
} else {
if (!other.hashes_.isEmpty()) {
if (hashesBuilder_.isEmpty()) {
hashesBuilder_.dispose();
hashesBuilder_ = null;
hashes_ = other.hashes_;
bitField0_ = (bitField0_ & ~0x00000004);
hashesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getHashesFieldBuilder()
: null;
} else {
hashesBuilder_.addAllMessages(other.hashes_);
}
}
}
if (other.hasCreateTime()) {
mergeCreateTime(other.getCreateTime());
}
if (other.hasUpdateTime()) {
mergeUpdateTime(other.getUpdateTime());
}
if (!other.getOwner().isEmpty()) {
owner_ = other.owner_;
bitField0_ |= 0x00000020;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 24:
{
sizeBytes_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 24
case 34:
{
com.google.devtools.artifactregistry.v1beta2.Hash m =
input.readMessage(
com.google.devtools.artifactregistry.v1beta2.Hash.parser(),
extensionRegistry);
if (hashesBuilder_ == null) {
ensureHashesIsMutable();
hashes_.add(m);
} else {
hashesBuilder_.addMessage(m);
}
break;
} // case 34
case 42:
{
input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 42
case 50:
{
input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 50
case 58:
{
owner_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 58
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
*
*
* The name of the file, for example:
* "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".
* If the file ID part contains slashes, they are escaped.
*
*
* string name = 1;
*
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The name of the file, for example:
* "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".
* If the file ID part contains slashes, they are escaped.
*
*
* string name = 1;
*
* @return The bytes for name.
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The name of the file, for example:
* "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".
* If the file ID part contains slashes, they are escaped.
*
*
* string name = 1;
*
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The name of the file, for example:
* "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".
* If the file ID part contains slashes, they are escaped.
*
*
* string name = 1;
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* The name of the file, for example:
* "projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt".
* If the file ID part contains slashes, they are escaped.
*
*
* string name = 1;
*
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private long sizeBytes_;
/**
*
*
*
* The size of the File in bytes.
*
*
* int64 size_bytes = 3;
*
* @return The sizeBytes.
*/
@java.lang.Override
public long getSizeBytes() {
return sizeBytes_;
}
/**
*
*
*
* The size of the File in bytes.
*
*
* int64 size_bytes = 3;
*
* @param value The sizeBytes to set.
* @return This builder for chaining.
*/
public Builder setSizeBytes(long value) {
sizeBytes_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The size of the File in bytes.
*
*
* int64 size_bytes = 3;
*
* @return This builder for chaining.
*/
public Builder clearSizeBytes() {
bitField0_ = (bitField0_ & ~0x00000002);
sizeBytes_ = 0L;
onChanged();
return this;
}
private java.util.List hashes_ =
java.util.Collections.emptyList();
private void ensureHashesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
hashes_ =
new java.util.ArrayList(hashes_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.devtools.artifactregistry.v1beta2.Hash,
com.google.devtools.artifactregistry.v1beta2.Hash.Builder,
com.google.devtools.artifactregistry.v1beta2.HashOrBuilder>
hashesBuilder_;
/**
*
*
*
* The hashes of the file content.
*
*
* repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
*/
public java.util.List getHashesList() {
if (hashesBuilder_ == null) {
return java.util.Collections.unmodifiableList(hashes_);
} else {
return hashesBuilder_.getMessageList();
}
}
/**
*
*
*
* The hashes of the file content.
*
*
* repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
*/
public int getHashesCount() {
if (hashesBuilder_ == null) {
return hashes_.size();
} else {
return hashesBuilder_.getCount();
}
}
/**
*
*
*
* The hashes of the file content.
*
*
* repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
*/
public com.google.devtools.artifactregistry.v1beta2.Hash getHashes(int index) {
if (hashesBuilder_ == null) {
return hashes_.get(index);
} else {
return hashesBuilder_.getMessage(index);
}
}
/**
*
*
*
* The hashes of the file content.
*
*
* repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
*/
public Builder setHashes(int index, com.google.devtools.artifactregistry.v1beta2.Hash value) {
if (hashesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHashesIsMutable();
hashes_.set(index, value);
onChanged();
} else {
hashesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* The hashes of the file content.
*
*
* repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
*/
public Builder setHashes(
int index, com.google.devtools.artifactregistry.v1beta2.Hash.Builder builderForValue) {
if (hashesBuilder_ == null) {
ensureHashesIsMutable();
hashes_.set(index, builderForValue.build());
onChanged();
} else {
hashesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The hashes of the file content.
*
*
* repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
*/
public Builder addHashes(com.google.devtools.artifactregistry.v1beta2.Hash value) {
if (hashesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHashesIsMutable();
hashes_.add(value);
onChanged();
} else {
hashesBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* The hashes of the file content.
*
*
* repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
*/
public Builder addHashes(int index, com.google.devtools.artifactregistry.v1beta2.Hash value) {
if (hashesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHashesIsMutable();
hashes_.add(index, value);
onChanged();
} else {
hashesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* The hashes of the file content.
*
*
* repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
*/
public Builder addHashes(
com.google.devtools.artifactregistry.v1beta2.Hash.Builder builderForValue) {
if (hashesBuilder_ == null) {
ensureHashesIsMutable();
hashes_.add(builderForValue.build());
onChanged();
} else {
hashesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* The hashes of the file content.
*
*
* repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
*/
public Builder addHashes(
int index, com.google.devtools.artifactregistry.v1beta2.Hash.Builder builderForValue) {
if (hashesBuilder_ == null) {
ensureHashesIsMutable();
hashes_.add(index, builderForValue.build());
onChanged();
} else {
hashesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The hashes of the file content.
*
*
* repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
*/
public Builder addAllHashes(
java.lang.Iterable extends com.google.devtools.artifactregistry.v1beta2.Hash> values) {
if (hashesBuilder_ == null) {
ensureHashesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hashes_);
onChanged();
} else {
hashesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* The hashes of the file content.
*
*
* repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
*/
public Builder clearHashes() {
if (hashesBuilder_ == null) {
hashes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
hashesBuilder_.clear();
}
return this;
}
/**
*
*
*
* The hashes of the file content.
*
*
* repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
*/
public Builder removeHashes(int index) {
if (hashesBuilder_ == null) {
ensureHashesIsMutable();
hashes_.remove(index);
onChanged();
} else {
hashesBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* The hashes of the file content.
*
*
* repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
*/
public com.google.devtools.artifactregistry.v1beta2.Hash.Builder getHashesBuilder(int index) {
return getHashesFieldBuilder().getBuilder(index);
}
/**
*
*
*
* The hashes of the file content.
*
*
* repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
*/
public com.google.devtools.artifactregistry.v1beta2.HashOrBuilder getHashesOrBuilder(
int index) {
if (hashesBuilder_ == null) {
return hashes_.get(index);
} else {
return hashesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* The hashes of the file content.
*
*
* repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
*/
public java.util.List extends com.google.devtools.artifactregistry.v1beta2.HashOrBuilder>
getHashesOrBuilderList() {
if (hashesBuilder_ != null) {
return hashesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(hashes_);
}
}
/**
*
*
*
* The hashes of the file content.
*
*
* repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
*/
public com.google.devtools.artifactregistry.v1beta2.Hash.Builder addHashesBuilder() {
return getHashesFieldBuilder()
.addBuilder(com.google.devtools.artifactregistry.v1beta2.Hash.getDefaultInstance());
}
/**
*
*
*
* The hashes of the file content.
*
*
* repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
*/
public com.google.devtools.artifactregistry.v1beta2.Hash.Builder addHashesBuilder(int index) {
return getHashesFieldBuilder()
.addBuilder(
index, com.google.devtools.artifactregistry.v1beta2.Hash.getDefaultInstance());
}
/**
*
*
*
* The hashes of the file content.
*
*
* repeated .google.devtools.artifactregistry.v1beta2.Hash hashes = 4;
*/
public java.util.List
getHashesBuilderList() {
return getHashesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.devtools.artifactregistry.v1beta2.Hash,
com.google.devtools.artifactregistry.v1beta2.Hash.Builder,
com.google.devtools.artifactregistry.v1beta2.HashOrBuilder>
getHashesFieldBuilder() {
if (hashesBuilder_ == null) {
hashesBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.devtools.artifactregistry.v1beta2.Hash,
com.google.devtools.artifactregistry.v1beta2.Hash.Builder,
com.google.devtools.artifactregistry.v1beta2.HashOrBuilder>(
hashes_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
hashes_ = null;
}
return hashesBuilder_;
}
private com.google.protobuf.Timestamp createTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
createTimeBuilder_;
/**
*
*
*
* The time when the File was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*
* @return Whether the createTime field is set.
*/
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* The time when the File was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*
* @return The createTime.
*/
public com.google.protobuf.Timestamp getCreateTime() {
if (createTimeBuilder_ == null) {
return createTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: createTime_;
} else {
return createTimeBuilder_.getMessage();
}
}
/**
*
*
*
* The time when the File was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*/
public Builder setCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createTime_ = value;
} else {
createTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* The time when the File was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*/
public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (createTimeBuilder_ == null) {
createTime_ = builderForValue.build();
} else {
createTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* The time when the File was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*/
public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)
&& createTime_ != null
&& createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getCreateTimeBuilder().mergeFrom(value);
} else {
createTime_ = value;
}
} else {
createTimeBuilder_.mergeFrom(value);
}
if (createTime_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
*
*
* The time when the File was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*/
public Builder clearCreateTime() {
bitField0_ = (bitField0_ & ~0x00000008);
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The time when the File was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*/
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getCreateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* The time when the File was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*/
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
if (createTimeBuilder_ != null) {
return createTimeBuilder_.getMessageOrBuilder();
} else {
return createTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: createTime_;
}
}
/**
*
*
*
* The time when the File was created.
*
*
* .google.protobuf.Timestamp create_time = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getCreateTimeFieldBuilder() {
if (createTimeBuilder_ == null) {
createTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getCreateTime(), getParentForChildren(), isClean());
createTime_ = null;
}
return createTimeBuilder_;
}
private com.google.protobuf.Timestamp updateTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
updateTimeBuilder_;
/**
*
*
*
* The time when the File was last updated.
*
*
* .google.protobuf.Timestamp update_time = 6;
*
* @return Whether the updateTime field is set.
*/
public boolean hasUpdateTime() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
*
*
* The time when the File was last updated.
*
*
* .google.protobuf.Timestamp update_time = 6;
*
* @return The updateTime.
*/
public com.google.protobuf.Timestamp getUpdateTime() {
if (updateTimeBuilder_ == null) {
return updateTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: updateTime_;
} else {
return updateTimeBuilder_.getMessage();
}
}
/**
*
*
*
* The time when the File was last updated.
*
*
* .google.protobuf.Timestamp update_time = 6;
*/
public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
if (updateTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updateTime_ = value;
} else {
updateTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* The time when the File was last updated.
*
*
* .google.protobuf.Timestamp update_time = 6;
*/
public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (updateTimeBuilder_ == null) {
updateTime_ = builderForValue.build();
} else {
updateTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* The time when the File was last updated.
*
*
* .google.protobuf.Timestamp update_time = 6;
*/
public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
if (updateTimeBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)
&& updateTime_ != null
&& updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getUpdateTimeBuilder().mergeFrom(value);
} else {
updateTime_ = value;
}
} else {
updateTimeBuilder_.mergeFrom(value);
}
if (updateTime_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
*
*
* The time when the File was last updated.
*
*
* .google.protobuf.Timestamp update_time = 6;
*/
public Builder clearUpdateTime() {
bitField0_ = (bitField0_ & ~0x00000010);
updateTime_ = null;
if (updateTimeBuilder_ != null) {
updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The time when the File was last updated.
*
*
* .google.protobuf.Timestamp update_time = 6;
*/
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getUpdateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* The time when the File was last updated.
*
*
* .google.protobuf.Timestamp update_time = 6;
*/
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
if (updateTimeBuilder_ != null) {
return updateTimeBuilder_.getMessageOrBuilder();
} else {
return updateTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: updateTime_;
}
}
/**
*
*
*
* The time when the File was last updated.
*
*
* .google.protobuf.Timestamp update_time = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getUpdateTimeFieldBuilder() {
if (updateTimeBuilder_ == null) {
updateTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getUpdateTime(), getParentForChildren(), isClean());
updateTime_ = null;
}
return updateTimeBuilder_;
}
private java.lang.Object owner_ = "";
/**
*
*
*
* The name of the Package or Version that owns this file, if any.
*
*
* string owner = 7;
*
* @return The owner.
*/
public java.lang.String getOwner() {
java.lang.Object ref = owner_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
owner_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The name of the Package or Version that owns this file, if any.
*
*
* string owner = 7;
*
* @return The bytes for owner.
*/
public com.google.protobuf.ByteString getOwnerBytes() {
java.lang.Object ref = owner_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
owner_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The name of the Package or Version that owns this file, if any.
*
*
* string owner = 7;
*
* @param value The owner to set.
* @return This builder for chaining.
*/
public Builder setOwner(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
owner_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* The name of the Package or Version that owns this file, if any.
*
*
* string owner = 7;
*
* @return This builder for chaining.
*/
public Builder clearOwner() {
owner_ = getDefaultInstance().getOwner();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
*
*
* The name of the Package or Version that owns this file, if any.
*
*
* string owner = 7;
*
* @param value The bytes for owner to set.
* @return This builder for chaining.
*/
public Builder setOwnerBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
owner_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1beta2.File)
}
// @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1beta2.File)
private static final com.google.devtools.artifactregistry.v1beta2.File DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1beta2.File();
}
public static com.google.devtools.artifactregistry.v1beta2.File getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public File parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.devtools.artifactregistry.v1beta2.File getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy