Skip to content

Commit

Permalink
AVRO-2918: add Apache license
Browse files Browse the repository at this point in the history
  • Loading branch information
clesaec committed Jul 10, 2023
1 parent 11c1657 commit 83f4bbf
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 58 deletions.
100 changes: 59 additions & 41 deletions lang/java/avro/src/test/java/org/apache/avro/FooBarSpecificRecord.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
/**
* Autogenerated by Avro
*
Expand Down Expand Up @@ -36,7 +54,7 @@ public static final class InternalCoders {

/**
* Return the BinaryMessageEncoder instance used by this class.
*
*
* @return the message encoder used by this class
*/
public BinaryMessageEncoder<FooBarSpecificRecord> getEncoder() {
Expand All @@ -45,7 +63,7 @@ public BinaryMessageEncoder<FooBarSpecificRecord> getEncoder() {

/**
* Return the BinaryMessageDecoder instance used by this class.
*
*
* @return the message decoder used by this class
*/
public BinaryMessageDecoder<FooBarSpecificRecord> getDecoder() {
Expand All @@ -55,7 +73,7 @@ public BinaryMessageDecoder<FooBarSpecificRecord> getDecoder() {
/**
* Create a new BinaryMessageDecoder instance for this class that uses the
* specified {@link SchemaStore}.
*
*
* @param resolver a {@link SchemaStore} used to find schemas by fingerprint
* @return a BinaryMessageDecoder instance for this class backed by the given
* SchemaStore
Expand All @@ -66,7 +84,7 @@ public BinaryMessageDecoder<FooBarSpecificRecord> createDecoder(SchemaStore reso

/**
* Deserializes a FooBarSpecificRecord from a ByteBuffer.
*
*
* @param b a byte buffer holding serialized data for an instance of this class
* @return a FooBarSpecificRecord instance decoded from the given buffer
* @throws java.io.IOException if the given bytes could not be deserialized into
Expand All @@ -81,7 +99,7 @@ public FooBarSpecificRecord fromByteBuffer(java.nio.ByteBuffer b) throws java.io

/**
* Serializes this FooBarSpecificRecord to a ByteBuffer.
*
*
* @return a buffer holding the serialized data for this instance
* @throws java.io.IOException if this instance could not be serialized
*/
Expand All @@ -105,7 +123,7 @@ public FooBarSpecificRecord() {

/**
* All-args constructor.
*
*
* @param id The new value for id
* @param name The new value for name
* @param nicknames The new value for nicknames
Expand Down Expand Up @@ -178,7 +196,7 @@ public void put(int field$, java.lang.Object value$) {

/**
* Gets the value of the 'id' field.
*
*
* @return The value of the 'id' field.
*/
public int getId() {
Expand All @@ -187,7 +205,7 @@ public int getId() {

/**
* Sets the value of the 'id' field.
*
*
* @param value the value to set.
*/
public void setId(int value) {
Expand All @@ -196,7 +214,7 @@ public void setId(int value) {

/**
* Gets the value of the 'name' field.
*
*
* @return The value of the 'name' field.
*/
public java.lang.CharSequence getName() {
Expand All @@ -205,7 +223,7 @@ public java.lang.CharSequence getName() {

/**
* Sets the value of the 'name' field.
*
*
* @param value the value to set.
*/
public void setName(java.lang.CharSequence value) {
Expand All @@ -214,7 +232,7 @@ public void setName(java.lang.CharSequence value) {

/**
* Gets the value of the 'nicknames' field.
*
*
* @return The value of the 'nicknames' field.
*/
public java.util.List<java.lang.CharSequence> getNicknames() {
Expand All @@ -223,7 +241,7 @@ public java.util.List<java.lang.CharSequence> getNicknames() {

/**
* Sets the value of the 'nicknames' field.
*
*
* @param value the value to set.
*/
public void setNicknames(java.util.List<java.lang.CharSequence> value) {
Expand All @@ -232,7 +250,7 @@ public void setNicknames(java.util.List<java.lang.CharSequence> value) {

/**
* Gets the value of the 'relatedids' field.
*
*
* @return The value of the 'relatedids' field.
*/
public java.util.List<java.lang.Integer> getRelatedids() {
Expand All @@ -241,7 +259,7 @@ public java.util.List<java.lang.Integer> getRelatedids() {

/**
* Sets the value of the 'relatedids' field.
*
*
* @param value the value to set.
*/
public void setRelatedids(java.util.List<java.lang.Integer> value) {
Expand All @@ -250,7 +268,7 @@ public void setRelatedids(java.util.List<java.lang.Integer> value) {

/**
* Gets the value of the 'typeEnum' field.
*
*
* @return The value of the 'typeEnum' field.
*/
public org.apache.avro.TypeEnum getTypeEnum() {
Expand All @@ -259,7 +277,7 @@ public org.apache.avro.TypeEnum getTypeEnum() {

/**
* Sets the value of the 'typeEnum' field.
*
*
* @param value the value to set.
*/
public void setTypeEnum(org.apache.avro.TypeEnum value) {
Expand All @@ -268,7 +286,7 @@ public void setTypeEnum(org.apache.avro.TypeEnum value) {

/**
* Creates a new FooBarSpecificRecord RecordBuilder.
*
*
* @return A new FooBarSpecificRecord RecordBuilder
*/
public static org.apache.avro.FooBarSpecificRecord.Builder newBuilder() {
Expand All @@ -278,7 +296,7 @@ public static org.apache.avro.FooBarSpecificRecord.Builder newBuilder() {
/**
* Creates a new FooBarSpecificRecord RecordBuilder by copying an existing
* Builder.
*
*
* @param other The existing builder to copy.
* @return A new FooBarSpecificRecord RecordBuilder
*/
Expand All @@ -294,7 +312,7 @@ public static org.apache.avro.FooBarSpecificRecord.Builder newBuilder(
/**
* Creates a new FooBarSpecificRecord RecordBuilder by copying an existing
* FooBarSpecificRecord instance.
*
*
* @param other The existing instance to copy.
* @return A new FooBarSpecificRecord RecordBuilder
*/
Expand Down Expand Up @@ -326,7 +344,7 @@ private Builder() {

/**
* Creates a Builder by copying an existing Builder.
*
*
* @param other The existing Builder to copy.
*/
private Builder(org.apache.avro.FooBarSpecificRecord.Builder other) {
Expand Down Expand Up @@ -355,7 +373,7 @@ private Builder(org.apache.avro.FooBarSpecificRecord.Builder other) {

/**
* Creates a Builder by copying an existing FooBarSpecificRecord instance
*
*
* @param other The existing instance to copy.
*/
private Builder(org.apache.avro.FooBarSpecificRecord other) {
Expand Down Expand Up @@ -384,7 +402,7 @@ private Builder(org.apache.avro.FooBarSpecificRecord other) {

/**
* Gets the value of the 'id' field.
*
*
* @return The value.
*/
public int getId() {
Expand All @@ -393,7 +411,7 @@ public int getId() {

/**
* Sets the value of the 'id' field.
*
*
* @param value The value of 'id'.
* @return This builder.
*/
Expand All @@ -406,7 +424,7 @@ public org.apache.avro.FooBarSpecificRecord.Builder setId(int value) {

/**
* Checks whether the 'id' field has been set.
*
*
* @return True if the 'id' field has been set, false otherwise.
*/
public boolean hasId() {
Expand All @@ -415,7 +433,7 @@ public boolean hasId() {

/**
* Clears the value of the 'id' field.
*
*
* @return This builder.
*/
public org.apache.avro.FooBarSpecificRecord.Builder clearId() {
Expand All @@ -425,7 +443,7 @@ public org.apache.avro.FooBarSpecificRecord.Builder clearId() {

/**
* Gets the value of the 'name' field.
*
*
* @return The value.
*/
public java.lang.CharSequence getName() {
Expand All @@ -434,7 +452,7 @@ public java.lang.CharSequence getName() {

/**
* Sets the value of the 'name' field.
*
*
* @param value The value of 'name'.
* @return This builder.
*/
Expand All @@ -447,7 +465,7 @@ public org.apache.avro.FooBarSpecificRecord.Builder setName(java.lang.CharSequen

/**
* Checks whether the 'name' field has been set.
*
*
* @return True if the 'name' field has been set, false otherwise.
*/
public boolean hasName() {
Expand All @@ -456,7 +474,7 @@ public boolean hasName() {

/**
* Clears the value of the 'name' field.
*
*
* @return This builder.
*/
public org.apache.avro.FooBarSpecificRecord.Builder clearName() {
Expand All @@ -467,7 +485,7 @@ public org.apache.avro.FooBarSpecificRecord.Builder clearName() {

/**
* Gets the value of the 'nicknames' field.
*
*
* @return The value.
*/
public java.util.List<java.lang.CharSequence> getNicknames() {
Expand All @@ -476,7 +494,7 @@ public java.util.List<java.lang.CharSequence> getNicknames() {

/**
* Sets the value of the 'nicknames' field.
*
*
* @param value The value of 'nicknames'.
* @return This builder.
*/
Expand All @@ -489,7 +507,7 @@ public org.apache.avro.FooBarSpecificRecord.Builder setNicknames(java.util.List<

/**
* Checks whether the 'nicknames' field has been set.
*
*
* @return True if the 'nicknames' field has been set, false otherwise.
*/
public boolean hasNicknames() {
Expand All @@ -498,7 +516,7 @@ public boolean hasNicknames() {

/**
* Clears the value of the 'nicknames' field.
*
*
* @return This builder.
*/
public org.apache.avro.FooBarSpecificRecord.Builder clearNicknames() {
Expand All @@ -509,7 +527,7 @@ public org.apache.avro.FooBarSpecificRecord.Builder clearNicknames() {

/**
* Gets the value of the 'relatedids' field.
*
*
* @return The value.
*/
public java.util.List<java.lang.Integer> getRelatedids() {
Expand All @@ -518,7 +536,7 @@ public java.util.List<java.lang.Integer> getRelatedids() {

/**
* Sets the value of the 'relatedids' field.
*
*
* @param value The value of 'relatedids'.
* @return This builder.
*/
Expand All @@ -531,7 +549,7 @@ public org.apache.avro.FooBarSpecificRecord.Builder setRelatedids(java.util.List

/**
* Checks whether the 'relatedids' field has been set.
*
*
* @return True if the 'relatedids' field has been set, false otherwise.
*/
public boolean hasRelatedids() {
Expand All @@ -540,7 +558,7 @@ public boolean hasRelatedids() {

/**
* Clears the value of the 'relatedids' field.
*
*
* @return This builder.
*/
public org.apache.avro.FooBarSpecificRecord.Builder clearRelatedids() {
Expand All @@ -551,7 +569,7 @@ public org.apache.avro.FooBarSpecificRecord.Builder clearRelatedids() {

/**
* Gets the value of the 'typeEnum' field.
*
*
* @return The value.
*/
public org.apache.avro.TypeEnum getTypeEnum() {
Expand All @@ -560,7 +578,7 @@ public org.apache.avro.TypeEnum getTypeEnum() {

/**
* Sets the value of the 'typeEnum' field.
*
*
* @param value The value of 'typeEnum'.
* @return This builder.
*/
Expand All @@ -573,7 +591,7 @@ public org.apache.avro.FooBarSpecificRecord.Builder setTypeEnum(org.apache.avro.

/**
* Checks whether the 'typeEnum' field has been set.
*
*
* @return True if the 'typeEnum' field has been set, false otherwise.
*/
public boolean hasTypeEnum() {
Expand All @@ -582,7 +600,7 @@ public boolean hasTypeEnum() {

/**
* Clears the value of the 'typeEnum' field.
*
*
* @return This builder.
*/
public org.apache.avro.FooBarSpecificRecord.Builder clearTypeEnum() {
Expand Down
Loading

0 comments on commit 83f4bbf

Please sign in to comment.