All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest Maven / Gradle / Ivy

There is a newer version: 0.53.0
Show newest version
/*
 * 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/cloud/dataform/v1beta1/dataform.proto

// Protobuf Java Version: 3.25.4
package com.google.cloud.dataform.v1beta1;

/**
 *
 *
 * 
 * `CommitRepositoryChanges` request message.
 * 
* * Protobuf type {@code google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest} */ public final class CommitRepositoryChangesRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest) CommitRepositoryChangesRequestOrBuilder { private static final long serialVersionUID = 0L; // Use CommitRepositoryChangesRequest.newBuilder() to construct. private CommitRepositoryChangesRequest( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommitRepositoryChangesRequest() { name_ = ""; requiredHeadCommitSha_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CommitRepositoryChangesRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataform.v1beta1.DataformProto .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 3: return internalGetFileOperations(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataform.v1beta1.DataformProto .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.class, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.Builder.class); } public interface FileOperationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation) com.google.protobuf.MessageOrBuilder { /** * * *
     * Represents the write operation.
     * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; * * * @return Whether the writeFile field is set. */ boolean hasWriteFile(); /** * * *
     * Represents the write operation.
     * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; * * * @return The writeFile. */ com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile getWriteFile(); /** * * *
     * Represents the write operation.
     * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; * */ com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFileOrBuilder getWriteFileOrBuilder(); /** * * *
     * Represents the delete operation.
     * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; * * * @return Whether the deleteFile field is set. */ boolean hasDeleteFile(); /** * * *
     * Represents the delete operation.
     * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; * * * @return The deleteFile. */ com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile getDeleteFile(); /** * * *
     * Represents the delete operation.
     * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; * */ com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFileOrBuilder getDeleteFileOrBuilder(); com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.OperationCase getOperationCase(); } /** * * *
   * Represents a single file operation to the repository.
   * 
* * Protobuf type {@code * google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation} */ public static final class FileOperation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation) FileOperationOrBuilder { private static final long serialVersionUID = 0L; // Use FileOperation.newBuilder() to construct. private FileOperation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FileOperation() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FileOperation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataform.v1beta1.DataformProto .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataform.v1beta1.DataformProto .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.class, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.Builder .class); } public interface WriteFileOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile) com.google.protobuf.MessageOrBuilder { /** * * *
       * The file's contents.
       * 
* * bytes contents = 1; * * @return The contents. */ com.google.protobuf.ByteString getContents(); } /** * * *
     * Represents the write file operation (for files added or modified).
     * 
* * Protobuf type {@code * google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile} */ public static final class WriteFile extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile) WriteFileOrBuilder { private static final long serialVersionUID = 0L; // Use WriteFile.newBuilder() to construct. private WriteFile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WriteFile() { contents_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WriteFile(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataform.v1beta1.DataformProto .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_WriteFile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataform.v1beta1.DataformProto .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_WriteFile_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile.class, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile.Builder.class); } public static final int CONTENTS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString contents_ = com.google.protobuf.ByteString.EMPTY; /** * * *
       * The file's contents.
       * 
* * bytes contents = 1; * * @return The contents. */ @java.lang.Override public com.google.protobuf.ByteString getContents() { return contents_; } 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 (!contents_.isEmpty()) { output.writeBytes(1, contents_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!contents_.isEmpty()) { size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, contents_); } 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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile)) { return super.equals(obj); } com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile other = (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile) obj; if (!getContents().equals(other.getContents())) 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) + CONTENTS_FIELD_NUMBER; hash = (53 * hash) + getContents().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile 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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile 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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile 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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile 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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile 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; } /** * * *
       * Represents the write file operation (for files added or modified).
       * 
* * Protobuf type {@code * google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile) com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFileOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataform.v1beta1.DataformProto .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_WriteFile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataform.v1beta1.DataformProto .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_WriteFile_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile.class, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile.Builder.class); } // Construct using // com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; contents_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dataform.v1beta1.DataformProto .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_WriteFile_descriptor; } @java.lang.Override public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile getDefaultInstanceForType() { return com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile build() { com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile buildPartial() { com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile result = new com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.contents_ = contents_; } } @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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile) { return mergeFrom( (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile other) { if (other == com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile.getDefaultInstance()) return this; if (other.getContents() != com.google.protobuf.ByteString.EMPTY) { setContents(other.getContents()); } 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: { contents_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 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 com.google.protobuf.ByteString contents_ = com.google.protobuf.ByteString.EMPTY; /** * * *
         * The file's contents.
         * 
* * bytes contents = 1; * * @return The contents. */ @java.lang.Override public com.google.protobuf.ByteString getContents() { return contents_; } /** * * *
         * The file's contents.
         * 
* * bytes contents = 1; * * @param value The contents to set. * @return This builder for chaining. */ public Builder setContents(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } contents_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
         * The file's contents.
         * 
* * bytes contents = 1; * * @return This builder for chaining. */ public Builder clearContents() { bitField0_ = (bitField0_ & ~0x00000001); contents_ = getDefaultInstance().getContents(); 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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile) } // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile) private static final com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest .FileOperation.WriteFile DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile(); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WriteFile 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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteFileOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile) com.google.protobuf.MessageOrBuilder {} /** * * *
     * Represents the delete file operation.
     * 
* * Protobuf type {@code * google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile} */ public static final class DeleteFile extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile) DeleteFileOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteFile.newBuilder() to construct. private DeleteFile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteFile() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteFile(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataform.v1beta1.DataformProto .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_DeleteFile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataform.v1beta1.DataformProto .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_DeleteFile_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile.class, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile)) { return super.equals(obj); } com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile other = (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile) obj; 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 = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile 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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile 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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile 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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile 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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile 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; } /** * * *
       * Represents the delete file operation.
       * 
* * Protobuf type {@code * google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile) com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFileOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataform.v1beta1.DataformProto .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_DeleteFile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataform.v1beta1.DataformProto .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_DeleteFile_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile.class, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile.Builder.class); } // Construct using // com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dataform.v1beta1.DataformProto .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_DeleteFile_descriptor; } @java.lang.Override public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile getDefaultInstanceForType() { return com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile build() { com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile buildPartial() { com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile result = new com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile(this); onBuilt(); return result; } @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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile) { return mergeFrom( (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile other) { if (other == com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile.getDefaultInstance()) return this; 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; 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; } @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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile) } // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile) private static final com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest .FileOperation.DeleteFile DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile(); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeleteFile 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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int operationCase_ = 0; @SuppressWarnings("serial") private java.lang.Object operation_; public enum OperationCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { WRITE_FILE(1), DELETE_FILE(2), OPERATION_NOT_SET(0); private final int value; private OperationCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static OperationCase valueOf(int value) { return forNumber(value); } public static OperationCase forNumber(int value) { switch (value) { case 1: return WRITE_FILE; case 2: return DELETE_FILE; case 0: return OPERATION_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public OperationCase getOperationCase() { return OperationCase.forNumber(operationCase_); } public static final int WRITE_FILE_FIELD_NUMBER = 1; /** * * *
     * Represents the write operation.
     * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; * * * @return Whether the writeFile field is set. */ @java.lang.Override public boolean hasWriteFile() { return operationCase_ == 1; } /** * * *
     * Represents the write operation.
     * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; * * * @return The writeFile. */ @java.lang.Override public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile getWriteFile() { if (operationCase_ == 1) { return (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile) operation_; } return com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile.getDefaultInstance(); } /** * * *
     * Represents the write operation.
     * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; * */ @java.lang.Override public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFileOrBuilder getWriteFileOrBuilder() { if (operationCase_ == 1) { return (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile) operation_; } return com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile.getDefaultInstance(); } public static final int DELETE_FILE_FIELD_NUMBER = 2; /** * * *
     * Represents the delete operation.
     * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; * * * @return Whether the deleteFile field is set. */ @java.lang.Override public boolean hasDeleteFile() { return operationCase_ == 2; } /** * * *
     * Represents the delete operation.
     * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; * * * @return The deleteFile. */ @java.lang.Override public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile getDeleteFile() { if (operationCase_ == 2) { return (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile) operation_; } return com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile.getDefaultInstance(); } /** * * *
     * Represents the delete operation.
     * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; * */ @java.lang.Override public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFileOrBuilder getDeleteFileOrBuilder() { if (operationCase_ == 2) { return (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile) operation_; } return com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile.getDefaultInstance(); } 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 (operationCase_ == 1) { output.writeMessage( 1, (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile) operation_); } if (operationCase_ == 2) { output.writeMessage( 2, (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile) operation_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (operationCase_ == 1) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 1, (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile) operation_); } if (operationCase_ == 2) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 2, (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile) operation_); } 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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation)) { return super.equals(obj); } com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation other = (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation) obj; if (!getOperationCase().equals(other.getOperationCase())) return false; switch (operationCase_) { case 1: if (!getWriteFile().equals(other.getWriteFile())) return false; break; case 2: if (!getDeleteFile().equals(other.getDeleteFile())) return false; break; case 0: default: } 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(); switch (operationCase_) { case 1: hash = (37 * hash) + WRITE_FILE_FIELD_NUMBER; hash = (53 * hash) + getWriteFile().hashCode(); break; case 2: hash = (37 * hash) + DELETE_FILE_FIELD_NUMBER; hash = (53 * hash) + getDeleteFile().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation 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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation 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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation 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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation 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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation 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; } /** * * *
     * Represents a single file operation to the repository.
     * 
* * Protobuf type {@code * google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation) com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataform.v1beta1.DataformProto .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataform.v1beta1.DataformProto .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .class, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .Builder.class); } // Construct using // com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (writeFileBuilder_ != null) { writeFileBuilder_.clear(); } if (deleteFileBuilder_ != null) { deleteFileBuilder_.clear(); } operationCase_ = 0; operation_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dataform.v1beta1.DataformProto .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperation_descriptor; } @java.lang.Override public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation getDefaultInstanceForType() { return com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation build() { com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation buildPartial() { com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation result = new com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation( this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0( com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs( com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation result) { result.operationCase_ = operationCase_; result.operation_ = this.operation_; if (operationCase_ == 1 && writeFileBuilder_ != null) { result.operation_ = writeFileBuilder_.build(); } if (operationCase_ == 2 && deleteFileBuilder_ != null) { result.operation_ = deleteFileBuilder_.build(); } } @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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation) { return mergeFrom( (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation other) { if (other == com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .getDefaultInstance()) return this; switch (other.getOperationCase()) { case WRITE_FILE: { mergeWriteFile(other.getWriteFile()); break; } case DELETE_FILE: { mergeDeleteFile(other.getDeleteFile()); break; } case OPERATION_NOT_SET: { break; } } 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: { input.readMessage(getWriteFileFieldBuilder().getBuilder(), extensionRegistry); operationCase_ = 1; break; } // case 10 case 18: { input.readMessage(getDeleteFileFieldBuilder().getBuilder(), extensionRegistry); operationCase_ = 2; break; } // case 18 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 operationCase_ = 0; private java.lang.Object operation_; public OperationCase getOperationCase() { return OperationCase.forNumber(operationCase_); } public Builder clearOperation() { operationCase_ = 0; operation_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile.Builder, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFileOrBuilder> writeFileBuilder_; /** * * *
       * Represents the write operation.
       * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; * * * @return Whether the writeFile field is set. */ @java.lang.Override public boolean hasWriteFile() { return operationCase_ == 1; } /** * * *
       * Represents the write operation.
       * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; * * * @return The writeFile. */ @java.lang.Override public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile getWriteFile() { if (writeFileBuilder_ == null) { if (operationCase_ == 1) { return (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile) operation_; } return com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile.getDefaultInstance(); } else { if (operationCase_ == 1) { return writeFileBuilder_.getMessage(); } return com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile.getDefaultInstance(); } } /** * * *
       * Represents the write operation.
       * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; * */ public Builder setWriteFile( com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile value) { if (writeFileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operation_ = value; onChanged(); } else { writeFileBuilder_.setMessage(value); } operationCase_ = 1; return this; } /** * * *
       * Represents the write operation.
       * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; * */ public Builder setWriteFile( com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile .Builder builderForValue) { if (writeFileBuilder_ == null) { operation_ = builderForValue.build(); onChanged(); } else { writeFileBuilder_.setMessage(builderForValue.build()); } operationCase_ = 1; return this; } /** * * *
       * Represents the write operation.
       * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; * */ public Builder mergeWriteFile( com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile value) { if (writeFileBuilder_ == null) { if (operationCase_ == 1 && operation_ != com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile.getDefaultInstance()) { operation_ = com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile.newBuilder( (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest .FileOperation.WriteFile) operation_) .mergeFrom(value) .buildPartial(); } else { operation_ = value; } onChanged(); } else { if (operationCase_ == 1) { writeFileBuilder_.mergeFrom(value); } else { writeFileBuilder_.setMessage(value); } } operationCase_ = 1; return this; } /** * * *
       * Represents the write operation.
       * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; * */ public Builder clearWriteFile() { if (writeFileBuilder_ == null) { if (operationCase_ == 1) { operationCase_ = 0; operation_ = null; onChanged(); } } else { if (operationCase_ == 1) { operationCase_ = 0; operation_ = null; } writeFileBuilder_.clear(); } return this; } /** * * *
       * Represents the write operation.
       * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; * */ public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile.Builder getWriteFileBuilder() { return getWriteFileFieldBuilder().getBuilder(); } /** * * *
       * Represents the write operation.
       * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; * */ @java.lang.Override public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFileOrBuilder getWriteFileOrBuilder() { if ((operationCase_ == 1) && (writeFileBuilder_ != null)) { return writeFileBuilder_.getMessageOrBuilder(); } else { if (operationCase_ == 1) { return (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile) operation_; } return com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile.getDefaultInstance(); } } /** * * *
       * Represents the write operation.
       * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile.Builder, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFileOrBuilder> getWriteFileFieldBuilder() { if (writeFileBuilder_ == null) { if (!(operationCase_ == 1)) { operation_ = com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile.getDefaultInstance(); } writeFileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile.Builder, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFileOrBuilder>( (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .WriteFile) operation_, getParentForChildren(), isClean()); operation_ = null; } operationCase_ = 1; onChanged(); return writeFileBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile.Builder, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFileOrBuilder> deleteFileBuilder_; /** * * *
       * Represents the delete operation.
       * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; * * * @return Whether the deleteFile field is set. */ @java.lang.Override public boolean hasDeleteFile() { return operationCase_ == 2; } /** * * *
       * Represents the delete operation.
       * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; * * * @return The deleteFile. */ @java.lang.Override public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile getDeleteFile() { if (deleteFileBuilder_ == null) { if (operationCase_ == 2) { return (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile) operation_; } return com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile.getDefaultInstance(); } else { if (operationCase_ == 2) { return deleteFileBuilder_.getMessage(); } return com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile.getDefaultInstance(); } } /** * * *
       * Represents the delete operation.
       * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; * */ public Builder setDeleteFile( com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile value) { if (deleteFileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operation_ = value; onChanged(); } else { deleteFileBuilder_.setMessage(value); } operationCase_ = 2; return this; } /** * * *
       * Represents the delete operation.
       * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; * */ public Builder setDeleteFile( com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile .Builder builderForValue) { if (deleteFileBuilder_ == null) { operation_ = builderForValue.build(); onChanged(); } else { deleteFileBuilder_.setMessage(builderForValue.build()); } operationCase_ = 2; return this; } /** * * *
       * Represents the delete operation.
       * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; * */ public Builder mergeDeleteFile( com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile value) { if (deleteFileBuilder_ == null) { if (operationCase_ == 2 && operation_ != com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile.getDefaultInstance()) { operation_ = com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile.newBuilder( (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest .FileOperation.DeleteFile) operation_) .mergeFrom(value) .buildPartial(); } else { operation_ = value; } onChanged(); } else { if (operationCase_ == 2) { deleteFileBuilder_.mergeFrom(value); } else { deleteFileBuilder_.setMessage(value); } } operationCase_ = 2; return this; } /** * * *
       * Represents the delete operation.
       * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; * */ public Builder clearDeleteFile() { if (deleteFileBuilder_ == null) { if (operationCase_ == 2) { operationCase_ = 0; operation_ = null; onChanged(); } } else { if (operationCase_ == 2) { operationCase_ = 0; operation_ = null; } deleteFileBuilder_.clear(); } return this; } /** * * *
       * Represents the delete operation.
       * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; * */ public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile.Builder getDeleteFileBuilder() { return getDeleteFileFieldBuilder().getBuilder(); } /** * * *
       * Represents the delete operation.
       * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; * */ @java.lang.Override public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFileOrBuilder getDeleteFileOrBuilder() { if ((operationCase_ == 2) && (deleteFileBuilder_ != null)) { return deleteFileBuilder_.getMessageOrBuilder(); } else { if (operationCase_ == 2) { return (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile) operation_; } return com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile.getDefaultInstance(); } } /** * * *
       * Represents the delete operation.
       * 
* * * .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile.Builder, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFileOrBuilder> getDeleteFileFieldBuilder() { if (deleteFileBuilder_ == null) { if (!(operationCase_ == 2)) { operation_ = com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile.getDefaultInstance(); } deleteFileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile.Builder, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFileOrBuilder>( (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .DeleteFile) operation_, getParentForChildren(), isClean()); operation_ = null; } operationCase_ = 2; onChanged(); return deleteFileBuilder_; } @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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation) } // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation) private static final com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest .FileOperation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation(); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FileOperation 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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * Required. The repository's name.
   * 
* * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @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; } } /** * * *
   * Required. The repository's name.
   * 
* * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @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 COMMIT_METADATA_FIELD_NUMBER = 2; private com.google.cloud.dataform.v1beta1.CommitMetadata commitMetadata_; /** * * *
   * Required. The changes to commit to the repository.
   * 
* * * .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the commitMetadata field is set. */ @java.lang.Override public boolean hasCommitMetadata() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Required. The changes to commit to the repository.
   * 
* * * .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return The commitMetadata. */ @java.lang.Override public com.google.cloud.dataform.v1beta1.CommitMetadata getCommitMetadata() { return commitMetadata_ == null ? com.google.cloud.dataform.v1beta1.CommitMetadata.getDefaultInstance() : commitMetadata_; } /** * * *
   * Required. The changes to commit to the repository.
   * 
* * * .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override public com.google.cloud.dataform.v1beta1.CommitMetadataOrBuilder getCommitMetadataOrBuilder() { return commitMetadata_ == null ? com.google.cloud.dataform.v1beta1.CommitMetadata.getDefaultInstance() : commitMetadata_; } public static final int REQUIRED_HEAD_COMMIT_SHA_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object requiredHeadCommitSha_ = ""; /** * * *
   * Optional. The commit SHA which must be the repository's current HEAD before
   * applying this commit; otherwise this request will fail. If unset, no
   * validation on the current HEAD commit SHA is performed.
   * 
* * string required_head_commit_sha = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The requiredHeadCommitSha. */ @java.lang.Override public java.lang.String getRequiredHeadCommitSha() { java.lang.Object ref = requiredHeadCommitSha_; 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(); requiredHeadCommitSha_ = s; return s; } } /** * * *
   * Optional. The commit SHA which must be the repository's current HEAD before
   * applying this commit; otherwise this request will fail. If unset, no
   * validation on the current HEAD commit SHA is performed.
   * 
* * string required_head_commit_sha = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for requiredHeadCommitSha. */ @java.lang.Override public com.google.protobuf.ByteString getRequiredHeadCommitShaBytes() { java.lang.Object ref = requiredHeadCommitSha_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requiredHeadCommitSha_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FILE_OPERATIONS_FIELD_NUMBER = 3; private static final class FileOperationsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> defaultEntry = com.google.protobuf.MapEntry . newDefaultInstance( com.google.cloud.dataform.v1beta1.DataformProto .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_FileOperationsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest .FileOperation.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> fileOperations_; private com.google.protobuf.MapField< java.lang.String, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> internalGetFileOperations() { if (fileOperations_ == null) { return com.google.protobuf.MapField.emptyMapField( FileOperationsDefaultEntryHolder.defaultEntry); } return fileOperations_; } public int getFileOperationsCount() { return internalGetFileOperations().getMap().size(); } /** * * *
   * A map to the path of the file to the operation. The path is the full file
   * path including filename, from repository root.
   * 
* * * map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3; * */ @java.lang.Override public boolean containsFileOperations(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetFileOperations().getMap().containsKey(key); } /** Use {@link #getFileOperationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map< java.lang.String, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> getFileOperations() { return getFileOperationsMap(); } /** * * *
   * A map to the path of the file to the operation. The path is the full file
   * path including filename, from repository root.
   * 
* * * map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3; * */ @java.lang.Override public java.util.Map< java.lang.String, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> getFileOperationsMap() { return internalGetFileOperations().getMap(); } /** * * *
   * A map to the path of the file to the operation. The path is the full file
   * path including filename, from repository root.
   * 
* * * map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3; * */ @java.lang.Override public /* nullable */ com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest .FileOperation getFileOperationsOrDefault( java.lang.String key, /* nullable */ com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map< java.lang.String, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> map = internalGetFileOperations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
   * A map to the path of the file to the operation. The path is the full file
   * path including filename, from repository root.
   * 
* * * map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3; * */ @java.lang.Override public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation getFileOperationsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map< java.lang.String, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> map = internalGetFileOperations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getCommitMetadata()); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetFileOperations(), FileOperationsDefaultEntryHolder.defaultEntry, 3); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requiredHeadCommitSha_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requiredHeadCommitSha_); } 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 (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCommitMetadata()); } for (java.util.Map.Entry< java.lang.String, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> entry : internalGetFileOperations().getMap().entrySet()) { com.google.protobuf.MapEntry< java.lang.String, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> fileOperations__ = FileOperationsDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, fileOperations__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requiredHeadCommitSha_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requiredHeadCommitSha_); } 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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest)) { return super.equals(obj); } com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest other = (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest) obj; if (!getName().equals(other.getName())) return false; if (hasCommitMetadata() != other.hasCommitMetadata()) return false; if (hasCommitMetadata()) { if (!getCommitMetadata().equals(other.getCommitMetadata())) return false; } if (!getRequiredHeadCommitSha().equals(other.getRequiredHeadCommitSha())) return false; if (!internalGetFileOperations().equals(other.internalGetFileOperations())) 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(); if (hasCommitMetadata()) { hash = (37 * hash) + COMMIT_METADATA_FIELD_NUMBER; hash = (53 * hash) + getCommitMetadata().hashCode(); } hash = (37 * hash) + REQUIRED_HEAD_COMMIT_SHA_FIELD_NUMBER; hash = (53 * hash) + getRequiredHeadCommitSha().hashCode(); if (!internalGetFileOperations().getMap().isEmpty()) { hash = (37 * hash) + FILE_OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetFileOperations().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest 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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest 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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest 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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest 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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest 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; } /** * * *
   * `CommitRepositoryChanges` request message.
   * 
* * Protobuf type {@code google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest) com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataform.v1beta1.DataformProto .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 3: return internalGetFileOperations(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 3: return internalGetMutableFileOperations(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataform.v1beta1.DataformProto .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.class, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.Builder.class); } // Construct using com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCommitMetadataFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; commitMetadata_ = null; if (commitMetadataBuilder_ != null) { commitMetadataBuilder_.dispose(); commitMetadataBuilder_ = null; } requiredHeadCommitSha_ = ""; internalGetMutableFileOperations().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dataform.v1beta1.DataformProto .internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_descriptor; } @java.lang.Override public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest getDefaultInstanceForType() { return com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest build() { com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest buildPartial() { com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest result = new com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.commitMetadata_ = commitMetadataBuilder_ == null ? commitMetadata_ : commitMetadataBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.requiredHeadCommitSha_ = requiredHeadCommitSha_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.fileOperations_ = internalGetFileOperations().build(FileOperationsDefaultEntryHolder.defaultEntry); } 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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest) { return mergeFrom((com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest other) { if (other == com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasCommitMetadata()) { mergeCommitMetadata(other.getCommitMetadata()); } if (!other.getRequiredHeadCommitSha().isEmpty()) { requiredHeadCommitSha_ = other.requiredHeadCommitSha_; bitField0_ |= 0x00000004; onChanged(); } internalGetMutableFileOperations().mergeFrom(other.internalGetFileOperations()); bitField0_ |= 0x00000008; 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 18: { input.readMessage(getCommitMetadataFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.google.protobuf.MapEntry< java.lang.String, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest .FileOperation> fileOperations__ = input.readMessage( FileOperationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableFileOperations() .ensureBuilderMap() .put(fileOperations__.getKey(), fileOperations__.getValue()); bitField0_ |= 0x00000008; break; } // case 26 case 34: { requiredHeadCommitSha_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 34 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_ = ""; /** * * *
     * Required. The repository's name.
     * 
* * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @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; } } /** * * *
     * Required. The repository's name.
     * 
* * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @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; } } /** * * *
     * Required. The repository's name.
     * 
* * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @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; } /** * * *
     * Required. The repository's name.
     * 
* * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * Required. The repository's name.
     * 
* * * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @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 com.google.cloud.dataform.v1beta1.CommitMetadata commitMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataform.v1beta1.CommitMetadata, com.google.cloud.dataform.v1beta1.CommitMetadata.Builder, com.google.cloud.dataform.v1beta1.CommitMetadataOrBuilder> commitMetadataBuilder_; /** * * *
     * Required. The changes to commit to the repository.
     * 
* * * .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the commitMetadata field is set. */ public boolean hasCommitMetadata() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Required. The changes to commit to the repository.
     * 
* * * .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return The commitMetadata. */ public com.google.cloud.dataform.v1beta1.CommitMetadata getCommitMetadata() { if (commitMetadataBuilder_ == null) { return commitMetadata_ == null ? com.google.cloud.dataform.v1beta1.CommitMetadata.getDefaultInstance() : commitMetadata_; } else { return commitMetadataBuilder_.getMessage(); } } /** * * *
     * Required. The changes to commit to the repository.
     * 
* * * .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setCommitMetadata(com.google.cloud.dataform.v1beta1.CommitMetadata value) { if (commitMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } commitMetadata_ = value; } else { commitMetadataBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Required. The changes to commit to the repository.
     * 
* * * .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setCommitMetadata( com.google.cloud.dataform.v1beta1.CommitMetadata.Builder builderForValue) { if (commitMetadataBuilder_ == null) { commitMetadata_ = builderForValue.build(); } else { commitMetadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Required. The changes to commit to the repository.
     * 
* * * .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder mergeCommitMetadata(com.google.cloud.dataform.v1beta1.CommitMetadata value) { if (commitMetadataBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && commitMetadata_ != null && commitMetadata_ != com.google.cloud.dataform.v1beta1.CommitMetadata.getDefaultInstance()) { getCommitMetadataBuilder().mergeFrom(value); } else { commitMetadata_ = value; } } else { commitMetadataBuilder_.mergeFrom(value); } if (commitMetadata_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
     * Required. The changes to commit to the repository.
     * 
* * * .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder clearCommitMetadata() { bitField0_ = (bitField0_ & ~0x00000002); commitMetadata_ = null; if (commitMetadataBuilder_ != null) { commitMetadataBuilder_.dispose(); commitMetadataBuilder_ = null; } onChanged(); return this; } /** * * *
     * Required. The changes to commit to the repository.
     * 
* * * .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.dataform.v1beta1.CommitMetadata.Builder getCommitMetadataBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCommitMetadataFieldBuilder().getBuilder(); } /** * * *
     * Required. The changes to commit to the repository.
     * 
* * * .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.dataform.v1beta1.CommitMetadataOrBuilder getCommitMetadataOrBuilder() { if (commitMetadataBuilder_ != null) { return commitMetadataBuilder_.getMessageOrBuilder(); } else { return commitMetadata_ == null ? com.google.cloud.dataform.v1beta1.CommitMetadata.getDefaultInstance() : commitMetadata_; } } /** * * *
     * Required. The changes to commit to the repository.
     * 
* * * .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataform.v1beta1.CommitMetadata, com.google.cloud.dataform.v1beta1.CommitMetadata.Builder, com.google.cloud.dataform.v1beta1.CommitMetadataOrBuilder> getCommitMetadataFieldBuilder() { if (commitMetadataBuilder_ == null) { commitMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataform.v1beta1.CommitMetadata, com.google.cloud.dataform.v1beta1.CommitMetadata.Builder, com.google.cloud.dataform.v1beta1.CommitMetadataOrBuilder>( getCommitMetadata(), getParentForChildren(), isClean()); commitMetadata_ = null; } return commitMetadataBuilder_; } private java.lang.Object requiredHeadCommitSha_ = ""; /** * * *
     * Optional. The commit SHA which must be the repository's current HEAD before
     * applying this commit; otherwise this request will fail. If unset, no
     * validation on the current HEAD commit SHA is performed.
     * 
* * string required_head_commit_sha = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The requiredHeadCommitSha. */ public java.lang.String getRequiredHeadCommitSha() { java.lang.Object ref = requiredHeadCommitSha_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requiredHeadCommitSha_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. The commit SHA which must be the repository's current HEAD before
     * applying this commit; otherwise this request will fail. If unset, no
     * validation on the current HEAD commit SHA is performed.
     * 
* * string required_head_commit_sha = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for requiredHeadCommitSha. */ public com.google.protobuf.ByteString getRequiredHeadCommitShaBytes() { java.lang.Object ref = requiredHeadCommitSha_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requiredHeadCommitSha_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Optional. The commit SHA which must be the repository's current HEAD before
     * applying this commit; otherwise this request will fail. If unset, no
     * validation on the current HEAD commit SHA is performed.
     * 
* * string required_head_commit_sha = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The requiredHeadCommitSha to set. * @return This builder for chaining. */ public Builder setRequiredHeadCommitSha(java.lang.String value) { if (value == null) { throw new NullPointerException(); } requiredHeadCommitSha_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Optional. The commit SHA which must be the repository's current HEAD before
     * applying this commit; otherwise this request will fail. If unset, no
     * validation on the current HEAD commit SHA is performed.
     * 
* * string required_head_commit_sha = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearRequiredHeadCommitSha() { requiredHeadCommitSha_ = getDefaultInstance().getRequiredHeadCommitSha(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
     * Optional. The commit SHA which must be the repository's current HEAD before
     * applying this commit; otherwise this request will fail. If unset, no
     * validation on the current HEAD commit SHA is performed.
     * 
* * string required_head_commit_sha = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for requiredHeadCommitSha to set. * @return This builder for chaining. */ public Builder setRequiredHeadCommitShaBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requiredHeadCommitSha_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private static final class FileOperationsConverter implements com.google.protobuf.MapFieldBuilder.Converter< java.lang.String, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperationOrBuilder, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> { @java.lang.Override public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation build( com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperationOrBuilder val) { if (val instanceof com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation) { return (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation) val; } return ((com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .Builder) val) .build(); } @java.lang.Override public com.google.protobuf.MapEntry< java.lang.String, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> defaultEntry() { return FileOperationsDefaultEntryHolder.defaultEntry; } }; private static final FileOperationsConverter fileOperationsConverter = new FileOperationsConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.String, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperationOrBuilder, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.Builder> fileOperations_; private com.google.protobuf.MapFieldBuilder< java.lang.String, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperationOrBuilder, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.Builder> internalGetFileOperations() { if (fileOperations_ == null) { return new com.google.protobuf.MapFieldBuilder<>(fileOperationsConverter); } return fileOperations_; } private com.google.protobuf.MapFieldBuilder< java.lang.String, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperationOrBuilder, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.Builder> internalGetMutableFileOperations() { if (fileOperations_ == null) { fileOperations_ = new com.google.protobuf.MapFieldBuilder<>(fileOperationsConverter); } bitField0_ |= 0x00000008; onChanged(); return fileOperations_; } public int getFileOperationsCount() { return internalGetFileOperations().ensureBuilderMap().size(); } /** * * *
     * A map to the path of the file to the operation. The path is the full file
     * path including filename, from repository root.
     * 
* * * map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3; * */ @java.lang.Override public boolean containsFileOperations(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetFileOperations().ensureBuilderMap().containsKey(key); } /** Use {@link #getFileOperationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map< java.lang.String, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> getFileOperations() { return getFileOperationsMap(); } /** * * *
     * A map to the path of the file to the operation. The path is the full file
     * path including filename, from repository root.
     * 
* * * map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3; * */ @java.lang.Override public java.util.Map< java.lang.String, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> getFileOperationsMap() { return internalGetFileOperations().getImmutableMap(); } /** * * *
     * A map to the path of the file to the operation. The path is the full file
     * path including filename, from repository root.
     * 
* * * map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3; * */ @java.lang.Override public /* nullable */ com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest .FileOperation getFileOperationsOrDefault( java.lang.String key, /* nullable */ com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map< java.lang.String, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest .FileOperationOrBuilder> map = internalGetMutableFileOperations().ensureBuilderMap(); return map.containsKey(key) ? fileOperationsConverter.build(map.get(key)) : defaultValue; } /** * * *
     * A map to the path of the file to the operation. The path is the full file
     * path including filename, from repository root.
     * 
* * * map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3; * */ @java.lang.Override public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation getFileOperationsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map< java.lang.String, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest .FileOperationOrBuilder> map = internalGetMutableFileOperations().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return fileOperationsConverter.build(map.get(key)); } public Builder clearFileOperations() { bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableFileOperations().clear(); return this; } /** * * *
     * A map to the path of the file to the operation. The path is the full file
     * path including filename, from repository root.
     * 
* * * map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3; * */ public Builder removeFileOperations(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableFileOperations().ensureBuilderMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map< java.lang.String, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> getMutableFileOperations() { bitField0_ |= 0x00000008; return internalGetMutableFileOperations().ensureMessageMap(); } /** * * *
     * A map to the path of the file to the operation. The path is the full file
     * path including filename, from repository root.
     * 
* * * map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3; * */ public Builder putFileOperations( java.lang.String key, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableFileOperations().ensureBuilderMap().put(key, value); bitField0_ |= 0x00000008; return this; } /** * * *
     * A map to the path of the file to the operation. The path is the full file
     * path including filename, from repository root.
     * 
* * * map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3; * */ public Builder putAllFileOperations( java.util.Map< java.lang.String, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> values) { for (java.util.Map.Entry< java.lang.String, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableFileOperations().ensureBuilderMap().putAll(values); bitField0_ |= 0x00000008; return this; } /** * * *
     * A map to the path of the file to the operation. The path is the full file
     * path including filename, from repository root.
     * 
* * * map<string, .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation> file_operations = 3; * */ public com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.Builder putFileOperationsBuilderIfAbsent(java.lang.String key) { java.util.Map< java.lang.String, com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest .FileOperationOrBuilder> builderMap = internalGetMutableFileOperations().ensureBuilderMap(); com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperationOrBuilder entry = builderMap.get(key); if (entry == null) { entry = com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .newBuilder(); builderMap.put(key, entry); } if (entry instanceof com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation) { entry = ((com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation) entry) .toBuilder(); builderMap.put(key, entry); } return (com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation .Builder) entry; } @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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest) private static final com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest(); } public static com.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CommitRepositoryChangesRequest 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.cloud.dataform.v1beta1.CommitRepositoryChangesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy